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

Method SetNillableName

ent/node_update.go:448–453  ·  view source on GitHub ↗

SetNillableName sets the "name" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

446
447// SetNillableName sets the "name" field if the given value is not nil.
448func (nuo *NodeUpdateOne) SetNillableName(s *string) *NodeUpdateOne {
449 if s != nil {
450 nuo.SetName(*s)
451 }
452 return nuo
453}
454
455// SetType sets the "type" field.
456func (nuo *NodeUpdateOne) SetType(n node.Type) *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetNameMethod · 0.95

Tested by

no test coverage detected