Files
portal/openapi/docs/UserResponse.md
2026-06-22 11:38:29 +02:00

3.3 KiB

UserResponse

Properties

Name Type Description Notes
Name string
Email Pointer to NullableString [optional]
IsAdmin Pointer to bool [optional] [default to false]
Id int32

Methods

NewUserResponse

func NewUserResponse(name string, id int32, ) *UserResponse

NewUserResponse instantiates a new UserResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewUserResponseWithDefaults

func NewUserResponseWithDefaults() *UserResponse

NewUserResponseWithDefaults instantiates a new UserResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetName

func (o *UserResponse) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *UserResponse) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *UserResponse) SetName(v string)

SetName sets Name field to given value.

GetEmail

func (o *UserResponse) GetEmail() string

GetEmail returns the Email field if non-nil, zero value otherwise.

GetEmailOk

func (o *UserResponse) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEmail

func (o *UserResponse) SetEmail(v string)

SetEmail sets Email field to given value.

HasEmail

func (o *UserResponse) HasEmail() bool

HasEmail returns a boolean if a field has been set.

SetEmailNil

func (o *UserResponse) SetEmailNil(b bool)

SetEmailNil sets the value for Email to be an explicit nil

UnsetEmail

func (o *UserResponse) UnsetEmail()

UnsetEmail ensures that no value is present for Email, not even an explicit nil

GetIsAdmin

func (o *UserResponse) GetIsAdmin() bool

GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.

GetIsAdminOk

func (o *UserResponse) GetIsAdminOk() (*bool, bool)

GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIsAdmin

func (o *UserResponse) SetIsAdmin(v bool)

SetIsAdmin sets IsAdmin field to given value.

HasIsAdmin

func (o *UserResponse) HasIsAdmin() bool

HasIsAdmin returns a boolean if a field has been set.

GetId

func (o *UserResponse) GetId() int32

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *UserResponse) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *UserResponse) SetId(v int32)

SetId sets Id field to given value.

[Back to Model list] [Back to API list] [Back to README]