SetNillableAvatar sets the "avatar" field if the given value is not nil.
(s *string)
| 150 | |
| 151 | // SetNillableAvatar sets the "avatar" field if the given value is not nil. |
| 152 | func (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. |
| 160 | func (uc *UserCreate) SetSettings(ts *types.UserSetting) *UserCreate { |