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

Method SetNillableType

ent/node_update.go:462–467  ·  view source on GitHub ↗

SetNillableType sets the "type" field if the given value is not nil.

(n *node.Type)

Source from the content-addressed store, hash-verified

460
461// SetNillableType sets the "type" field if the given value is not nil.
462func (nuo *NodeUpdateOne) SetNillableType(n *node.Type) *NodeUpdateOne {
463 if n != nil {
464 nuo.SetType(*n)
465 }
466 return nuo
467}
468
469// SetServer sets the "server" field.
470func (nuo *NodeUpdateOne) SetServer(s string) *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetTypeMethod · 0.95

Tested by

no test coverage detected