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

Method SetType

ent/node_update.go:456–459  ·  view source on GitHub ↗

SetType sets the "type" field.

(n node.Type)

Source from the content-addressed store, hash-verified

454
455// SetType sets the "type" field.
456func (nuo *NodeUpdateOne) SetType(n node.Type) *NodeUpdateOne {
457 nuo.mutation.SetType(n)
458 return nuo
459}
460
461// SetNillableType sets the "type" field if the given value is not nil.
462func (nuo *NodeUpdateOne) SetNillableType(n *node.Type) *NodeUpdateOne {

Callers 1

SetNillableTypeMethod · 0.95

Calls 1

SetTypeMethod · 0.45

Tested by

no test coverage detected