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

Method SetNillableStatus

ent/user_create.go:110–115  ·  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

108
109// SetNillableStatus sets the "status" field if the given value is not nil.
110func (uc *UserCreate) SetNillableStatus(u *user.Status) *UserCreate {
111 if u != nil {
112 uc.SetStatus(*u)
113 }
114 return uc
115}
116
117// SetStorage sets the "storage" field.
118func (uc *UserCreate) SetStorage(i int64) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected