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

Method SetNillableStatus

ent/user_update.go:122–127  ·  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

120
121// SetNillableStatus sets the "status" field if the given value is not nil.
122func (uu *UserUpdate) SetNillableStatus(u *user.Status) *UserUpdate {
123 if u != nil {
124 uu.SetStatus(*u)
125 }
126 return uu
127}
128
129// SetStorage sets the "storage" field.
130func (uu *UserUpdate) SetStorage(i int64) *UserUpdate {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected