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

Method SetNillableStorage

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

1154
1155// SetNillableStorage sets the "storage" field if the given value is not nil.
1156func (uuo *UserUpdateOne) SetNillableStorage(i *int64) *UserUpdateOne {
1157 if i != nil {
1158 uuo.SetStorage(*i)
1159 }
1160 return uuo
1161}
1162
1163// AddStorage adds i to the "storage" field.
1164func (uuo *UserUpdateOne) AddStorage(i int64) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStorageMethod · 0.95

Tested by

no test coverage detected