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

Method SetNillableStatus

ent/user_update.go:1141–1146  ·  view source on GitHub ↗

SetNillableStatus sets the "status" field if the given value is not nil.

(u *user.Status)

Source from the content-addressed store, hash-verified

1139
1140// SetNillableStatus sets the "status" field if the given value is not nil.
1141func (uuo *UserUpdateOne) SetNillableStatus(u *user.Status) *UserUpdateOne {
1142 if u != nil {
1143 uuo.SetStatus(*u)
1144 }
1145 return uuo
1146}
1147
1148// SetStorage sets the "storage" field.
1149func (uuo *UserUpdateOne) SetStorage(i int64) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected