MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetType

Method SetType

ent/node_update.go:89–92  ·  view source on GitHub ↗

SetType sets the "type" field.

(n node.Type)

Source from the content-addressed store, hash-verified

87
88// SetType sets the "type" field.
89func (nu *NodeUpdate) SetType(n node.Type) *NodeUpdate {
90 nu.mutation.SetType(n)
91 return nu
92}
93
94// SetNillableType sets the "type" field if the given value is not nil.
95func (nu *NodeUpdate) SetNillableType(n *node.Type) *NodeUpdate {

Callers 2

SetNillableTypeMethod · 0.95
SetTypeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected