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

Method SetNillableAvatar

ent/user_create.go:152–157  ·  view source on GitHub ↗

SetNillableAvatar sets the "avatar" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

150
151// SetNillableAvatar sets the "avatar" field if the given value is not nil.
152func (uc *UserCreate) SetNillableAvatar(s *string) *UserCreate {
153 if s != nil {
154 uc.SetAvatar(*s)
155 }
156 return uc
157}
158
159// SetSettings sets the "settings" field.
160func (uc *UserCreate) SetSettings(ts *types.UserSetting) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetAvatarMethod · 0.95

Tested by

no test coverage detected