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

Method SetNillableStatus

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

432
433// SetNillableStatus sets the "status" field if the given value is not nil.
434func (nuo *NodeUpdateOne) SetNillableStatus(n *node.Status) *NodeUpdateOne {
435 if n != nil {
436 nuo.SetStatus(*n)
437 }
438 return nuo
439}
440
441// SetName sets the "name" field.
442func (nuo *NodeUpdateOne) SetName(s string) *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected