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

Method SetNillableStatus

ent/node_update.go:67–72  ·  view source on GitHub ↗

SetNillableStatus sets the "status" field if the given value is not nil.

(n *node.Status)

Source from the content-addressed store, hash-verified

65
66// SetNillableStatus sets the "status" field if the given value is not nil.
67func (nu *NodeUpdate) SetNillableStatus(n *node.Status) *NodeUpdate {
68 if n != nil {
69 nu.SetStatus(*n)
70 }
71 return nu
72}
73
74// SetName sets the "name" field.
75func (nu *NodeUpdate) SetName(s string) *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected