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

Method SetNillableName

ent/setting_update.go:218–223  ·  view source on GitHub ↗

SetNillableName sets the "name" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

216
217// SetNillableName sets the "name" field if the given value is not nil.
218func (suo *SettingUpdateOne) SetNillableName(s *string) *SettingUpdateOne {
219 if s != nil {
220 suo.SetName(*s)
221 }
222 return suo
223}
224
225// SetValue sets the "value" field.
226func (suo *SettingUpdateOne) SetValue(s string) *SettingUpdateOne {

Callers

nothing calls this directly

Calls 1

SetNameMethod · 0.95

Tested by

no test coverage detected