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

Method SetNillableServer

ent/node_update.go:476–481  ·  view source on GitHub ↗

SetNillableServer sets the "server" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

474
475// SetNillableServer sets the "server" field if the given value is not nil.
476func (nuo *NodeUpdateOne) SetNillableServer(s *string) *NodeUpdateOne {
477 if s != nil {
478 nuo.SetServer(*s)
479 }
480 return nuo
481}
482
483// ClearServer clears the value of the "server" field.
484func (nuo *NodeUpdateOne) ClearServer() *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetServerMethod · 0.95

Tested by

no test coverage detected