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

Method SetNillableValue

ent/setting_create.go:80–85  ·  view source on GitHub ↗

SetNillableValue sets the "value" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

78
79// SetNillableValue sets the "value" field if the given value is not nil.
80func (sc *SettingCreate) SetNillableValue(s *string) *SettingCreate {
81 if s != nil {
82 sc.SetValue(*s)
83 }
84 return sc
85}
86
87// Mutation returns the SettingMutation object of the builder.
88func (sc *SettingCreate) Mutation() *SettingMutation {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected