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

Method SetNillableStorage

ent/user_create.go:124–129  ·  view source on GitHub ↗

SetNillableStorage sets the "storage" field if the given value is not nil.

(i *int64)

Source from the content-addressed store, hash-verified

122
123// SetNillableStorage sets the "storage" field if the given value is not nil.
124func (uc *UserCreate) SetNillableStorage(i *int64) *UserCreate {
125 if i != nil {
126 uc.SetStorage(*i)
127 }
128 return uc
129}
130
131// SetTwoFactorSecret sets the "two_factor_secret" field.
132func (uc *UserCreate) SetTwoFactorSecret(s string) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetStorageMethod · 0.95

Tested by

no test coverage detected