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

Method SetNillableServer

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

107
108// SetNillableServer sets the "server" field if the given value is not nil.
109func (nu *NodeUpdate) SetNillableServer(s *string) *NodeUpdate {
110 if s != nil {
111 nu.SetServer(*s)
112 }
113 return nu
114}
115
116// ClearServer clears the value of the "server" field.
117func (nu *NodeUpdate) ClearServer() *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetServerMethod · 0.95

Tested by

no test coverage detected