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

Method SetNillableEmail

ent/user_update.go:1093–1098  ·  view source on GitHub ↗

SetNillableEmail sets the "email" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

1091
1092// SetNillableEmail sets the "email" field if the given value is not nil.
1093func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne {
1094 if s != nil {
1095 uuo.SetEmail(*s)
1096 }
1097 return uuo
1098}
1099
1100// SetNick sets the "nick" field.
1101func (uuo *UserUpdateOne) SetNick(s string) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetEmailMethod · 0.95

Tested by

no test coverage detected