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

Method SetNillableName

ent/node_update.go:81–86  ·  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

79
80// SetNillableName sets the "name" field if the given value is not nil.
81func (nu *NodeUpdate) SetNillableName(s *string) *NodeUpdate {
82 if s != nil {
83 nu.SetName(*s)
84 }
85 return nu
86}
87
88// SetType sets the "type" field.
89func (nu *NodeUpdate) SetType(n node.Type) *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetNameMethod · 0.95

Tested by

no test coverage detected