github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/mono/mono_models/user_editable.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package mono_models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "context" 10 11 "github.com/go-openapi/strfmt" 12 "github.com/go-openapi/swag" 13 ) 14 15 // UserEditable user editable 16 // 17 // swagger:model UserEditable 18 type UserEditable struct { 19 20 // datetime format 21 DatetimeFormat string `json:"datetimeFormat,omitempty"` 22 23 // email 24 Email string `json:"email,omitempty"` 25 26 // invite code 27 InviteCode *string `json:"inviteCode,omitempty"` 28 29 // name 30 Name string `json:"name,omitempty"` 31 32 // password 33 Password string `json:"password,omitempty"` 34 35 // send marketing email 36 SendMarketingEmail *bool `json:"sendMarketingEmail,omitempty"` 37 38 // timezone 39 Timezone string `json:"timezone,omitempty"` 40 41 // username 42 Username string `json:"username,omitempty"` 43 } 44 45 // Validate validates this user editable 46 func (m *UserEditable) Validate(formats strfmt.Registry) error { 47 return nil 48 } 49 50 // ContextValidate validates this user editable based on context it is used 51 func (m *UserEditable) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 52 return nil 53 } 54 55 // MarshalBinary interface implementation 56 func (m *UserEditable) MarshalBinary() ([]byte, error) { 57 if m == nil { 58 return nil, nil 59 } 60 return swag.WriteJSON(m) 61 } 62 63 // UnmarshalBinary interface implementation 64 func (m *UserEditable) UnmarshalBinary(b []byte) error { 65 var res UserEditable 66 if err := swag.ReadJSON(b, &res); err != nil { 67 return err 68 } 69 *m = res 70 return nil 71 }