Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AllTypesCreate
- func (s *AllTypesCreate) Decode(d *jx.Decoder) error
- func (at *AllTypesCreate) Elem() AllTypesCreate
- func (s *AllTypesCreate) Encode(e *jx.Encoder)
- func (s *AllTypesCreate) GetBool() bool
- func (s *AllTypesCreate) GetBytes() []byte
- func (s *AllTypesCreate) GetFloat32() float32
- func (s *AllTypesCreate) GetFloat64() float64
- func (s *AllTypesCreate) GetID() int64
- func (s *AllTypesCreate) GetInt() int
- func (s *AllTypesCreate) GetInt16() int32
- func (s *AllTypesCreate) GetInt32() int32
- func (s *AllTypesCreate) GetInt64() int64
- func (s *AllTypesCreate) GetInt8() int32
- func (s *AllTypesCreate) GetNilable() OptString
- func (s *AllTypesCreate) GetState() AllTypesCreateState
- func (s *AllTypesCreate) GetStringType() string
- func (s *AllTypesCreate) GetText() string
- func (s *AllTypesCreate) GetTime() time.Time
- func (s *AllTypesCreate) GetUUID() uuid.UUID
- func (s *AllTypesCreate) GetUint() int64
- func (s *AllTypesCreate) GetUint16() int32
- func (s *AllTypesCreate) GetUint32() int64
- func (s *AllTypesCreate) GetUint64() int64
- func (s *AllTypesCreate) GetUint8() int32
- func (s *AllTypesCreate) MarshalJSON() ([]byte, error)
- func (s *AllTypesCreate) SetBool(val bool)
- func (s *AllTypesCreate) SetBytes(val []byte)
- func (s *AllTypesCreate) SetFloat32(val float32)
- func (s *AllTypesCreate) SetFloat64(val float64)
- func (s *AllTypesCreate) SetID(val int64)
- func (s *AllTypesCreate) SetInt(val int)
- func (s *AllTypesCreate) SetInt16(val int32)
- func (s *AllTypesCreate) SetInt32(val int32)
- func (s *AllTypesCreate) SetInt64(val int64)
- func (s *AllTypesCreate) SetInt8(val int32)
- func (s *AllTypesCreate) SetNilable(val OptString)
- func (s *AllTypesCreate) SetState(val AllTypesCreateState)
- func (s *AllTypesCreate) SetStringType(val string)
- func (s *AllTypesCreate) SetText(val string)
- func (s *AllTypesCreate) SetTime(val time.Time)
- func (s *AllTypesCreate) SetUUID(val uuid.UUID)
- func (s *AllTypesCreate) SetUint(val int64)
- func (s *AllTypesCreate) SetUint16(val int32)
- func (s *AllTypesCreate) SetUint32(val int64)
- func (s *AllTypesCreate) SetUint64(val int64)
- func (s *AllTypesCreate) SetUint8(val int32)
- func (s *AllTypesCreate) UnmarshalJSON(data []byte) error
- func (s *AllTypesCreate) Validate() error
- type AllTypesCreateState
- func (s *AllTypesCreateState) Decode(d *jx.Decoder) error
- func (s AllTypesCreateState) Encode(e *jx.Encoder)
- func (s AllTypesCreateState) MarshalJSON() ([]byte, error)
- func (s AllTypesCreateState) MarshalText() ([]byte, error)
- func (s *AllTypesCreateState) UnmarshalJSON(data []byte) error
- func (s *AllTypesCreateState) UnmarshalText(data []byte) error
- func (s AllTypesCreateState) Validate() error
- type AllTypesList
- func (s *AllTypesList) Decode(d *jx.Decoder) error
- func (at *AllTypesList) Elem() AllTypesList
- func (s *AllTypesList) Encode(e *jx.Encoder)
- func (s *AllTypesList) GetBool() bool
- func (s *AllTypesList) GetBytes() []byte
- func (s *AllTypesList) GetFloat32() float32
- func (s *AllTypesList) GetFloat64() float64
- func (s *AllTypesList) GetID() int64
- func (s *AllTypesList) GetInt() int
- func (s *AllTypesList) GetInt16() int32
- func (s *AllTypesList) GetInt32() int32
- func (s *AllTypesList) GetInt64() int64
- func (s *AllTypesList) GetInt8() int32
- func (s *AllTypesList) GetNilable() OptString
- func (s *AllTypesList) GetState() AllTypesListState
- func (s *AllTypesList) GetStringType() string
- func (s *AllTypesList) GetText() string
- func (s *AllTypesList) GetTime() time.Time
- func (s *AllTypesList) GetUUID() uuid.UUID
- func (s *AllTypesList) GetUint() int64
- func (s *AllTypesList) GetUint16() int32
- func (s *AllTypesList) GetUint32() int64
- func (s *AllTypesList) GetUint64() int64
- func (s *AllTypesList) GetUint8() int32
- func (s *AllTypesList) MarshalJSON() ([]byte, error)
- func (s *AllTypesList) SetBool(val bool)
- func (s *AllTypesList) SetBytes(val []byte)
- func (s *AllTypesList) SetFloat32(val float32)
- func (s *AllTypesList) SetFloat64(val float64)
- func (s *AllTypesList) SetID(val int64)
- func (s *AllTypesList) SetInt(val int)
- func (s *AllTypesList) SetInt16(val int32)
- func (s *AllTypesList) SetInt32(val int32)
- func (s *AllTypesList) SetInt64(val int64)
- func (s *AllTypesList) SetInt8(val int32)
- func (s *AllTypesList) SetNilable(val OptString)
- func (s *AllTypesList) SetState(val AllTypesListState)
- func (s *AllTypesList) SetStringType(val string)
- func (s *AllTypesList) SetText(val string)
- func (s *AllTypesList) SetTime(val time.Time)
- func (s *AllTypesList) SetUUID(val uuid.UUID)
- func (s *AllTypesList) SetUint(val int64)
- func (s *AllTypesList) SetUint16(val int32)
- func (s *AllTypesList) SetUint32(val int64)
- func (s *AllTypesList) SetUint64(val int64)
- func (s *AllTypesList) SetUint8(val int32)
- func (s *AllTypesList) UnmarshalJSON(data []byte) error
- func (s *AllTypesList) Validate() error
- type AllTypesListState
- func (s *AllTypesListState) Decode(d *jx.Decoder) error
- func (s AllTypesListState) Encode(e *jx.Encoder)
- func (s AllTypesListState) MarshalJSON() ([]byte, error)
- func (s AllTypesListState) MarshalText() ([]byte, error)
- func (s *AllTypesListState) UnmarshalJSON(data []byte) error
- func (s *AllTypesListState) UnmarshalText(data []byte) error
- func (s AllTypesListState) Validate() error
- type AllTypesRead
- func (s *AllTypesRead) Decode(d *jx.Decoder) error
- func (at *AllTypesRead) Elem() AllTypesRead
- func (s *AllTypesRead) Encode(e *jx.Encoder)
- func (s *AllTypesRead) GetBool() bool
- func (s *AllTypesRead) GetBytes() []byte
- func (s *AllTypesRead) GetFloat32() float32
- func (s *AllTypesRead) GetFloat64() float64
- func (s *AllTypesRead) GetID() int64
- func (s *AllTypesRead) GetInt() int
- func (s *AllTypesRead) GetInt16() int32
- func (s *AllTypesRead) GetInt32() int32
- func (s *AllTypesRead) GetInt64() int64
- func (s *AllTypesRead) GetInt8() int32
- func (s *AllTypesRead) GetNilable() OptString
- func (s *AllTypesRead) GetState() AllTypesReadState
- func (s *AllTypesRead) GetStringType() string
- func (s *AllTypesRead) GetText() string
- func (s *AllTypesRead) GetTime() time.Time
- func (s *AllTypesRead) GetUUID() uuid.UUID
- func (s *AllTypesRead) GetUint() int64
- func (s *AllTypesRead) GetUint16() int32
- func (s *AllTypesRead) GetUint32() int64
- func (s *AllTypesRead) GetUint64() int64
- func (s *AllTypesRead) GetUint8() int32
- func (s *AllTypesRead) MarshalJSON() ([]byte, error)
- func (s *AllTypesRead) SetBool(val bool)
- func (s *AllTypesRead) SetBytes(val []byte)
- func (s *AllTypesRead) SetFloat32(val float32)
- func (s *AllTypesRead) SetFloat64(val float64)
- func (s *AllTypesRead) SetID(val int64)
- func (s *AllTypesRead) SetInt(val int)
- func (s *AllTypesRead) SetInt16(val int32)
- func (s *AllTypesRead) SetInt32(val int32)
- func (s *AllTypesRead) SetInt64(val int64)
- func (s *AllTypesRead) SetInt8(val int32)
- func (s *AllTypesRead) SetNilable(val OptString)
- func (s *AllTypesRead) SetState(val AllTypesReadState)
- func (s *AllTypesRead) SetStringType(val string)
- func (s *AllTypesRead) SetText(val string)
- func (s *AllTypesRead) SetTime(val time.Time)
- func (s *AllTypesRead) SetUUID(val uuid.UUID)
- func (s *AllTypesRead) SetUint(val int64)
- func (s *AllTypesRead) SetUint16(val int32)
- func (s *AllTypesRead) SetUint32(val int64)
- func (s *AllTypesRead) SetUint64(val int64)
- func (s *AllTypesRead) SetUint8(val int32)
- func (s *AllTypesRead) UnmarshalJSON(data []byte) error
- func (s *AllTypesRead) Validate() error
- type AllTypesReadState
- func (s *AllTypesReadState) Decode(d *jx.Decoder) error
- func (s AllTypesReadState) Encode(e *jx.Encoder)
- func (s AllTypesReadState) MarshalJSON() ([]byte, error)
- func (s AllTypesReadState) MarshalText() ([]byte, error)
- func (s *AllTypesReadState) UnmarshalJSON(data []byte) error
- func (s *AllTypesReadState) UnmarshalText(data []byte) error
- func (s AllTypesReadState) Validate() error
- type AllTypesUpdate
- func (s *AllTypesUpdate) Decode(d *jx.Decoder) error
- func (at *AllTypesUpdate) Elem() AllTypesUpdate
- func (s *AllTypesUpdate) Encode(e *jx.Encoder)
- func (s *AllTypesUpdate) GetBool() bool
- func (s *AllTypesUpdate) GetBytes() []byte
- func (s *AllTypesUpdate) GetFloat32() float32
- func (s *AllTypesUpdate) GetFloat64() float64
- func (s *AllTypesUpdate) GetID() int64
- func (s *AllTypesUpdate) GetInt() int
- func (s *AllTypesUpdate) GetInt16() int32
- func (s *AllTypesUpdate) GetInt32() int32
- func (s *AllTypesUpdate) GetInt64() int64
- func (s *AllTypesUpdate) GetInt8() int32
- func (s *AllTypesUpdate) GetNilable() OptString
- func (s *AllTypesUpdate) GetState() AllTypesUpdateState
- func (s *AllTypesUpdate) GetStringType() string
- func (s *AllTypesUpdate) GetText() string
- func (s *AllTypesUpdate) GetTime() time.Time
- func (s *AllTypesUpdate) GetUUID() uuid.UUID
- func (s *AllTypesUpdate) GetUint() int64
- func (s *AllTypesUpdate) GetUint16() int32
- func (s *AllTypesUpdate) GetUint32() int64
- func (s *AllTypesUpdate) GetUint64() int64
- func (s *AllTypesUpdate) GetUint8() int32
- func (s *AllTypesUpdate) MarshalJSON() ([]byte, error)
- func (s *AllTypesUpdate) SetBool(val bool)
- func (s *AllTypesUpdate) SetBytes(val []byte)
- func (s *AllTypesUpdate) SetFloat32(val float32)
- func (s *AllTypesUpdate) SetFloat64(val float64)
- func (s *AllTypesUpdate) SetID(val int64)
- func (s *AllTypesUpdate) SetInt(val int)
- func (s *AllTypesUpdate) SetInt16(val int32)
- func (s *AllTypesUpdate) SetInt32(val int32)
- func (s *AllTypesUpdate) SetInt64(val int64)
- func (s *AllTypesUpdate) SetInt8(val int32)
- func (s *AllTypesUpdate) SetNilable(val OptString)
- func (s *AllTypesUpdate) SetState(val AllTypesUpdateState)
- func (s *AllTypesUpdate) SetStringType(val string)
- func (s *AllTypesUpdate) SetText(val string)
- func (s *AllTypesUpdate) SetTime(val time.Time)
- func (s *AllTypesUpdate) SetUUID(val uuid.UUID)
- func (s *AllTypesUpdate) SetUint(val int64)
- func (s *AllTypesUpdate) SetUint16(val int32)
- func (s *AllTypesUpdate) SetUint32(val int64)
- func (s *AllTypesUpdate) SetUint64(val int64)
- func (s *AllTypesUpdate) SetUint8(val int32)
- func (s *AllTypesUpdate) UnmarshalJSON(data []byte) error
- func (s *AllTypesUpdate) Validate() error
- type AllTypesUpdateState
- func (s *AllTypesUpdateState) Decode(d *jx.Decoder) error
- func (s AllTypesUpdateState) Encode(e *jx.Encoder)
- func (s AllTypesUpdateState) MarshalJSON() ([]byte, error)
- func (s AllTypesUpdateState) MarshalText() ([]byte, error)
- func (s *AllTypesUpdateState) UnmarshalJSON(data []byte) error
- func (s *AllTypesUpdateState) UnmarshalText(data []byte) error
- func (s AllTypesUpdateState) Validate() error
- type CategoryCreate
- func (s *CategoryCreate) Decode(d *jx.Decoder) error
- func (c *CategoryCreate) Elem() CategoryCreate
- func (s *CategoryCreate) Encode(e *jx.Encoder)
- func (s *CategoryCreate) GetID() int
- func (s *CategoryCreate) GetName() string
- func (s *CategoryCreate) GetReadonly() OptString
- func (s *CategoryCreate) MarshalJSON() ([]byte, error)
- func (s *CategoryCreate) SetID(val int)
- func (s *CategoryCreate) SetName(val string)
- func (s *CategoryCreate) SetReadonly(val OptString)
- func (s *CategoryCreate) UnmarshalJSON(data []byte) error
- type CategoryList
- func (s *CategoryList) Decode(d *jx.Decoder) error
- func (c *CategoryList) Elem() CategoryList
- func (s *CategoryList) Encode(e *jx.Encoder)
- func (s *CategoryList) GetID() int
- func (s *CategoryList) GetName() string
- func (s *CategoryList) GetReadonly() OptString
- func (s *CategoryList) MarshalJSON() ([]byte, error)
- func (s *CategoryList) SetID(val int)
- func (s *CategoryList) SetName(val string)
- func (s *CategoryList) SetReadonly(val OptString)
- func (s *CategoryList) UnmarshalJSON(data []byte) error
- type CategoryPetsList
- func (s *CategoryPetsList) Decode(d *jx.Decoder) error
- func (pe *CategoryPetsList) Elem() CategoryPetsList
- func (s *CategoryPetsList) Encode(e *jx.Encoder)
- func (s *CategoryPetsList) GetBirthday() OptDateTime
- func (s *CategoryPetsList) GetHeight() OptInt
- func (s *CategoryPetsList) GetID() int
- func (s *CategoryPetsList) GetName() string
- func (s *CategoryPetsList) GetTagID() []byte
- func (s *CategoryPetsList) GetWeight() OptInt
- func (s *CategoryPetsList) MarshalJSON() ([]byte, error)
- func (s *CategoryPetsList) SetBirthday(val OptDateTime)
- func (s *CategoryPetsList) SetHeight(val OptInt)
- func (s *CategoryPetsList) SetID(val int)
- func (s *CategoryPetsList) SetName(val string)
- func (s *CategoryPetsList) SetTagID(val []byte)
- func (s *CategoryPetsList) SetWeight(val OptInt)
- func (s *CategoryPetsList) UnmarshalJSON(data []byte) error
- type CategoryRead
- func (s *CategoryRead) Decode(d *jx.Decoder) error
- func (c *CategoryRead) Elem() CategoryRead
- func (s *CategoryRead) Encode(e *jx.Encoder)
- func (s *CategoryRead) GetID() int
- func (s *CategoryRead) GetName() string
- func (s *CategoryRead) GetReadonly() OptString
- func (s *CategoryRead) MarshalJSON() ([]byte, error)
- func (s *CategoryRead) SetID(val int)
- func (s *CategoryRead) SetName(val string)
- func (s *CategoryRead) SetReadonly(val OptString)
- func (s *CategoryRead) UnmarshalJSON(data []byte) error
- type CategoryUpdate
- func (s *CategoryUpdate) Decode(d *jx.Decoder) error
- func (c *CategoryUpdate) Elem() CategoryUpdate
- func (s *CategoryUpdate) Encode(e *jx.Encoder)
- func (s *CategoryUpdate) GetID() int
- func (s *CategoryUpdate) GetName() string
- func (s *CategoryUpdate) GetReadonly() OptString
- func (s *CategoryUpdate) MarshalJSON() ([]byte, error)
- func (s *CategoryUpdate) SetID(val int)
- func (s *CategoryUpdate) SetName(val string)
- func (s *CategoryUpdate) SetReadonly(val OptString)
- func (s *CategoryUpdate) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) CreateAllTypes(ctx context.Context, request *CreateAllTypesReq) (CreateAllTypesRes, error)
- func (c *Client) CreateCategory(ctx context.Context, request *CreateCategoryReq) (CreateCategoryRes, error)
- func (c *Client) CreateHat(ctx context.Context, request *CreateHatReq) (CreateHatRes, error)
- func (c *Client) CreatePet(ctx context.Context, request *CreatePetReq) (CreatePetRes, error)
- func (c *Client) CreateUser(ctx context.Context, request *CreateUserReq) (CreateUserRes, error)
- func (c *Client) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
- func (c *Client) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
- func (c *Client) DeleteHat(ctx context.Context, params DeleteHatParams) (DeleteHatRes, error)
- func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
- func (c *Client) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
- func (c *Client) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
- func (c *Client) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
- func (c *Client) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
- func (c *Client) ListHat(ctx context.Context, params ListHatParams) (ListHatRes, error)
- func (c *Client) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
- func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
- func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
- func (c *Client) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (ListPetRescuerRes, error)
- func (c *Client) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
- func (c *Client) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (ListUserAnimalsSavedRes, error)
- func (c *Client) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
- func (c *Client) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
- func (c *Client) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
- func (c *Client) ReadHat(ctx context.Context, params ReadHatParams) (ReadHatRes, error)
- func (c *Client) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (ReadHatWearerRes, error)
- func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
- func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
- func (c *Client) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
- func (c *Client) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
- func (c *Client) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (ReadUserFavoriteHatRes, error)
- func (c *Client) UpdateAllTypes(ctx context.Context, request *UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
- func (c *Client) UpdateCategory(ctx context.Context, request *UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
- func (c *Client) UpdateHat(ctx context.Context, request *UpdateHatReq, params UpdateHatParams) (UpdateHatRes, error)
- func (c *Client) UpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
- func (c *Client) UpdateUser(ctx context.Context, request *UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
- type ClientOption
- type CreateAllTypesReq
- func (s *CreateAllTypesReq) Decode(d *jx.Decoder) error
- func (s *CreateAllTypesReq) Encode(e *jx.Encoder)
- func (s *CreateAllTypesReq) GetBool() bool
- func (s *CreateAllTypesReq) GetBytes() []byte
- func (s *CreateAllTypesReq) GetFloat32() float32
- func (s *CreateAllTypesReq) GetFloat64() float64
- func (s *CreateAllTypesReq) GetInt() int
- func (s *CreateAllTypesReq) GetInt16() int32
- func (s *CreateAllTypesReq) GetInt32() int32
- func (s *CreateAllTypesReq) GetInt64() int64
- func (s *CreateAllTypesReq) GetInt8() int32
- func (s *CreateAllTypesReq) GetNilable() string
- func (s *CreateAllTypesReq) GetState() CreateAllTypesReqState
- func (s *CreateAllTypesReq) GetStringType() string
- func (s *CreateAllTypesReq) GetText() string
- func (s *CreateAllTypesReq) GetTime() time.Time
- func (s *CreateAllTypesReq) GetUUID() uuid.UUID
- func (s *CreateAllTypesReq) GetUint() int64
- func (s *CreateAllTypesReq) GetUint16() int32
- func (s *CreateAllTypesReq) GetUint32() int64
- func (s *CreateAllTypesReq) GetUint64() int64
- func (s *CreateAllTypesReq) GetUint8() int32
- func (s *CreateAllTypesReq) MarshalJSON() ([]byte, error)
- func (s *CreateAllTypesReq) SetBool(val bool)
- func (s *CreateAllTypesReq) SetBytes(val []byte)
- func (s *CreateAllTypesReq) SetFloat32(val float32)
- func (s *CreateAllTypesReq) SetFloat64(val float64)
- func (s *CreateAllTypesReq) SetInt(val int)
- func (s *CreateAllTypesReq) SetInt16(val int32)
- func (s *CreateAllTypesReq) SetInt32(val int32)
- func (s *CreateAllTypesReq) SetInt64(val int64)
- func (s *CreateAllTypesReq) SetInt8(val int32)
- func (s *CreateAllTypesReq) SetNilable(val string)
- func (s *CreateAllTypesReq) SetState(val CreateAllTypesReqState)
- func (s *CreateAllTypesReq) SetStringType(val string)
- func (s *CreateAllTypesReq) SetText(val string)
- func (s *CreateAllTypesReq) SetTime(val time.Time)
- func (s *CreateAllTypesReq) SetUUID(val uuid.UUID)
- func (s *CreateAllTypesReq) SetUint(val int64)
- func (s *CreateAllTypesReq) SetUint16(val int32)
- func (s *CreateAllTypesReq) SetUint32(val int64)
- func (s *CreateAllTypesReq) SetUint64(val int64)
- func (s *CreateAllTypesReq) SetUint8(val int32)
- func (s *CreateAllTypesReq) UnmarshalJSON(data []byte) error
- func (s *CreateAllTypesReq) Validate() error
- type CreateAllTypesReqState
- func (s *CreateAllTypesReqState) Decode(d *jx.Decoder) error
- func (s CreateAllTypesReqState) Encode(e *jx.Encoder)
- func (s CreateAllTypesReqState) MarshalJSON() ([]byte, error)
- func (s CreateAllTypesReqState) MarshalText() ([]byte, error)
- func (s *CreateAllTypesReqState) UnmarshalJSON(data []byte) error
- func (s *CreateAllTypesReqState) UnmarshalText(data []byte) error
- func (s CreateAllTypesReqState) Validate() error
- type CreateAllTypesRes
- type CreateCategoryReq
- func (s *CreateCategoryReq) Decode(d *jx.Decoder) error
- func (s *CreateCategoryReq) Encode(e *jx.Encoder)
- func (s *CreateCategoryReq) GetName() string
- func (s *CreateCategoryReq) GetPets() []int
- func (s *CreateCategoryReq) MarshalJSON() ([]byte, error)
- func (s *CreateCategoryReq) SetName(val string)
- func (s *CreateCategoryReq) SetPets(val []int)
- func (s *CreateCategoryReq) UnmarshalJSON(data []byte) error
- type CreateCategoryRes
- type CreateHatReq
- func (s *CreateHatReq) Decode(d *jx.Decoder) error
- func (s *CreateHatReq) Encode(e *jx.Encoder)
- func (s *CreateHatReq) GetName() string
- func (s *CreateHatReq) GetType() CreateHatReqType
- func (s *CreateHatReq) GetWearer() OptInt
- func (s *CreateHatReq) MarshalJSON() ([]byte, error)
- func (s *CreateHatReq) SetName(val string)
- func (s *CreateHatReq) SetType(val CreateHatReqType)
- func (s *CreateHatReq) SetWearer(val OptInt)
- func (s *CreateHatReq) UnmarshalJSON(data []byte) error
- func (s *CreateHatReq) Validate() error
- type CreateHatReqType
- func (s *CreateHatReqType) Decode(d *jx.Decoder) error
- func (s CreateHatReqType) Encode(e *jx.Encoder)
- func (s CreateHatReqType) MarshalJSON() ([]byte, error)
- func (s CreateHatReqType) MarshalText() ([]byte, error)
- func (s *CreateHatReqType) UnmarshalJSON(data []byte) error
- func (s *CreateHatReqType) UnmarshalText(data []byte) error
- func (s CreateHatReqType) Validate() error
- type CreateHatRes
- type CreatePetReq
- func (s *CreatePetReq) Decode(d *jx.Decoder) error
- func (s *CreatePetReq) Encode(e *jx.Encoder)
- func (s *CreatePetReq) GetBirthday() OptDateTime
- func (s *CreatePetReq) GetCategories() []int
- func (s *CreatePetReq) GetFriends() []int
- func (s *CreatePetReq) GetHeight() OptInt
- func (s *CreatePetReq) GetName() string
- func (s *CreatePetReq) GetOwner() int
- func (s *CreatePetReq) GetRescuer() []int
- func (s *CreatePetReq) GetTagID() []byte
- func (s *CreatePetReq) GetWeight() OptInt
- func (s *CreatePetReq) MarshalJSON() ([]byte, error)
- func (s *CreatePetReq) SetBirthday(val OptDateTime)
- func (s *CreatePetReq) SetCategories(val []int)
- func (s *CreatePetReq) SetFriends(val []int)
- func (s *CreatePetReq) SetHeight(val OptInt)
- func (s *CreatePetReq) SetName(val string)
- func (s *CreatePetReq) SetOwner(val int)
- func (s *CreatePetReq) SetRescuer(val []int)
- func (s *CreatePetReq) SetTagID(val []byte)
- func (s *CreatePetReq) SetWeight(val OptInt)
- func (s *CreatePetReq) UnmarshalJSON(data []byte) error
- type CreatePetRes
- type CreateUserReq
- func (s *CreateUserReq) Decode(d *jx.Decoder) error
- func (s *CreateUserReq) Encode(e *jx.Encoder)
- func (s *CreateUserReq) GetAge() int64
- func (s *CreateUserReq) GetAnimalsSaved() []int
- func (s *CreateUserReq) GetBestFriend() OptInt
- func (s *CreateUserReq) GetFavoriteCatBreed() CreateUserReqFavoriteCatBreed
- func (s *CreateUserReq) GetFavoriteColor() CreateUserReqFavoriteColor
- func (s *CreateUserReq) GetFavoriteDogBreed() OptCreateUserReqFavoriteDogBreed
- func (s *CreateUserReq) GetFavoriteFishBreed() OptCreateUserReqFavoriteFishBreed
- func (s *CreateUserReq) GetFavoriteHat() OptInt
- func (s *CreateUserReq) GetHeight() OptInt64
- func (s *CreateUserReq) GetName() string
- func (s *CreateUserReq) GetPets() []int
- func (s *CreateUserReq) MarshalJSON() ([]byte, error)
- func (s *CreateUserReq) SetAge(val int64)
- func (s *CreateUserReq) SetAnimalsSaved(val []int)
- func (s *CreateUserReq) SetBestFriend(val OptInt)
- func (s *CreateUserReq) SetFavoriteCatBreed(val CreateUserReqFavoriteCatBreed)
- func (s *CreateUserReq) SetFavoriteColor(val CreateUserReqFavoriteColor)
- func (s *CreateUserReq) SetFavoriteDogBreed(val OptCreateUserReqFavoriteDogBreed)
- func (s *CreateUserReq) SetFavoriteFishBreed(val OptCreateUserReqFavoriteFishBreed)
- func (s *CreateUserReq) SetFavoriteHat(val OptInt)
- func (s *CreateUserReq) SetHeight(val OptInt64)
- func (s *CreateUserReq) SetName(val string)
- func (s *CreateUserReq) SetPets(val []int)
- func (s *CreateUserReq) UnmarshalJSON(data []byte) error
- func (s *CreateUserReq) Validate() error
- type CreateUserReqFavoriteCatBreed
- func (s *CreateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s CreateUserReqFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *CreateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *CreateUserReqFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s CreateUserReqFavoriteCatBreed) Validate() error
- type CreateUserReqFavoriteColor
- func (s *CreateUserReqFavoriteColor) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteColor) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteColor) MarshalJSON() ([]byte, error)
- func (s CreateUserReqFavoriteColor) MarshalText() ([]byte, error)
- func (s *CreateUserReqFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *CreateUserReqFavoriteColor) UnmarshalText(data []byte) error
- func (s CreateUserReqFavoriteColor) Validate() error
- type CreateUserReqFavoriteDogBreed
- func (s *CreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s CreateUserReqFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *CreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *CreateUserReqFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s CreateUserReqFavoriteDogBreed) Validate() error
- type CreateUserReqFavoriteFishBreed
- func (s *CreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s CreateUserReqFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *CreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *CreateUserReqFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s CreateUserReqFavoriteFishBreed) Validate() error
- type CreateUserRes
- type DeleteAllTypesNoContent
- type DeleteAllTypesParams
- type DeleteAllTypesRes
- type DeleteCategoryNoContent
- type DeleteCategoryParams
- type DeleteCategoryRes
- type DeleteHatNoContent
- type DeleteHatParams
- type DeleteHatRes
- type DeletePetNoContent
- type DeletePetParams
- type DeletePetRes
- type DeleteUserNoContent
- type DeleteUserParams
- type DeleteUserRes
- type ErrorHandler
- type Handler
- type HatCreate
- func (s *HatCreate) Decode(d *jx.Decoder) error
- func (h *HatCreate) Elem() HatCreate
- func (s *HatCreate) Encode(e *jx.Encoder)
- func (s *HatCreate) GetID() int
- func (s *HatCreate) GetName() string
- func (s *HatCreate) GetType() HatCreateType
- func (s *HatCreate) MarshalJSON() ([]byte, error)
- func (s *HatCreate) SetID(val int)
- func (s *HatCreate) SetName(val string)
- func (s *HatCreate) SetType(val HatCreateType)
- func (s *HatCreate) UnmarshalJSON(data []byte) error
- func (s *HatCreate) Validate() error
- type HatCreateType
- func (s *HatCreateType) Decode(d *jx.Decoder) error
- func (s HatCreateType) Encode(e *jx.Encoder)
- func (s HatCreateType) MarshalJSON() ([]byte, error)
- func (s HatCreateType) MarshalText() ([]byte, error)
- func (s *HatCreateType) UnmarshalJSON(data []byte) error
- func (s *HatCreateType) UnmarshalText(data []byte) error
- func (s HatCreateType) Validate() error
- type HatList
- func (s *HatList) Decode(d *jx.Decoder) error
- func (h *HatList) Elem() HatList
- func (s *HatList) Encode(e *jx.Encoder)
- func (s *HatList) GetID() int
- func (s *HatList) GetName() string
- func (s *HatList) GetType() HatListType
- func (s *HatList) MarshalJSON() ([]byte, error)
- func (s *HatList) SetID(val int)
- func (s *HatList) SetName(val string)
- func (s *HatList) SetType(val HatListType)
- func (s *HatList) UnmarshalJSON(data []byte) error
- func (s *HatList) Validate() error
- type HatListType
- func (s *HatListType) Decode(d *jx.Decoder) error
- func (s HatListType) Encode(e *jx.Encoder)
- func (s HatListType) MarshalJSON() ([]byte, error)
- func (s HatListType) MarshalText() ([]byte, error)
- func (s *HatListType) UnmarshalJSON(data []byte) error
- func (s *HatListType) UnmarshalText(data []byte) error
- func (s HatListType) Validate() error
- type HatRead
- func (s *HatRead) Decode(d *jx.Decoder) error
- func (h *HatRead) Elem() HatRead
- func (s *HatRead) Encode(e *jx.Encoder)
- func (s *HatRead) GetID() int
- func (s *HatRead) GetName() string
- func (s *HatRead) GetType() HatReadType
- func (s *HatRead) MarshalJSON() ([]byte, error)
- func (s *HatRead) SetID(val int)
- func (s *HatRead) SetName(val string)
- func (s *HatRead) SetType(val HatReadType)
- func (s *HatRead) UnmarshalJSON(data []byte) error
- func (s *HatRead) Validate() error
- type HatReadType
- func (s *HatReadType) Decode(d *jx.Decoder) error
- func (s HatReadType) Encode(e *jx.Encoder)
- func (s HatReadType) MarshalJSON() ([]byte, error)
- func (s HatReadType) MarshalText() ([]byte, error)
- func (s *HatReadType) UnmarshalJSON(data []byte) error
- func (s *HatReadType) UnmarshalText(data []byte) error
- func (s HatReadType) Validate() error
- type HatUpdate
- func (s *HatUpdate) Decode(d *jx.Decoder) error
- func (h *HatUpdate) Elem() HatUpdate
- func (s *HatUpdate) Encode(e *jx.Encoder)
- func (s *HatUpdate) GetID() int
- func (s *HatUpdate) GetName() string
- func (s *HatUpdate) GetType() HatUpdateType
- func (s *HatUpdate) MarshalJSON() ([]byte, error)
- func (s *HatUpdate) SetID(val int)
- func (s *HatUpdate) SetName(val string)
- func (s *HatUpdate) SetType(val HatUpdateType)
- func (s *HatUpdate) UnmarshalJSON(data []byte) error
- func (s *HatUpdate) Validate() error
- type HatUpdateType
- func (s *HatUpdateType) Decode(d *jx.Decoder) error
- func (s HatUpdateType) Encode(e *jx.Encoder)
- func (s HatUpdateType) MarshalJSON() ([]byte, error)
- func (s HatUpdateType) MarshalText() ([]byte, error)
- func (s *HatUpdateType) UnmarshalJSON(data []byte) error
- func (s *HatUpdateType) UnmarshalText(data []byte) error
- func (s HatUpdateType) Validate() error
- type HatWearerRead
- func (s *HatWearerRead) Decode(d *jx.Decoder) error
- func (u *HatWearerRead) Elem() HatWearerRead
- func (s *HatWearerRead) Encode(e *jx.Encoder)
- func (s *HatWearerRead) GetAge() int64
- func (s *HatWearerRead) GetFavoriteCatBreed() HatWearerReadFavoriteCatBreed
- func (s *HatWearerRead) GetFavoriteColor() HatWearerReadFavoriteColor
- func (s *HatWearerRead) GetFavoriteDogBreed() OptHatWearerReadFavoriteDogBreed
- func (s *HatWearerRead) GetFavoriteFishBreed() OptHatWearerReadFavoriteFishBreed
- func (s *HatWearerRead) GetHeight() OptInt64
- func (s *HatWearerRead) GetID() int
- func (s *HatWearerRead) GetName() string
- func (s *HatWearerRead) MarshalJSON() ([]byte, error)
- func (s *HatWearerRead) SetAge(val int64)
- func (s *HatWearerRead) SetFavoriteCatBreed(val HatWearerReadFavoriteCatBreed)
- func (s *HatWearerRead) SetFavoriteColor(val HatWearerReadFavoriteColor)
- func (s *HatWearerRead) SetFavoriteDogBreed(val OptHatWearerReadFavoriteDogBreed)
- func (s *HatWearerRead) SetFavoriteFishBreed(val OptHatWearerReadFavoriteFishBreed)
- func (s *HatWearerRead) SetHeight(val OptInt64)
- func (s *HatWearerRead) SetID(val int)
- func (s *HatWearerRead) SetName(val string)
- func (s *HatWearerRead) UnmarshalJSON(data []byte) error
- func (s *HatWearerRead) Validate() error
- type HatWearerReadFavoriteCatBreed
- func (s *HatWearerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s HatWearerReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s HatWearerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s HatWearerReadFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *HatWearerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *HatWearerReadFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s HatWearerReadFavoriteCatBreed) Validate() error
- type HatWearerReadFavoriteColor
- func (s *HatWearerReadFavoriteColor) Decode(d *jx.Decoder) error
- func (s HatWearerReadFavoriteColor) Encode(e *jx.Encoder)
- func (s HatWearerReadFavoriteColor) MarshalJSON() ([]byte, error)
- func (s HatWearerReadFavoriteColor) MarshalText() ([]byte, error)
- func (s *HatWearerReadFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *HatWearerReadFavoriteColor) UnmarshalText(data []byte) error
- func (s HatWearerReadFavoriteColor) Validate() error
- type HatWearerReadFavoriteDogBreed
- func (s *HatWearerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s HatWearerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s HatWearerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s HatWearerReadFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *HatWearerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *HatWearerReadFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s HatWearerReadFavoriteDogBreed) Validate() error
- type HatWearerReadFavoriteFishBreed
- func (s *HatWearerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s HatWearerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s HatWearerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s HatWearerReadFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *HatWearerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *HatWearerReadFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s HatWearerReadFavoriteFishBreed) Validate() error
- type ListAllTypesOKApplicationJSON
- func (s *ListAllTypesOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListAllTypesOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListAllTypesOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListAllTypesOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListAllTypesOKApplicationJSON) Validate() error
- type ListAllTypesParams
- type ListAllTypesRes
- type ListCategoryOKApplicationJSON
- func (s *ListCategoryOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListCategoryOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListCategoryOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListCategoryOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListCategoryOKApplicationJSON) Validate() error
- type ListCategoryParams
- type ListCategoryPetsOKApplicationJSON
- func (s *ListCategoryPetsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListCategoryPetsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListCategoryPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListCategoryPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListCategoryPetsOKApplicationJSON) Validate() error
- type ListCategoryPetsParams
- type ListCategoryPetsRes
- type ListCategoryRes
- type ListHatOKApplicationJSON
- func (s *ListHatOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListHatOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListHatOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListHatOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListHatOKApplicationJSON) Validate() error
- type ListHatParams
- type ListHatRes
- type ListPetCategoriesOKApplicationJSON
- func (s *ListPetCategoriesOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetCategoriesOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetCategoriesOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetCategoriesOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetCategoriesOKApplicationJSON) Validate() error
- type ListPetCategoriesParams
- type ListPetCategoriesRes
- type ListPetFriendsOKApplicationJSON
- func (s *ListPetFriendsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetFriendsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetFriendsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetFriendsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetFriendsOKApplicationJSON) Validate() error
- type ListPetFriendsParams
- type ListPetFriendsRes
- type ListPetOKApplicationJSON
- func (s *ListPetOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetOKApplicationJSON) Validate() error
- type ListPetParams
- type ListPetRes
- type ListPetRescuerOKApplicationJSON
- func (s *ListPetRescuerOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetRescuerOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetRescuerOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetRescuerOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetRescuerOKApplicationJSON) Validate() error
- type ListPetRescuerParams
- type ListPetRescuerRes
- type ListUserAnimalsSavedOKApplicationJSON
- func (s *ListUserAnimalsSavedOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListUserAnimalsSavedOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListUserAnimalsSavedOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListUserAnimalsSavedOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListUserAnimalsSavedOKApplicationJSON) Validate() error
- type ListUserAnimalsSavedParams
- type ListUserAnimalsSavedRes
- type ListUserOKApplicationJSON
- func (s *ListUserOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListUserOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListUserOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListUserOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListUserOKApplicationJSON) Validate() error
- type ListUserParams
- type ListUserPetsOKApplicationJSON
- func (s *ListUserPetsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListUserPetsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListUserPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListUserPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListUserPetsOKApplicationJSON) Validate() error
- type ListUserPetsParams
- type ListUserPetsRes
- type ListUserRes
- type Middleware
- type OgentHandler
- func (h *OgentHandler) CreateAllTypes(ctx context.Context, req *CreateAllTypesReq) (CreateAllTypesRes, error)
- func (h *OgentHandler) CreateCategory(ctx context.Context, req *CreateCategoryReq) (CreateCategoryRes, error)
- func (h *OgentHandler) CreateHat(ctx context.Context, req *CreateHatReq) (CreateHatRes, error)
- func (h *OgentHandler) CreatePet(ctx context.Context, req *CreatePetReq) (CreatePetRes, error)
- func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (CreateUserRes, error)
- func (h *OgentHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
- func (h *OgentHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
- func (h *OgentHandler) DeleteHat(ctx context.Context, params DeleteHatParams) (DeleteHatRes, error)
- func (h *OgentHandler) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
- func (h *OgentHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
- func (h *OgentHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
- func (h *OgentHandler) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
- func (h *OgentHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
- func (h *OgentHandler) ListHat(ctx context.Context, params ListHatParams) (ListHatRes, error)
- func (h *OgentHandler) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
- func (h *OgentHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
- func (h *OgentHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
- func (h *OgentHandler) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (ListPetRescuerRes, error)
- func (h *OgentHandler) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
- func (h *OgentHandler) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (ListUserAnimalsSavedRes, error)
- func (h *OgentHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
- func (h *OgentHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
- func (h *OgentHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
- func (h *OgentHandler) ReadHat(ctx context.Context, params ReadHatParams) (ReadHatRes, error)
- func (h *OgentHandler) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (ReadHatWearerRes, error)
- func (h *OgentHandler) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
- func (h *OgentHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
- func (h *OgentHandler) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
- func (h *OgentHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
- func (h *OgentHandler) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (ReadUserFavoriteHatRes, error)
- func (h *OgentHandler) UpdateAllTypes(ctx context.Context, req *UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
- func (h *OgentHandler) UpdateCategory(ctx context.Context, req *UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
- func (h *OgentHandler) UpdateHat(ctx context.Context, req *UpdateHatReq, params UpdateHatParams) (UpdateHatRes, error)
- func (h *OgentHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
- func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreateUserReqFavoriteDogBreed
- func (o *OptCreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptCreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptCreateUserReqFavoriteDogBreed) Get() (v CreateUserReqFavoriteDogBreed, ok bool)
- func (o OptCreateUserReqFavoriteDogBreed) IsSet() bool
- func (s OptCreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptCreateUserReqFavoriteDogBreed) Or(d CreateUserReqFavoriteDogBreed) CreateUserReqFavoriteDogBreed
- func (o *OptCreateUserReqFavoriteDogBreed) Reset()
- func (o *OptCreateUserReqFavoriteDogBreed) SetTo(v CreateUserReqFavoriteDogBreed)
- func (s *OptCreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptCreateUserReqFavoriteFishBreed
- func (o *OptCreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptCreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptCreateUserReqFavoriteFishBreed) Get() (v CreateUserReqFavoriteFishBreed, ok bool)
- func (o OptCreateUserReqFavoriteFishBreed) IsSet() bool
- func (s OptCreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptCreateUserReqFavoriteFishBreed) Or(d CreateUserReqFavoriteFishBreed) CreateUserReqFavoriteFishBreed
- func (o *OptCreateUserReqFavoriteFishBreed) Reset()
- func (o *OptCreateUserReqFavoriteFishBreed) SetTo(v CreateUserReqFavoriteFishBreed)
- func (s *OptCreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptFloat32
- func (o *OptFloat32) Decode(d *jx.Decoder) error
- func (o OptFloat32) Encode(e *jx.Encoder)
- func (o OptFloat32) Get() (v float32, ok bool)
- func (o OptFloat32) IsSet() bool
- func (s OptFloat32) MarshalJSON() ([]byte, error)
- func (o OptFloat32) Or(d float32) float32
- func (o *OptFloat32) Reset()
- func (o *OptFloat32) SetTo(v float32)
- func (s *OptFloat32) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptHatWearerReadFavoriteDogBreed
- func (o *OptHatWearerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptHatWearerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptHatWearerReadFavoriteDogBreed) Get() (v HatWearerReadFavoriteDogBreed, ok bool)
- func (o OptHatWearerReadFavoriteDogBreed) IsSet() bool
- func (s OptHatWearerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptHatWearerReadFavoriteDogBreed) Or(d HatWearerReadFavoriteDogBreed) HatWearerReadFavoriteDogBreed
- func (o *OptHatWearerReadFavoriteDogBreed) Reset()
- func (o *OptHatWearerReadFavoriteDogBreed) SetTo(v HatWearerReadFavoriteDogBreed)
- func (s *OptHatWearerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptHatWearerReadFavoriteFishBreed
- func (o *OptHatWearerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptHatWearerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptHatWearerReadFavoriteFishBreed) Get() (v HatWearerReadFavoriteFishBreed, ok bool)
- func (o OptHatWearerReadFavoriteFishBreed) IsSet() bool
- func (s OptHatWearerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptHatWearerReadFavoriteFishBreed) Or(d HatWearerReadFavoriteFishBreed) HatWearerReadFavoriteFishBreed
- func (o *OptHatWearerReadFavoriteFishBreed) Reset()
- func (o *OptHatWearerReadFavoriteFishBreed) SetTo(v HatWearerReadFavoriteFishBreed)
- func (s *OptHatWearerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInt32
- func (o *OptInt32) Decode(d *jx.Decoder) error
- func (o OptInt32) Encode(e *jx.Encoder)
- func (o OptInt32) Get() (v int32, ok bool)
- func (o OptInt32) IsSet() bool
- func (s OptInt32) MarshalJSON() ([]byte, error)
- func (o OptInt32) Or(d int32) int32
- func (o *OptInt32) Reset()
- func (o *OptInt32) SetTo(v int32)
- func (s *OptInt32) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptPetCreateOwnerFavoriteDogBreed
- func (o *OptPetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptPetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptPetCreateOwnerFavoriteDogBreed) Get() (v PetCreateOwnerFavoriteDogBreed, ok bool)
- func (o OptPetCreateOwnerFavoriteDogBreed) IsSet() bool
- func (s OptPetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptPetCreateOwnerFavoriteDogBreed) Or(d PetCreateOwnerFavoriteDogBreed) PetCreateOwnerFavoriteDogBreed
- func (o *OptPetCreateOwnerFavoriteDogBreed) Reset()
- func (o *OptPetCreateOwnerFavoriteDogBreed) SetTo(v PetCreateOwnerFavoriteDogBreed)
- func (s *OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptPetCreateOwnerFavoriteFishBreed
- func (o *OptPetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptPetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptPetCreateOwnerFavoriteFishBreed) Get() (v PetCreateOwnerFavoriteFishBreed, ok bool)
- func (o OptPetCreateOwnerFavoriteFishBreed) IsSet() bool
- func (s OptPetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptPetCreateOwnerFavoriteFishBreed) Or(d PetCreateOwnerFavoriteFishBreed) PetCreateOwnerFavoriteFishBreed
- func (o *OptPetCreateOwnerFavoriteFishBreed) Reset()
- func (o *OptPetCreateOwnerFavoriteFishBreed) SetTo(v PetCreateOwnerFavoriteFishBreed)
- func (s *OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptPetOwnerReadFavoriteDogBreed
- func (o *OptPetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptPetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptPetOwnerReadFavoriteDogBreed) Get() (v PetOwnerReadFavoriteDogBreed, ok bool)
- func (o OptPetOwnerReadFavoriteDogBreed) IsSet() bool
- func (s OptPetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptPetOwnerReadFavoriteDogBreed) Or(d PetOwnerReadFavoriteDogBreed) PetOwnerReadFavoriteDogBreed
- func (o *OptPetOwnerReadFavoriteDogBreed) Reset()
- func (o *OptPetOwnerReadFavoriteDogBreed) SetTo(v PetOwnerReadFavoriteDogBreed)
- func (s *OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptPetOwnerReadFavoriteFishBreed
- func (o *OptPetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptPetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptPetOwnerReadFavoriteFishBreed) Get() (v PetOwnerReadFavoriteFishBreed, ok bool)
- func (o OptPetOwnerReadFavoriteFishBreed) IsSet() bool
- func (s OptPetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptPetOwnerReadFavoriteFishBreed) Or(d PetOwnerReadFavoriteFishBreed) PetOwnerReadFavoriteFishBreed
- func (o *OptPetOwnerReadFavoriteFishBreed) Reset()
- func (o *OptPetOwnerReadFavoriteFishBreed) SetTo(v PetOwnerReadFavoriteFishBreed)
- func (s *OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptPetRescuerListFavoriteDogBreed
- func (o *OptPetRescuerListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptPetRescuerListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptPetRescuerListFavoriteDogBreed) Get() (v PetRescuerListFavoriteDogBreed, ok bool)
- func (o OptPetRescuerListFavoriteDogBreed) IsSet() bool
- func (s OptPetRescuerListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptPetRescuerListFavoriteDogBreed) Or(d PetRescuerListFavoriteDogBreed) PetRescuerListFavoriteDogBreed
- func (o *OptPetRescuerListFavoriteDogBreed) Reset()
- func (o *OptPetRescuerListFavoriteDogBreed) SetTo(v PetRescuerListFavoriteDogBreed)
- func (s *OptPetRescuerListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptPetRescuerListFavoriteFishBreed
- func (o *OptPetRescuerListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptPetRescuerListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptPetRescuerListFavoriteFishBreed) Get() (v PetRescuerListFavoriteFishBreed, ok bool)
- func (o OptPetRescuerListFavoriteFishBreed) IsSet() bool
- func (s OptPetRescuerListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptPetRescuerListFavoriteFishBreed) Or(d PetRescuerListFavoriteFishBreed) PetRescuerListFavoriteFishBreed
- func (o *OptPetRescuerListFavoriteFishBreed) Reset()
- func (o *OptPetRescuerListFavoriteFishBreed) SetTo(v PetRescuerListFavoriteFishBreed)
- func (s *OptPetRescuerListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptUUID
- func (o *OptUUID) Decode(d *jx.Decoder) error
- func (o OptUUID) Encode(e *jx.Encoder)
- func (o OptUUID) Get() (v uuid.UUID, ok bool)
- func (o OptUUID) IsSet() bool
- func (s OptUUID) MarshalJSON() ([]byte, error)
- func (o OptUUID) Or(d uuid.UUID) uuid.UUID
- func (o *OptUUID) Reset()
- func (o *OptUUID) SetTo(v uuid.UUID)
- func (s *OptUUID) UnmarshalJSON(data []byte) error
- type OptUpdateAllTypesReqState
- func (o *OptUpdateAllTypesReqState) Decode(d *jx.Decoder) error
- func (o OptUpdateAllTypesReqState) Encode(e *jx.Encoder)
- func (o OptUpdateAllTypesReqState) Get() (v UpdateAllTypesReqState, ok bool)
- func (o OptUpdateAllTypesReqState) IsSet() bool
- func (s OptUpdateAllTypesReqState) MarshalJSON() ([]byte, error)
- func (o OptUpdateAllTypesReqState) Or(d UpdateAllTypesReqState) UpdateAllTypesReqState
- func (o *OptUpdateAllTypesReqState) Reset()
- func (o *OptUpdateAllTypesReqState) SetTo(v UpdateAllTypesReqState)
- func (s *OptUpdateAllTypesReqState) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteCatBreed
- func (o *OptUpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteCatBreed) Get() (v UpdateUserReqFavoriteCatBreed, ok bool)
- func (o OptUpdateUserReqFavoriteCatBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteCatBreed) Or(d UpdateUserReqFavoriteCatBreed) UpdateUserReqFavoriteCatBreed
- func (o *OptUpdateUserReqFavoriteCatBreed) Reset()
- func (o *OptUpdateUserReqFavoriteCatBreed) SetTo(v UpdateUserReqFavoriteCatBreed)
- func (s *OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteDogBreed
- func (o *OptUpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteDogBreed) Get() (v UpdateUserReqFavoriteDogBreed, ok bool)
- func (o OptUpdateUserReqFavoriteDogBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteDogBreed) Or(d UpdateUserReqFavoriteDogBreed) UpdateUserReqFavoriteDogBreed
- func (o *OptUpdateUserReqFavoriteDogBreed) Reset()
- func (o *OptUpdateUserReqFavoriteDogBreed) SetTo(v UpdateUserReqFavoriteDogBreed)
- func (s *OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteFishBreed
- func (o *OptUpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteFishBreed) Get() (v UpdateUserReqFavoriteFishBreed, ok bool)
- func (o OptUpdateUserReqFavoriteFishBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteFishBreed) Or(d UpdateUserReqFavoriteFishBreed) UpdateUserReqFavoriteFishBreed
- func (o *OptUpdateUserReqFavoriteFishBreed) Reset()
- func (o *OptUpdateUserReqFavoriteFishBreed) SetTo(v UpdateUserReqFavoriteFishBreed)
- func (s *OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserBestFriendReadFavoriteDogBreed
- func (o *OptUserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserBestFriendReadFavoriteDogBreed) Get() (v UserBestFriendReadFavoriteDogBreed, ok bool)
- func (o OptUserBestFriendReadFavoriteDogBreed) IsSet() bool
- func (s OptUserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserBestFriendReadFavoriteDogBreed) Or(d UserBestFriendReadFavoriteDogBreed) UserBestFriendReadFavoriteDogBreed
- func (o *OptUserBestFriendReadFavoriteDogBreed) Reset()
- func (o *OptUserBestFriendReadFavoriteDogBreed) SetTo(v UserBestFriendReadFavoriteDogBreed)
- func (s *OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserBestFriendReadFavoriteFishBreed
- func (o *OptUserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserBestFriendReadFavoriteFishBreed) Get() (v UserBestFriendReadFavoriteFishBreed, ok bool)
- func (o OptUserBestFriendReadFavoriteFishBreed) IsSet() bool
- func (s OptUserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserBestFriendReadFavoriteFishBreed) Or(d UserBestFriendReadFavoriteFishBreed) UserBestFriendReadFavoriteFishBreed
- func (o *OptUserBestFriendReadFavoriteFishBreed) Reset()
- func (o *OptUserBestFriendReadFavoriteFishBreed) SetTo(v UserBestFriendReadFavoriteFishBreed)
- func (s *OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserCreateFavoriteDogBreed
- func (o *OptUserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserCreateFavoriteDogBreed) Get() (v UserCreateFavoriteDogBreed, ok bool)
- func (o OptUserCreateFavoriteDogBreed) IsSet() bool
- func (s OptUserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserCreateFavoriteDogBreed) Or(d UserCreateFavoriteDogBreed) UserCreateFavoriteDogBreed
- func (o *OptUserCreateFavoriteDogBreed) Reset()
- func (o *OptUserCreateFavoriteDogBreed) SetTo(v UserCreateFavoriteDogBreed)
- func (s *OptUserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserCreateFavoriteFishBreed
- func (o *OptUserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserCreateFavoriteFishBreed) Get() (v UserCreateFavoriteFishBreed, ok bool)
- func (o OptUserCreateFavoriteFishBreed) IsSet() bool
- func (s OptUserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserCreateFavoriteFishBreed) Or(d UserCreateFavoriteFishBreed) UserCreateFavoriteFishBreed
- func (o *OptUserCreateFavoriteFishBreed) Reset()
- func (o *OptUserCreateFavoriteFishBreed) SetTo(v UserCreateFavoriteFishBreed)
- func (s *OptUserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserListFavoriteDogBreed
- func (o *OptUserListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserListFavoriteDogBreed) Get() (v UserListFavoriteDogBreed, ok bool)
- func (o OptUserListFavoriteDogBreed) IsSet() bool
- func (s OptUserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserListFavoriteDogBreed) Or(d UserListFavoriteDogBreed) UserListFavoriteDogBreed
- func (o *OptUserListFavoriteDogBreed) Reset()
- func (o *OptUserListFavoriteDogBreed) SetTo(v UserListFavoriteDogBreed)
- func (s *OptUserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserListFavoriteFishBreed
- func (o *OptUserListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserListFavoriteFishBreed) Get() (v UserListFavoriteFishBreed, ok bool)
- func (o OptUserListFavoriteFishBreed) IsSet() bool
- func (s OptUserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserListFavoriteFishBreed) Or(d UserListFavoriteFishBreed) UserListFavoriteFishBreed
- func (o *OptUserListFavoriteFishBreed) Reset()
- func (o *OptUserListFavoriteFishBreed) SetTo(v UserListFavoriteFishBreed)
- func (s *OptUserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserReadFavoriteDogBreed
- func (o *OptUserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserReadFavoriteDogBreed) Get() (v UserReadFavoriteDogBreed, ok bool)
- func (o OptUserReadFavoriteDogBreed) IsSet() bool
- func (s OptUserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserReadFavoriteDogBreed) Or(d UserReadFavoriteDogBreed) UserReadFavoriteDogBreed
- func (o *OptUserReadFavoriteDogBreed) Reset()
- func (o *OptUserReadFavoriteDogBreed) SetTo(v UserReadFavoriteDogBreed)
- func (s *OptUserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserReadFavoriteFishBreed
- func (o *OptUserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserReadFavoriteFishBreed) Get() (v UserReadFavoriteFishBreed, ok bool)
- func (o OptUserReadFavoriteFishBreed) IsSet() bool
- func (s OptUserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserReadFavoriteFishBreed) Or(d UserReadFavoriteFishBreed) UserReadFavoriteFishBreed
- func (o *OptUserReadFavoriteFishBreed) Reset()
- func (o *OptUserReadFavoriteFishBreed) SetTo(v UserReadFavoriteFishBreed)
- func (s *OptUserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserUpdateFavoriteDogBreed
- func (o *OptUserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserUpdateFavoriteDogBreed) Get() (v UserUpdateFavoriteDogBreed, ok bool)
- func (o OptUserUpdateFavoriteDogBreed) IsSet() bool
- func (s OptUserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserUpdateFavoriteDogBreed) Or(d UserUpdateFavoriteDogBreed) UserUpdateFavoriteDogBreed
- func (o *OptUserUpdateFavoriteDogBreed) Reset()
- func (o *OptUserUpdateFavoriteDogBreed) SetTo(v UserUpdateFavoriteDogBreed)
- func (s *OptUserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserUpdateFavoriteFishBreed
- func (o *OptUserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserUpdateFavoriteFishBreed) Get() (v UserUpdateFavoriteFishBreed, ok bool)
- func (o OptUserUpdateFavoriteFishBreed) IsSet() bool
- func (s OptUserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserUpdateFavoriteFishBreed) Or(d UserUpdateFavoriteFishBreed) UserUpdateFavoriteFishBreed
- func (o *OptUserUpdateFavoriteFishBreed) Reset()
- func (o *OptUserUpdateFavoriteFishBreed) SetTo(v UserUpdateFavoriteFishBreed)
- func (s *OptUserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type Option
- type PetCategoriesList
- func (s *PetCategoriesList) Decode(d *jx.Decoder) error
- func (c *PetCategoriesList) Elem() PetCategoriesList
- func (s *PetCategoriesList) Encode(e *jx.Encoder)
- func (s *PetCategoriesList) GetID() int
- func (s *PetCategoriesList) GetName() string
- func (s *PetCategoriesList) GetReadonly() OptString
- func (s *PetCategoriesList) MarshalJSON() ([]byte, error)
- func (s *PetCategoriesList) SetID(val int)
- func (s *PetCategoriesList) SetName(val string)
- func (s *PetCategoriesList) SetReadonly(val OptString)
- func (s *PetCategoriesList) UnmarshalJSON(data []byte) error
- type PetCreate
- func (s *PetCreate) Decode(d *jx.Decoder) error
- func (pe *PetCreate) Elem() PetCreate
- func (s *PetCreate) Encode(e *jx.Encoder)
- func (s *PetCreate) GetBirthday() OptDateTime
- func (s *PetCreate) GetCategories() []PetCreateCategories
- func (s *PetCreate) GetHeight() OptInt
- func (s *PetCreate) GetID() int
- func (s *PetCreate) GetName() string
- func (s *PetCreate) GetOwner() PetCreateOwner
- func (s *PetCreate) GetTagID() []byte
- func (s *PetCreate) GetWeight() OptInt
- func (s *PetCreate) MarshalJSON() ([]byte, error)
- func (s *PetCreate) SetBirthday(val OptDateTime)
- func (s *PetCreate) SetCategories(val []PetCreateCategories)
- func (s *PetCreate) SetHeight(val OptInt)
- func (s *PetCreate) SetID(val int)
- func (s *PetCreate) SetName(val string)
- func (s *PetCreate) SetOwner(val PetCreateOwner)
- func (s *PetCreate) SetTagID(val []byte)
- func (s *PetCreate) SetWeight(val OptInt)
- func (s *PetCreate) UnmarshalJSON(data []byte) error
- func (s *PetCreate) Validate() error
- type PetCreateCategories
- func (s *PetCreateCategories) Decode(d *jx.Decoder) error
- func (c *PetCreateCategories) Elem() PetCreateCategories
- func (s *PetCreateCategories) Encode(e *jx.Encoder)
- func (s *PetCreateCategories) GetID() int
- func (s *PetCreateCategories) GetName() string
- func (s *PetCreateCategories) GetReadonly() OptString
- func (s *PetCreateCategories) MarshalJSON() ([]byte, error)
- func (s *PetCreateCategories) SetID(val int)
- func (s *PetCreateCategories) SetName(val string)
- func (s *PetCreateCategories) SetReadonly(val OptString)
- func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
- type PetCreateOwner
- func (s *PetCreateOwner) Decode(d *jx.Decoder) error
- func (u *PetCreateOwner) Elem() PetCreateOwner
- func (s *PetCreateOwner) Encode(e *jx.Encoder)
- func (s *PetCreateOwner) GetAge() int64
- func (s *PetCreateOwner) GetFavoriteCatBreed() PetCreateOwnerFavoriteCatBreed
- func (s *PetCreateOwner) GetFavoriteColor() PetCreateOwnerFavoriteColor
- func (s *PetCreateOwner) GetFavoriteDogBreed() OptPetCreateOwnerFavoriteDogBreed
- func (s *PetCreateOwner) GetFavoriteFishBreed() OptPetCreateOwnerFavoriteFishBreed
- func (s *PetCreateOwner) GetHeight() OptInt64
- func (s *PetCreateOwner) GetID() int
- func (s *PetCreateOwner) GetName() string
- func (s *PetCreateOwner) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwner) SetAge(val int64)
- func (s *PetCreateOwner) SetFavoriteCatBreed(val PetCreateOwnerFavoriteCatBreed)
- func (s *PetCreateOwner) SetFavoriteColor(val PetCreateOwnerFavoriteColor)
- func (s *PetCreateOwner) SetFavoriteDogBreed(val OptPetCreateOwnerFavoriteDogBreed)
- func (s *PetCreateOwner) SetFavoriteFishBreed(val OptPetCreateOwnerFavoriteFishBreed)
- func (s *PetCreateOwner) SetHeight(val OptInt64)
- func (s *PetCreateOwner) SetID(val int)
- func (s *PetCreateOwner) SetName(val string)
- func (s *PetCreateOwner) UnmarshalJSON(data []byte) error
- func (s *PetCreateOwner) Validate() error
- type PetCreateOwnerFavoriteCatBreed
- func (s *PetCreateOwnerFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s PetCreateOwnerFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s PetCreateOwnerFavoriteCatBreed) Validate() error
- type PetCreateOwnerFavoriteColor
- func (s *PetCreateOwnerFavoriteColor) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteColor) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteColor) MarshalJSON() ([]byte, error)
- func (s PetCreateOwnerFavoriteColor) MarshalText() ([]byte, error)
- func (s *PetCreateOwnerFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *PetCreateOwnerFavoriteColor) UnmarshalText(data []byte) error
- func (s PetCreateOwnerFavoriteColor) Validate() error
- type PetCreateOwnerFavoriteDogBreed
- func (s *PetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s PetCreateOwnerFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s PetCreateOwnerFavoriteDogBreed) Validate() error
- type PetCreateOwnerFavoriteFishBreed
- func (s *PetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s PetCreateOwnerFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s PetCreateOwnerFavoriteFishBreed) Validate() error
- type PetFriendsList
- func (s *PetFriendsList) Decode(d *jx.Decoder) error
- func (pe *PetFriendsList) Elem() PetFriendsList
- func (s *PetFriendsList) Encode(e *jx.Encoder)
- func (s *PetFriendsList) GetBirthday() OptDateTime
- func (s *PetFriendsList) GetHeight() OptInt
- func (s *PetFriendsList) GetID() int
- func (s *PetFriendsList) GetName() string
- func (s *PetFriendsList) GetTagID() []byte
- func (s *PetFriendsList) GetWeight() OptInt
- func (s *PetFriendsList) MarshalJSON() ([]byte, error)
- func (s *PetFriendsList) SetBirthday(val OptDateTime)
- func (s *PetFriendsList) SetHeight(val OptInt)
- func (s *PetFriendsList) SetID(val int)
- func (s *PetFriendsList) SetName(val string)
- func (s *PetFriendsList) SetTagID(val []byte)
- func (s *PetFriendsList) SetWeight(val OptInt)
- func (s *PetFriendsList) UnmarshalJSON(data []byte) error
- type PetList
- func (s *PetList) Decode(d *jx.Decoder) error
- func (pe *PetList) Elem() PetList
- func (s *PetList) Encode(e *jx.Encoder)
- func (s *PetList) GetBirthday() OptDateTime
- func (s *PetList) GetHeight() OptInt
- func (s *PetList) GetID() int
- func (s *PetList) GetName() string
- func (s *PetList) GetTagID() []byte
- func (s *PetList) GetWeight() OptInt
- func (s *PetList) MarshalJSON() ([]byte, error)
- func (s *PetList) SetBirthday(val OptDateTime)
- func (s *PetList) SetHeight(val OptInt)
- func (s *PetList) SetID(val int)
- func (s *PetList) SetName(val string)
- func (s *PetList) SetTagID(val []byte)
- func (s *PetList) SetWeight(val OptInt)
- func (s *PetList) UnmarshalJSON(data []byte) error
- type PetOwnerRead
- func (s *PetOwnerRead) Decode(d *jx.Decoder) error
- func (u *PetOwnerRead) Elem() PetOwnerRead
- func (s *PetOwnerRead) Encode(e *jx.Encoder)
- func (s *PetOwnerRead) GetAge() int64
- func (s *PetOwnerRead) GetFavoriteCatBreed() PetOwnerReadFavoriteCatBreed
- func (s *PetOwnerRead) GetFavoriteColor() PetOwnerReadFavoriteColor
- func (s *PetOwnerRead) GetFavoriteDogBreed() OptPetOwnerReadFavoriteDogBreed
- func (s *PetOwnerRead) GetFavoriteFishBreed() OptPetOwnerReadFavoriteFishBreed
- func (s *PetOwnerRead) GetHeight() OptInt64
- func (s *PetOwnerRead) GetID() int
- func (s *PetOwnerRead) GetName() string
- func (s *PetOwnerRead) MarshalJSON() ([]byte, error)
- func (s *PetOwnerRead) SetAge(val int64)
- func (s *PetOwnerRead) SetFavoriteCatBreed(val PetOwnerReadFavoriteCatBreed)
- func (s *PetOwnerRead) SetFavoriteColor(val PetOwnerReadFavoriteColor)
- func (s *PetOwnerRead) SetFavoriteDogBreed(val OptPetOwnerReadFavoriteDogBreed)
- func (s *PetOwnerRead) SetFavoriteFishBreed(val OptPetOwnerReadFavoriteFishBreed)
- func (s *PetOwnerRead) SetHeight(val OptInt64)
- func (s *PetOwnerRead) SetID(val int)
- func (s *PetOwnerRead) SetName(val string)
- func (s *PetOwnerRead) UnmarshalJSON(data []byte) error
- func (s *PetOwnerRead) Validate() error
- type PetOwnerReadFavoriteCatBreed
- func (s *PetOwnerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s PetOwnerReadFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *PetOwnerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *PetOwnerReadFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s PetOwnerReadFavoriteCatBreed) Validate() error
- type PetOwnerReadFavoriteColor
- func (s *PetOwnerReadFavoriteColor) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteColor) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteColor) MarshalJSON() ([]byte, error)
- func (s PetOwnerReadFavoriteColor) MarshalText() ([]byte, error)
- func (s *PetOwnerReadFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *PetOwnerReadFavoriteColor) UnmarshalText(data []byte) error
- func (s PetOwnerReadFavoriteColor) Validate() error
- type PetOwnerReadFavoriteDogBreed
- func (s *PetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s PetOwnerReadFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *PetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *PetOwnerReadFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s PetOwnerReadFavoriteDogBreed) Validate() error
- type PetOwnerReadFavoriteFishBreed
- func (s *PetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s PetOwnerReadFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *PetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *PetOwnerReadFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s PetOwnerReadFavoriteFishBreed) Validate() error
- type PetRead
- func (s *PetRead) Decode(d *jx.Decoder) error
- func (pe *PetRead) Elem() PetRead
- func (s *PetRead) Encode(e *jx.Encoder)
- func (s *PetRead) GetBirthday() OptDateTime
- func (s *PetRead) GetHeight() OptInt
- func (s *PetRead) GetID() int
- func (s *PetRead) GetName() string
- func (s *PetRead) GetTagID() []byte
- func (s *PetRead) GetWeight() OptInt
- func (s *PetRead) MarshalJSON() ([]byte, error)
- func (s *PetRead) SetBirthday(val OptDateTime)
- func (s *PetRead) SetHeight(val OptInt)
- func (s *PetRead) SetID(val int)
- func (s *PetRead) SetName(val string)
- func (s *PetRead) SetTagID(val []byte)
- func (s *PetRead) SetWeight(val OptInt)
- func (s *PetRead) UnmarshalJSON(data []byte) error
- type PetRescuerList
- func (s *PetRescuerList) Decode(d *jx.Decoder) error
- func (u *PetRescuerList) Elem() PetRescuerList
- func (s *PetRescuerList) Encode(e *jx.Encoder)
- func (s *PetRescuerList) GetAge() int64
- func (s *PetRescuerList) GetFavoriteCatBreed() PetRescuerListFavoriteCatBreed
- func (s *PetRescuerList) GetFavoriteColor() PetRescuerListFavoriteColor
- func (s *PetRescuerList) GetFavoriteDogBreed() OptPetRescuerListFavoriteDogBreed
- func (s *PetRescuerList) GetFavoriteFishBreed() OptPetRescuerListFavoriteFishBreed
- func (s *PetRescuerList) GetHeight() OptInt64
- func (s *PetRescuerList) GetID() int
- func (s *PetRescuerList) GetName() string
- func (s *PetRescuerList) MarshalJSON() ([]byte, error)
- func (s *PetRescuerList) SetAge(val int64)
- func (s *PetRescuerList) SetFavoriteCatBreed(val PetRescuerListFavoriteCatBreed)
- func (s *PetRescuerList) SetFavoriteColor(val PetRescuerListFavoriteColor)
- func (s *PetRescuerList) SetFavoriteDogBreed(val OptPetRescuerListFavoriteDogBreed)
- func (s *PetRescuerList) SetFavoriteFishBreed(val OptPetRescuerListFavoriteFishBreed)
- func (s *PetRescuerList) SetHeight(val OptInt64)
- func (s *PetRescuerList) SetID(val int)
- func (s *PetRescuerList) SetName(val string)
- func (s *PetRescuerList) UnmarshalJSON(data []byte) error
- func (s *PetRescuerList) Validate() error
- type PetRescuerListFavoriteCatBreed
- func (s *PetRescuerListFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s PetRescuerListFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s PetRescuerListFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s PetRescuerListFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *PetRescuerListFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *PetRescuerListFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s PetRescuerListFavoriteCatBreed) Validate() error
- type PetRescuerListFavoriteColor
- func (s *PetRescuerListFavoriteColor) Decode(d *jx.Decoder) error
- func (s PetRescuerListFavoriteColor) Encode(e *jx.Encoder)
- func (s PetRescuerListFavoriteColor) MarshalJSON() ([]byte, error)
- func (s PetRescuerListFavoriteColor) MarshalText() ([]byte, error)
- func (s *PetRescuerListFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *PetRescuerListFavoriteColor) UnmarshalText(data []byte) error
- func (s PetRescuerListFavoriteColor) Validate() error
- type PetRescuerListFavoriteDogBreed
- func (s *PetRescuerListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s PetRescuerListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s PetRescuerListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s PetRescuerListFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *PetRescuerListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *PetRescuerListFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s PetRescuerListFavoriteDogBreed) Validate() error
- type PetRescuerListFavoriteFishBreed
- func (s *PetRescuerListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s PetRescuerListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s PetRescuerListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s PetRescuerListFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *PetRescuerListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *PetRescuerListFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s PetRescuerListFavoriteFishBreed) Validate() error
- type PetUpdate
- func (s *PetUpdate) Decode(d *jx.Decoder) error
- func (pe *PetUpdate) Elem() PetUpdate
- func (s *PetUpdate) Encode(e *jx.Encoder)
- func (s *PetUpdate) GetBirthday() OptDateTime
- func (s *PetUpdate) GetHeight() OptInt
- func (s *PetUpdate) GetID() int
- func (s *PetUpdate) GetName() string
- func (s *PetUpdate) GetTagID() []byte
- func (s *PetUpdate) GetWeight() OptInt
- func (s *PetUpdate) MarshalJSON() ([]byte, error)
- func (s *PetUpdate) SetBirthday(val OptDateTime)
- func (s *PetUpdate) SetHeight(val OptInt)
- func (s *PetUpdate) SetID(val int)
- func (s *PetUpdate) SetName(val string)
- func (s *PetUpdate) SetTagID(val []byte)
- func (s *PetUpdate) SetWeight(val OptInt)
- func (s *PetUpdate) UnmarshalJSON(data []byte) error
- type R400
- func (s *R400) Decode(d *jx.Decoder) error
- func (s *R400) Encode(e *jx.Encoder)
- func (s *R400) GetCode() int
- func (s *R400) GetErrors() jx.Raw
- func (s *R400) GetStatus() string
- func (s *R400) MarshalJSON() ([]byte, error)
- func (s *R400) SetCode(val int)
- func (s *R400) SetErrors(val jx.Raw)
- func (s *R400) SetStatus(val string)
- func (s *R400) UnmarshalJSON(data []byte) error
- type R404
- func (s *R404) Decode(d *jx.Decoder) error
- func (s *R404) Encode(e *jx.Encoder)
- func (s *R404) GetCode() int
- func (s *R404) GetErrors() jx.Raw
- func (s *R404) GetStatus() string
- func (s *R404) MarshalJSON() ([]byte, error)
- func (s *R404) SetCode(val int)
- func (s *R404) SetErrors(val jx.Raw)
- func (s *R404) SetStatus(val string)
- func (s *R404) UnmarshalJSON(data []byte) error
- type R409
- func (s *R409) Decode(d *jx.Decoder) error
- func (s *R409) Encode(e *jx.Encoder)
- func (s *R409) GetCode() int
- func (s *R409) GetErrors() jx.Raw
- func (s *R409) GetStatus() string
- func (s *R409) MarshalJSON() ([]byte, error)
- func (s *R409) SetCode(val int)
- func (s *R409) SetErrors(val jx.Raw)
- func (s *R409) SetStatus(val string)
- func (s *R409) UnmarshalJSON(data []byte) error
- type R500
- func (s *R500) Decode(d *jx.Decoder) error
- func (s *R500) Encode(e *jx.Encoder)
- func (s *R500) GetCode() int
- func (s *R500) GetErrors() jx.Raw
- func (s *R500) GetStatus() string
- func (s *R500) MarshalJSON() ([]byte, error)
- func (s *R500) SetCode(val int)
- func (s *R500) SetErrors(val jx.Raw)
- func (s *R500) SetStatus(val string)
- func (s *R500) UnmarshalJSON(data []byte) error
- type ReadAllTypesParams
- type ReadAllTypesRes
- type ReadCategoryParams
- type ReadCategoryRes
- type ReadHatParams
- type ReadHatRes
- type ReadHatWearerParams
- type ReadHatWearerRes
- type ReadPetOwnerParams
- type ReadPetOwnerRes
- type ReadPetParams
- type ReadPetRes
- type ReadUserBestFriendParams
- type ReadUserBestFriendRes
- type ReadUserFavoriteHatParams
- type ReadUserFavoriteHatRes
- type ReadUserParams
- type ReadUserRes
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type UnimplementedHandler
- func (UnimplementedHandler) CreateAllTypes(ctx context.Context, req *CreateAllTypesReq) (r CreateAllTypesRes, _ error)
- func (UnimplementedHandler) CreateCategory(ctx context.Context, req *CreateCategoryReq) (r CreateCategoryRes, _ error)
- func (UnimplementedHandler) CreateHat(ctx context.Context, req *CreateHatReq) (r CreateHatRes, _ error)
- func (UnimplementedHandler) CreatePet(ctx context.Context, req *CreatePetReq) (r CreatePetRes, _ error)
- func (UnimplementedHandler) CreateUser(ctx context.Context, req *CreateUserReq) (r CreateUserRes, _ error)
- func (UnimplementedHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (r DeleteAllTypesRes, _ error)
- func (UnimplementedHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (r DeleteCategoryRes, _ error)
- func (UnimplementedHandler) DeleteHat(ctx context.Context, params DeleteHatParams) (r DeleteHatRes, _ error)
- func (UnimplementedHandler) DeletePet(ctx context.Context, params DeletePetParams) (r DeletePetRes, _ error)
- func (UnimplementedHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (r DeleteUserRes, _ error)
- func (UnimplementedHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (r ListAllTypesRes, _ error)
- func (UnimplementedHandler) ListCategory(ctx context.Context, params ListCategoryParams) (r ListCategoryRes, _ error)
- func (UnimplementedHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (r ListCategoryPetsRes, _ error)
- func (UnimplementedHandler) ListHat(ctx context.Context, params ListHatParams) (r ListHatRes, _ error)
- func (UnimplementedHandler) ListPet(ctx context.Context, params ListPetParams) (r ListPetRes, _ error)
- func (UnimplementedHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (r ListPetCategoriesRes, _ error)
- func (UnimplementedHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (r ListPetFriendsRes, _ error)
- func (UnimplementedHandler) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (r ListPetRescuerRes, _ error)
- func (UnimplementedHandler) ListUser(ctx context.Context, params ListUserParams) (r ListUserRes, _ error)
- func (UnimplementedHandler) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (r ListUserAnimalsSavedRes, _ error)
- func (UnimplementedHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (r ListUserPetsRes, _ error)
- func (UnimplementedHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (r ReadAllTypesRes, _ error)
- func (UnimplementedHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (r ReadCategoryRes, _ error)
- func (UnimplementedHandler) ReadHat(ctx context.Context, params ReadHatParams) (r ReadHatRes, _ error)
- func (UnimplementedHandler) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (r ReadHatWearerRes, _ error)
- func (UnimplementedHandler) ReadPet(ctx context.Context, params ReadPetParams) (r ReadPetRes, _ error)
- func (UnimplementedHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (r ReadPetOwnerRes, _ error)
- func (UnimplementedHandler) ReadUser(ctx context.Context, params ReadUserParams) (r ReadUserRes, _ error)
- func (UnimplementedHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (r ReadUserBestFriendRes, _ error)
- func (UnimplementedHandler) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (r ReadUserFavoriteHatRes, _ error)
- func (UnimplementedHandler) UpdateAllTypes(ctx context.Context, req *UpdateAllTypesReq, params UpdateAllTypesParams) (r UpdateAllTypesRes, _ error)
- func (UnimplementedHandler) UpdateCategory(ctx context.Context, req *UpdateCategoryReq, params UpdateCategoryParams) (r UpdateCategoryRes, _ error)
- func (UnimplementedHandler) UpdateHat(ctx context.Context, req *UpdateHatReq, params UpdateHatParams) (r UpdateHatRes, _ error)
- func (UnimplementedHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (r UpdatePetRes, _ error)
- func (UnimplementedHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, params UpdateUserParams) (r UpdateUserRes, _ error)
- type UpdateAllTypesParams
- type UpdateAllTypesReq
- func (s *UpdateAllTypesReq) Decode(d *jx.Decoder) error
- func (s *UpdateAllTypesReq) Encode(e *jx.Encoder)
- func (s *UpdateAllTypesReq) GetBool() OptBool
- func (s *UpdateAllTypesReq) GetBytes() []byte
- func (s *UpdateAllTypesReq) GetFloat32() OptFloat32
- func (s *UpdateAllTypesReq) GetFloat64() OptFloat64
- func (s *UpdateAllTypesReq) GetInt() OptInt
- func (s *UpdateAllTypesReq) GetInt16() OptInt32
- func (s *UpdateAllTypesReq) GetInt32() OptInt32
- func (s *UpdateAllTypesReq) GetInt64() OptInt64
- func (s *UpdateAllTypesReq) GetInt8() OptInt32
- func (s *UpdateAllTypesReq) GetNilable() OptString
- func (s *UpdateAllTypesReq) GetState() OptUpdateAllTypesReqState
- func (s *UpdateAllTypesReq) GetStringType() OptString
- func (s *UpdateAllTypesReq) GetText() OptString
- func (s *UpdateAllTypesReq) GetTime() OptDateTime
- func (s *UpdateAllTypesReq) GetUUID() OptUUID
- func (s *UpdateAllTypesReq) GetUint() OptInt64
- func (s *UpdateAllTypesReq) GetUint16() OptInt32
- func (s *UpdateAllTypesReq) GetUint32() OptInt64
- func (s *UpdateAllTypesReq) GetUint64() OptInt64
- func (s *UpdateAllTypesReq) GetUint8() OptInt32
- func (s *UpdateAllTypesReq) MarshalJSON() ([]byte, error)
- func (s *UpdateAllTypesReq) SetBool(val OptBool)
- func (s *UpdateAllTypesReq) SetBytes(val []byte)
- func (s *UpdateAllTypesReq) SetFloat32(val OptFloat32)
- func (s *UpdateAllTypesReq) SetFloat64(val OptFloat64)
- func (s *UpdateAllTypesReq) SetInt(val OptInt)
- func (s *UpdateAllTypesReq) SetInt16(val OptInt32)
- func (s *UpdateAllTypesReq) SetInt32(val OptInt32)
- func (s *UpdateAllTypesReq) SetInt64(val OptInt64)
- func (s *UpdateAllTypesReq) SetInt8(val OptInt32)
- func (s *UpdateAllTypesReq) SetNilable(val OptString)
- func (s *UpdateAllTypesReq) SetState(val OptUpdateAllTypesReqState)
- func (s *UpdateAllTypesReq) SetStringType(val OptString)
- func (s *UpdateAllTypesReq) SetText(val OptString)
- func (s *UpdateAllTypesReq) SetTime(val OptDateTime)
- func (s *UpdateAllTypesReq) SetUUID(val OptUUID)
- func (s *UpdateAllTypesReq) SetUint(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint16(val OptInt32)
- func (s *UpdateAllTypesReq) SetUint32(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint64(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint8(val OptInt32)
- func (s *UpdateAllTypesReq) UnmarshalJSON(data []byte) error
- func (s *UpdateAllTypesReq) Validate() error
- type UpdateAllTypesReqState
- func (s *UpdateAllTypesReqState) Decode(d *jx.Decoder) error
- func (s UpdateAllTypesReqState) Encode(e *jx.Encoder)
- func (s UpdateAllTypesReqState) MarshalJSON() ([]byte, error)
- func (s UpdateAllTypesReqState) MarshalText() ([]byte, error)
- func (s *UpdateAllTypesReqState) UnmarshalJSON(data []byte) error
- func (s *UpdateAllTypesReqState) UnmarshalText(data []byte) error
- func (s UpdateAllTypesReqState) Validate() error
- type UpdateAllTypesRes
- type UpdateCategoryParams
- type UpdateCategoryReq
- func (s *UpdateCategoryReq) Decode(d *jx.Decoder) error
- func (s *UpdateCategoryReq) Encode(e *jx.Encoder)
- func (s *UpdateCategoryReq) GetName() OptString
- func (s *UpdateCategoryReq) GetPets() []int
- func (s *UpdateCategoryReq) MarshalJSON() ([]byte, error)
- func (s *UpdateCategoryReq) SetName(val OptString)
- func (s *UpdateCategoryReq) SetPets(val []int)
- func (s *UpdateCategoryReq) UnmarshalJSON(data []byte) error
- type UpdateCategoryRes
- type UpdateHatParams
- type UpdateHatReq
- func (s *UpdateHatReq) Decode(d *jx.Decoder) error
- func (s *UpdateHatReq) Encode(e *jx.Encoder)
- func (s *UpdateHatReq) GetName() OptString
- func (s *UpdateHatReq) GetWearer() OptInt
- func (s *UpdateHatReq) MarshalJSON() ([]byte, error)
- func (s *UpdateHatReq) SetName(val OptString)
- func (s *UpdateHatReq) SetWearer(val OptInt)
- func (s *UpdateHatReq) UnmarshalJSON(data []byte) error
- type UpdateHatRes
- type UpdatePetParams
- type UpdatePetReq
- func (s *UpdatePetReq) Decode(d *jx.Decoder) error
- func (s *UpdatePetReq) Encode(e *jx.Encoder)
- func (s *UpdatePetReq) GetBirthday() OptDateTime
- func (s *UpdatePetReq) GetCategories() []int
- func (s *UpdatePetReq) GetFriends() []int
- func (s *UpdatePetReq) GetHeight() OptInt
- func (s *UpdatePetReq) GetName() OptString
- func (s *UpdatePetReq) GetOwner() OptInt
- func (s *UpdatePetReq) GetRescuer() []int
- func (s *UpdatePetReq) GetTagID() []byte
- func (s *UpdatePetReq) GetWeight() OptInt
- func (s *UpdatePetReq) MarshalJSON() ([]byte, error)
- func (s *UpdatePetReq) SetBirthday(val OptDateTime)
- func (s *UpdatePetReq) SetCategories(val []int)
- func (s *UpdatePetReq) SetFriends(val []int)
- func (s *UpdatePetReq) SetHeight(val OptInt)
- func (s *UpdatePetReq) SetName(val OptString)
- func (s *UpdatePetReq) SetOwner(val OptInt)
- func (s *UpdatePetReq) SetRescuer(val []int)
- func (s *UpdatePetReq) SetTagID(val []byte)
- func (s *UpdatePetReq) SetWeight(val OptInt)
- func (s *UpdatePetReq) UnmarshalJSON(data []byte) error
- type UpdatePetRes
- type UpdateUserParams
- type UpdateUserReq
- func (s *UpdateUserReq) Decode(d *jx.Decoder) error
- func (s *UpdateUserReq) Encode(e *jx.Encoder)
- func (s *UpdateUserReq) GetAge() OptInt64
- func (s *UpdateUserReq) GetAnimalsSaved() []int
- func (s *UpdateUserReq) GetBestFriend() OptInt
- func (s *UpdateUserReq) GetFavoriteCatBreed() OptUpdateUserReqFavoriteCatBreed
- func (s *UpdateUserReq) GetFavoriteDogBreed() OptUpdateUserReqFavoriteDogBreed
- func (s *UpdateUserReq) GetFavoriteFishBreed() OptUpdateUserReqFavoriteFishBreed
- func (s *UpdateUserReq) GetFavoriteHat() OptInt
- func (s *UpdateUserReq) GetHeight() OptInt64
- func (s *UpdateUserReq) GetName() OptString
- func (s *UpdateUserReq) GetPets() []int
- func (s *UpdateUserReq) MarshalJSON() ([]byte, error)
- func (s *UpdateUserReq) SetAge(val OptInt64)
- func (s *UpdateUserReq) SetAnimalsSaved(val []int)
- func (s *UpdateUserReq) SetBestFriend(val OptInt)
- func (s *UpdateUserReq) SetFavoriteCatBreed(val OptUpdateUserReqFavoriteCatBreed)
- func (s *UpdateUserReq) SetFavoriteDogBreed(val OptUpdateUserReqFavoriteDogBreed)
- func (s *UpdateUserReq) SetFavoriteFishBreed(val OptUpdateUserReqFavoriteFishBreed)
- func (s *UpdateUserReq) SetFavoriteHat(val OptInt)
- func (s *UpdateUserReq) SetHeight(val OptInt64)
- func (s *UpdateUserReq) SetName(val OptString)
- func (s *UpdateUserReq) SetPets(val []int)
- func (s *UpdateUserReq) UnmarshalJSON(data []byte) error
- func (s *UpdateUserReq) Validate() error
- type UpdateUserReqFavoriteCatBreed
- func (s *UpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UpdateUserReqFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UpdateUserReqFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UpdateUserReqFavoriteCatBreed) Validate() error
- type UpdateUserReqFavoriteDogBreed
- func (s *UpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UpdateUserReqFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UpdateUserReqFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UpdateUserReqFavoriteDogBreed) Validate() error
- type UpdateUserReqFavoriteFishBreed
- func (s *UpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UpdateUserReqFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UpdateUserReqFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UpdateUserReqFavoriteFishBreed) Validate() error
- type UpdateUserRes
- type UserAnimalsSavedList
- func (s *UserAnimalsSavedList) Decode(d *jx.Decoder) error
- func (pe *UserAnimalsSavedList) Elem() UserAnimalsSavedList
- func (s *UserAnimalsSavedList) Encode(e *jx.Encoder)
- func (s *UserAnimalsSavedList) GetBirthday() OptDateTime
- func (s *UserAnimalsSavedList) GetHeight() OptInt
- func (s *UserAnimalsSavedList) GetID() int
- func (s *UserAnimalsSavedList) GetName() string
- func (s *UserAnimalsSavedList) GetTagID() []byte
- func (s *UserAnimalsSavedList) GetWeight() OptInt
- func (s *UserAnimalsSavedList) MarshalJSON() ([]byte, error)
- func (s *UserAnimalsSavedList) SetBirthday(val OptDateTime)
- func (s *UserAnimalsSavedList) SetHeight(val OptInt)
- func (s *UserAnimalsSavedList) SetID(val int)
- func (s *UserAnimalsSavedList) SetName(val string)
- func (s *UserAnimalsSavedList) SetTagID(val []byte)
- func (s *UserAnimalsSavedList) SetWeight(val OptInt)
- func (s *UserAnimalsSavedList) UnmarshalJSON(data []byte) error
- type UserBestFriendRead
- func (s *UserBestFriendRead) Decode(d *jx.Decoder) error
- func (u *UserBestFriendRead) Elem() UserBestFriendRead
- func (s *UserBestFriendRead) Encode(e *jx.Encoder)
- func (s *UserBestFriendRead) GetAge() int64
- func (s *UserBestFriendRead) GetFavoriteCatBreed() UserBestFriendReadFavoriteCatBreed
- func (s *UserBestFriendRead) GetFavoriteColor() UserBestFriendReadFavoriteColor
- func (s *UserBestFriendRead) GetFavoriteDogBreed() OptUserBestFriendReadFavoriteDogBreed
- func (s *UserBestFriendRead) GetFavoriteFishBreed() OptUserBestFriendReadFavoriteFishBreed
- func (s *UserBestFriendRead) GetHeight() OptInt64
- func (s *UserBestFriendRead) GetID() int
- func (s *UserBestFriendRead) GetName() string
- func (s *UserBestFriendRead) MarshalJSON() ([]byte, error)
- func (s *UserBestFriendRead) SetAge(val int64)
- func (s *UserBestFriendRead) SetFavoriteCatBreed(val UserBestFriendReadFavoriteCatBreed)
- func (s *UserBestFriendRead) SetFavoriteColor(val UserBestFriendReadFavoriteColor)
- func (s *UserBestFriendRead) SetFavoriteDogBreed(val OptUserBestFriendReadFavoriteDogBreed)
- func (s *UserBestFriendRead) SetFavoriteFishBreed(val OptUserBestFriendReadFavoriteFishBreed)
- func (s *UserBestFriendRead) SetHeight(val OptInt64)
- func (s *UserBestFriendRead) SetID(val int)
- func (s *UserBestFriendRead) SetName(val string)
- func (s *UserBestFriendRead) UnmarshalJSON(data []byte) error
- func (s *UserBestFriendRead) Validate() error
- type UserBestFriendReadFavoriteCatBreed
- func (s *UserBestFriendReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UserBestFriendReadFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UserBestFriendReadFavoriteCatBreed) Validate() error
- type UserBestFriendReadFavoriteColor
- func (s *UserBestFriendReadFavoriteColor) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteColor) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteColor) MarshalJSON() ([]byte, error)
- func (s UserBestFriendReadFavoriteColor) MarshalText() ([]byte, error)
- func (s *UserBestFriendReadFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *UserBestFriendReadFavoriteColor) UnmarshalText(data []byte) error
- func (s UserBestFriendReadFavoriteColor) Validate() error
- type UserBestFriendReadFavoriteDogBreed
- func (s *UserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UserBestFriendReadFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UserBestFriendReadFavoriteDogBreed) Validate() error
- type UserBestFriendReadFavoriteFishBreed
- func (s *UserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UserBestFriendReadFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UserBestFriendReadFavoriteFishBreed) Validate() error
- type UserCreate
- func (s *UserCreate) Decode(d *jx.Decoder) error
- func (u *UserCreate) Elem() UserCreate
- func (s *UserCreate) Encode(e *jx.Encoder)
- func (s *UserCreate) GetAge() int64
- func (s *UserCreate) GetFavoriteCatBreed() UserCreateFavoriteCatBreed
- func (s *UserCreate) GetFavoriteColor() UserCreateFavoriteColor
- func (s *UserCreate) GetFavoriteDogBreed() OptUserCreateFavoriteDogBreed
- func (s *UserCreate) GetFavoriteFishBreed() OptUserCreateFavoriteFishBreed
- func (s *UserCreate) GetHeight() OptInt64
- func (s *UserCreate) GetID() int
- func (s *UserCreate) GetName() string
- func (s *UserCreate) MarshalJSON() ([]byte, error)
- func (s *UserCreate) SetAge(val int64)
- func (s *UserCreate) SetFavoriteCatBreed(val UserCreateFavoriteCatBreed)
- func (s *UserCreate) SetFavoriteColor(val UserCreateFavoriteColor)
- func (s *UserCreate) SetFavoriteDogBreed(val OptUserCreateFavoriteDogBreed)
- func (s *UserCreate) SetFavoriteFishBreed(val OptUserCreateFavoriteFishBreed)
- func (s *UserCreate) SetHeight(val OptInt64)
- func (s *UserCreate) SetID(val int)
- func (s *UserCreate) SetName(val string)
- func (s *UserCreate) UnmarshalJSON(data []byte) error
- func (s *UserCreate) Validate() error
- type UserCreateFavoriteCatBreed
- func (s *UserCreateFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UserCreateFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UserCreateFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UserCreateFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UserCreateFavoriteCatBreed) Validate() error
- type UserCreateFavoriteColor
- func (s *UserCreateFavoriteColor) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteColor) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteColor) MarshalJSON() ([]byte, error)
- func (s UserCreateFavoriteColor) MarshalText() ([]byte, error)
- func (s *UserCreateFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *UserCreateFavoriteColor) UnmarshalText(data []byte) error
- func (s UserCreateFavoriteColor) Validate() error
- type UserCreateFavoriteDogBreed
- func (s *UserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UserCreateFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UserCreateFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UserCreateFavoriteDogBreed) Validate() error
- type UserCreateFavoriteFishBreed
- func (s *UserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UserCreateFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UserCreateFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UserCreateFavoriteFishBreed) Validate() error
- type UserFavoriteHatRead
- func (s *UserFavoriteHatRead) Decode(d *jx.Decoder) error
- func (h *UserFavoriteHatRead) Elem() UserFavoriteHatRead
- func (s *UserFavoriteHatRead) Encode(e *jx.Encoder)
- func (s *UserFavoriteHatRead) GetID() int
- func (s *UserFavoriteHatRead) GetName() string
- func (s *UserFavoriteHatRead) GetType() UserFavoriteHatReadType
- func (s *UserFavoriteHatRead) MarshalJSON() ([]byte, error)
- func (s *UserFavoriteHatRead) SetID(val int)
- func (s *UserFavoriteHatRead) SetName(val string)
- func (s *UserFavoriteHatRead) SetType(val UserFavoriteHatReadType)
- func (s *UserFavoriteHatRead) UnmarshalJSON(data []byte) error
- func (s *UserFavoriteHatRead) Validate() error
- type UserFavoriteHatReadType
- func (s *UserFavoriteHatReadType) Decode(d *jx.Decoder) error
- func (s UserFavoriteHatReadType) Encode(e *jx.Encoder)
- func (s UserFavoriteHatReadType) MarshalJSON() ([]byte, error)
- func (s UserFavoriteHatReadType) MarshalText() ([]byte, error)
- func (s *UserFavoriteHatReadType) UnmarshalJSON(data []byte) error
- func (s *UserFavoriteHatReadType) UnmarshalText(data []byte) error
- func (s UserFavoriteHatReadType) Validate() error
- type UserList
- func (s *UserList) Decode(d *jx.Decoder) error
- func (u *UserList) Elem() UserList
- func (s *UserList) Encode(e *jx.Encoder)
- func (s *UserList) GetAge() int64
- func (s *UserList) GetFavoriteCatBreed() UserListFavoriteCatBreed
- func (s *UserList) GetFavoriteColor() UserListFavoriteColor
- func (s *UserList) GetFavoriteDogBreed() OptUserListFavoriteDogBreed
- func (s *UserList) GetFavoriteFishBreed() OptUserListFavoriteFishBreed
- func (s *UserList) GetHeight() OptInt64
- func (s *UserList) GetID() int
- func (s *UserList) GetName() string
- func (s *UserList) MarshalJSON() ([]byte, error)
- func (s *UserList) SetAge(val int64)
- func (s *UserList) SetFavoriteCatBreed(val UserListFavoriteCatBreed)
- func (s *UserList) SetFavoriteColor(val UserListFavoriteColor)
- func (s *UserList) SetFavoriteDogBreed(val OptUserListFavoriteDogBreed)
- func (s *UserList) SetFavoriteFishBreed(val OptUserListFavoriteFishBreed)
- func (s *UserList) SetHeight(val OptInt64)
- func (s *UserList) SetID(val int)
- func (s *UserList) SetName(val string)
- func (s *UserList) UnmarshalJSON(data []byte) error
- func (s *UserList) Validate() error
- type UserListFavoriteCatBreed
- func (s *UserListFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UserListFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UserListFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UserListFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UserListFavoriteCatBreed) Validate() error
- type UserListFavoriteColor
- func (s *UserListFavoriteColor) Decode(d *jx.Decoder) error
- func (s UserListFavoriteColor) Encode(e *jx.Encoder)
- func (s UserListFavoriteColor) MarshalJSON() ([]byte, error)
- func (s UserListFavoriteColor) MarshalText() ([]byte, error)
- func (s *UserListFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *UserListFavoriteColor) UnmarshalText(data []byte) error
- func (s UserListFavoriteColor) Validate() error
- type UserListFavoriteDogBreed
- func (s *UserListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UserListFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UserListFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UserListFavoriteDogBreed) Validate() error
- type UserListFavoriteFishBreed
- func (s *UserListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UserListFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UserListFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UserListFavoriteFishBreed) Validate() error
- type UserPetsList
- func (s *UserPetsList) Decode(d *jx.Decoder) error
- func (pe *UserPetsList) Elem() UserPetsList
- func (s *UserPetsList) Encode(e *jx.Encoder)
- func (s *UserPetsList) GetBirthday() OptDateTime
- func (s *UserPetsList) GetHeight() OptInt
- func (s *UserPetsList) GetID() int
- func (s *UserPetsList) GetName() string
- func (s *UserPetsList) GetTagID() []byte
- func (s *UserPetsList) GetWeight() OptInt
- func (s *UserPetsList) MarshalJSON() ([]byte, error)
- func (s *UserPetsList) SetBirthday(val OptDateTime)
- func (s *UserPetsList) SetHeight(val OptInt)
- func (s *UserPetsList) SetID(val int)
- func (s *UserPetsList) SetName(val string)
- func (s *UserPetsList) SetTagID(val []byte)
- func (s *UserPetsList) SetWeight(val OptInt)
- func (s *UserPetsList) UnmarshalJSON(data []byte) error
- type UserRead
- func (s *UserRead) Decode(d *jx.Decoder) error
- func (u *UserRead) Elem() UserRead
- func (s *UserRead) Encode(e *jx.Encoder)
- func (s *UserRead) GetAge() int64
- func (s *UserRead) GetFavoriteCatBreed() UserReadFavoriteCatBreed
- func (s *UserRead) GetFavoriteColor() UserReadFavoriteColor
- func (s *UserRead) GetFavoriteDogBreed() OptUserReadFavoriteDogBreed
- func (s *UserRead) GetFavoriteFishBreed() OptUserReadFavoriteFishBreed
- func (s *UserRead) GetHeight() OptInt64
- func (s *UserRead) GetID() int
- func (s *UserRead) GetName() string
- func (s *UserRead) MarshalJSON() ([]byte, error)
- func (s *UserRead) SetAge(val int64)
- func (s *UserRead) SetFavoriteCatBreed(val UserReadFavoriteCatBreed)
- func (s *UserRead) SetFavoriteColor(val UserReadFavoriteColor)
- func (s *UserRead) SetFavoriteDogBreed(val OptUserReadFavoriteDogBreed)
- func (s *UserRead) SetFavoriteFishBreed(val OptUserReadFavoriteFishBreed)
- func (s *UserRead) SetHeight(val OptInt64)
- func (s *UserRead) SetID(val int)
- func (s *UserRead) SetName(val string)
- func (s *UserRead) UnmarshalJSON(data []byte) error
- func (s *UserRead) Validate() error
- type UserReadFavoriteCatBreed
- func (s *UserReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UserReadFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UserReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UserReadFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UserReadFavoriteCatBreed) Validate() error
- type UserReadFavoriteColor
- func (s *UserReadFavoriteColor) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteColor) Encode(e *jx.Encoder)
- func (s UserReadFavoriteColor) MarshalJSON() ([]byte, error)
- func (s UserReadFavoriteColor) MarshalText() ([]byte, error)
- func (s *UserReadFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *UserReadFavoriteColor) UnmarshalText(data []byte) error
- func (s UserReadFavoriteColor) Validate() error
- type UserReadFavoriteDogBreed
- func (s *UserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UserReadFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UserReadFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UserReadFavoriteDogBreed) Validate() error
- type UserReadFavoriteFishBreed
- func (s *UserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UserReadFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UserReadFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UserReadFavoriteFishBreed) Validate() error
- type UserUpdate
- func (s *UserUpdate) Decode(d *jx.Decoder) error
- func (u *UserUpdate) Elem() UserUpdate
- func (s *UserUpdate) Encode(e *jx.Encoder)
- func (s *UserUpdate) GetAge() int64
- func (s *UserUpdate) GetFavoriteCatBreed() UserUpdateFavoriteCatBreed
- func (s *UserUpdate) GetFavoriteColor() UserUpdateFavoriteColor
- func (s *UserUpdate) GetFavoriteDogBreed() OptUserUpdateFavoriteDogBreed
- func (s *UserUpdate) GetFavoriteFishBreed() OptUserUpdateFavoriteFishBreed
- func (s *UserUpdate) GetHeight() OptInt64
- func (s *UserUpdate) GetID() int
- func (s *UserUpdate) GetName() string
- func (s *UserUpdate) MarshalJSON() ([]byte, error)
- func (s *UserUpdate) SetAge(val int64)
- func (s *UserUpdate) SetFavoriteCatBreed(val UserUpdateFavoriteCatBreed)
- func (s *UserUpdate) SetFavoriteColor(val UserUpdateFavoriteColor)
- func (s *UserUpdate) SetFavoriteDogBreed(val OptUserUpdateFavoriteDogBreed)
- func (s *UserUpdate) SetFavoriteFishBreed(val OptUserUpdateFavoriteFishBreed)
- func (s *UserUpdate) SetHeight(val OptInt64)
- func (s *UserUpdate) SetID(val int)
- func (s *UserUpdate) SetName(val string)
- func (s *UserUpdate) UnmarshalJSON(data []byte) error
- func (s *UserUpdate) Validate() error
- type UserUpdateFavoriteCatBreed
- func (s *UserUpdateFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s UserUpdateFavoriteCatBreed) MarshalText() ([]byte, error)
- func (s *UserUpdateFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s *UserUpdateFavoriteCatBreed) UnmarshalText(data []byte) error
- func (s UserUpdateFavoriteCatBreed) Validate() error
- type UserUpdateFavoriteColor
- func (s *UserUpdateFavoriteColor) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteColor) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteColor) MarshalJSON() ([]byte, error)
- func (s UserUpdateFavoriteColor) MarshalText() ([]byte, error)
- func (s *UserUpdateFavoriteColor) UnmarshalJSON(data []byte) error
- func (s *UserUpdateFavoriteColor) UnmarshalText(data []byte) error
- func (s UserUpdateFavoriteColor) Validate() error
- type UserUpdateFavoriteDogBreed
- func (s *UserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s UserUpdateFavoriteDogBreed) MarshalText() ([]byte, error)
- func (s *UserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s *UserUpdateFavoriteDogBreed) UnmarshalText(data []byte) error
- func (s UserUpdateFavoriteDogBreed) Validate() error
- type UserUpdateFavoriteFishBreed
- func (s *UserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s UserUpdateFavoriteFishBreed) MarshalText() ([]byte, error)
- func (s *UserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s *UserUpdateFavoriteFishBreed) UnmarshalText(data []byte) error
- func (s UserUpdateFavoriteFishBreed) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllTypesCreate ¶
type AllTypesCreate struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesCreateState `json:"state"` Bytes []byte `json:"bytes"` Nilable OptString `json:"nilable"` }
Ref: #/components/schemas/AllTypesCreate
func NewAllTypesCreate ¶
func NewAllTypesCreate(e *ent.AllTypes) *AllTypesCreate
func NewAllTypesCreates ¶
func NewAllTypesCreates(es []*ent.AllTypes) []AllTypesCreate
func (*AllTypesCreate) Decode ¶
func (s *AllTypesCreate) Decode(d *jx.Decoder) error
Decode decodes AllTypesCreate from json.
func (*AllTypesCreate) Elem ¶
func (at *AllTypesCreate) Elem() AllTypesCreate
func (*AllTypesCreate) Encode ¶
func (s *AllTypesCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AllTypesCreate) GetBool ¶
func (s *AllTypesCreate) GetBool() bool
GetBool returns the value of Bool.
func (*AllTypesCreate) GetBytes ¶
func (s *AllTypesCreate) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*AllTypesCreate) GetFloat32 ¶
func (s *AllTypesCreate) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (*AllTypesCreate) GetFloat64 ¶
func (s *AllTypesCreate) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (*AllTypesCreate) GetID ¶
func (s *AllTypesCreate) GetID() int64
GetID returns the value of ID.
func (*AllTypesCreate) GetInt ¶
func (s *AllTypesCreate) GetInt() int
GetInt returns the value of Int.
func (*AllTypesCreate) GetInt16 ¶
func (s *AllTypesCreate) GetInt16() int32
GetInt16 returns the value of Int16.
func (*AllTypesCreate) GetInt32 ¶
func (s *AllTypesCreate) GetInt32() int32
GetInt32 returns the value of Int32.
func (*AllTypesCreate) GetInt64 ¶
func (s *AllTypesCreate) GetInt64() int64
GetInt64 returns the value of Int64.
func (*AllTypesCreate) GetInt8 ¶
func (s *AllTypesCreate) GetInt8() int32
GetInt8 returns the value of Int8.
func (*AllTypesCreate) GetNilable ¶
func (s *AllTypesCreate) GetNilable() OptString
GetNilable returns the value of Nilable.
func (*AllTypesCreate) GetState ¶
func (s *AllTypesCreate) GetState() AllTypesCreateState
GetState returns the value of State.
func (*AllTypesCreate) GetStringType ¶
func (s *AllTypesCreate) GetStringType() string
GetStringType returns the value of StringType.
func (*AllTypesCreate) GetText ¶
func (s *AllTypesCreate) GetText() string
GetText returns the value of Text.
func (*AllTypesCreate) GetTime ¶
func (s *AllTypesCreate) GetTime() time.Time
GetTime returns the value of Time.
func (*AllTypesCreate) GetUUID ¶
func (s *AllTypesCreate) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (*AllTypesCreate) GetUint ¶
func (s *AllTypesCreate) GetUint() int64
GetUint returns the value of Uint.
func (*AllTypesCreate) GetUint16 ¶
func (s *AllTypesCreate) GetUint16() int32
GetUint16 returns the value of Uint16.
func (*AllTypesCreate) GetUint32 ¶
func (s *AllTypesCreate) GetUint32() int64
GetUint32 returns the value of Uint32.
func (*AllTypesCreate) GetUint64 ¶
func (s *AllTypesCreate) GetUint64() int64
GetUint64 returns the value of Uint64.
func (*AllTypesCreate) GetUint8 ¶
func (s *AllTypesCreate) GetUint8() int32
GetUint8 returns the value of Uint8.
func (*AllTypesCreate) MarshalJSON ¶
func (s *AllTypesCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesCreate) SetBool ¶
func (s *AllTypesCreate) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesCreate) SetBytes ¶
func (s *AllTypesCreate) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesCreate) SetFloat32 ¶
func (s *AllTypesCreate) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesCreate) SetFloat64 ¶
func (s *AllTypesCreate) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesCreate) SetID ¶
func (s *AllTypesCreate) SetID(val int64)
SetID sets the value of ID.
func (*AllTypesCreate) SetInt ¶
func (s *AllTypesCreate) SetInt(val int)
SetInt sets the value of Int.
func (*AllTypesCreate) SetInt16 ¶
func (s *AllTypesCreate) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesCreate) SetInt32 ¶
func (s *AllTypesCreate) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesCreate) SetInt64 ¶
func (s *AllTypesCreate) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesCreate) SetInt8 ¶
func (s *AllTypesCreate) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesCreate) SetNilable ¶
func (s *AllTypesCreate) SetNilable(val OptString)
SetNilable sets the value of Nilable.
func (*AllTypesCreate) SetState ¶
func (s *AllTypesCreate) SetState(val AllTypesCreateState)
SetState sets the value of State.
func (*AllTypesCreate) SetStringType ¶
func (s *AllTypesCreate) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesCreate) SetText ¶
func (s *AllTypesCreate) SetText(val string)
SetText sets the value of Text.
func (*AllTypesCreate) SetTime ¶
func (s *AllTypesCreate) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesCreate) SetUUID ¶
func (s *AllTypesCreate) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesCreate) SetUint ¶
func (s *AllTypesCreate) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesCreate) SetUint16 ¶
func (s *AllTypesCreate) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesCreate) SetUint32 ¶
func (s *AllTypesCreate) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesCreate) SetUint64 ¶
func (s *AllTypesCreate) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesCreate) SetUint8 ¶
func (s *AllTypesCreate) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesCreate) UnmarshalJSON ¶
func (s *AllTypesCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesCreate) Validate ¶
func (s *AllTypesCreate) Validate() error
type AllTypesCreateState ¶
type AllTypesCreateState string
const ( AllTypesCreateStateOn AllTypesCreateState = "on" AllTypesCreateStateOff AllTypesCreateState = "off" )
func (*AllTypesCreateState) Decode ¶
func (s *AllTypesCreateState) Decode(d *jx.Decoder) error
Decode decodes AllTypesCreateState from json.
func (AllTypesCreateState) Encode ¶
func (s AllTypesCreateState) Encode(e *jx.Encoder)
Encode encodes AllTypesCreateState as json.
func (AllTypesCreateState) MarshalJSON ¶
func (s AllTypesCreateState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AllTypesCreateState) MarshalText ¶
func (s AllTypesCreateState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AllTypesCreateState) UnmarshalJSON ¶
func (s *AllTypesCreateState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesCreateState) UnmarshalText ¶
func (s *AllTypesCreateState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AllTypesCreateState) Validate ¶
func (s AllTypesCreateState) Validate() error
type AllTypesList ¶
type AllTypesList struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesListState `json:"state"` Bytes []byte `json:"bytes"` Nilable OptString `json:"nilable"` }
Ref: #/components/schemas/AllTypesList
func NewAllTypesList ¶
func NewAllTypesList(e *ent.AllTypes) *AllTypesList
func NewAllTypesLists ¶
func NewAllTypesLists(es []*ent.AllTypes) []AllTypesList
func (*AllTypesList) Decode ¶
func (s *AllTypesList) Decode(d *jx.Decoder) error
Decode decodes AllTypesList from json.
func (*AllTypesList) Elem ¶
func (at *AllTypesList) Elem() AllTypesList
func (*AllTypesList) Encode ¶
func (s *AllTypesList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AllTypesList) GetBool ¶
func (s *AllTypesList) GetBool() bool
GetBool returns the value of Bool.
func (*AllTypesList) GetBytes ¶
func (s *AllTypesList) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*AllTypesList) GetFloat32 ¶
func (s *AllTypesList) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (*AllTypesList) GetFloat64 ¶
func (s *AllTypesList) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (*AllTypesList) GetInt16 ¶
func (s *AllTypesList) GetInt16() int32
GetInt16 returns the value of Int16.
func (*AllTypesList) GetInt32 ¶
func (s *AllTypesList) GetInt32() int32
GetInt32 returns the value of Int32.
func (*AllTypesList) GetInt64 ¶
func (s *AllTypesList) GetInt64() int64
GetInt64 returns the value of Int64.
func (*AllTypesList) GetInt8 ¶
func (s *AllTypesList) GetInt8() int32
GetInt8 returns the value of Int8.
func (*AllTypesList) GetNilable ¶
func (s *AllTypesList) GetNilable() OptString
GetNilable returns the value of Nilable.
func (*AllTypesList) GetState ¶
func (s *AllTypesList) GetState() AllTypesListState
GetState returns the value of State.
func (*AllTypesList) GetStringType ¶
func (s *AllTypesList) GetStringType() string
GetStringType returns the value of StringType.
func (*AllTypesList) GetText ¶
func (s *AllTypesList) GetText() string
GetText returns the value of Text.
func (*AllTypesList) GetTime ¶
func (s *AllTypesList) GetTime() time.Time
GetTime returns the value of Time.
func (*AllTypesList) GetUUID ¶
func (s *AllTypesList) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (*AllTypesList) GetUint ¶
func (s *AllTypesList) GetUint() int64
GetUint returns the value of Uint.
func (*AllTypesList) GetUint16 ¶
func (s *AllTypesList) GetUint16() int32
GetUint16 returns the value of Uint16.
func (*AllTypesList) GetUint32 ¶
func (s *AllTypesList) GetUint32() int64
GetUint32 returns the value of Uint32.
func (*AllTypesList) GetUint64 ¶
func (s *AllTypesList) GetUint64() int64
GetUint64 returns the value of Uint64.
func (*AllTypesList) GetUint8 ¶
func (s *AllTypesList) GetUint8() int32
GetUint8 returns the value of Uint8.
func (*AllTypesList) MarshalJSON ¶
func (s *AllTypesList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesList) SetBool ¶
func (s *AllTypesList) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesList) SetBytes ¶
func (s *AllTypesList) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesList) SetFloat32 ¶
func (s *AllTypesList) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesList) SetFloat64 ¶
func (s *AllTypesList) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesList) SetInt16 ¶
func (s *AllTypesList) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesList) SetInt32 ¶
func (s *AllTypesList) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesList) SetInt64 ¶
func (s *AllTypesList) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesList) SetInt8 ¶
func (s *AllTypesList) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesList) SetNilable ¶
func (s *AllTypesList) SetNilable(val OptString)
SetNilable sets the value of Nilable.
func (*AllTypesList) SetState ¶
func (s *AllTypesList) SetState(val AllTypesListState)
SetState sets the value of State.
func (*AllTypesList) SetStringType ¶
func (s *AllTypesList) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesList) SetText ¶
func (s *AllTypesList) SetText(val string)
SetText sets the value of Text.
func (*AllTypesList) SetTime ¶
func (s *AllTypesList) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesList) SetUUID ¶
func (s *AllTypesList) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesList) SetUint ¶
func (s *AllTypesList) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesList) SetUint16 ¶
func (s *AllTypesList) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesList) SetUint32 ¶
func (s *AllTypesList) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesList) SetUint64 ¶
func (s *AllTypesList) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesList) SetUint8 ¶
func (s *AllTypesList) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesList) UnmarshalJSON ¶
func (s *AllTypesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesList) Validate ¶
func (s *AllTypesList) Validate() error
type AllTypesListState ¶
type AllTypesListState string
const ( AllTypesListStateOn AllTypesListState = "on" AllTypesListStateOff AllTypesListState = "off" )
func (*AllTypesListState) Decode ¶
func (s *AllTypesListState) Decode(d *jx.Decoder) error
Decode decodes AllTypesListState from json.
func (AllTypesListState) Encode ¶
func (s AllTypesListState) Encode(e *jx.Encoder)
Encode encodes AllTypesListState as json.
func (AllTypesListState) MarshalJSON ¶
func (s AllTypesListState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AllTypesListState) MarshalText ¶
func (s AllTypesListState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AllTypesListState) UnmarshalJSON ¶
func (s *AllTypesListState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesListState) UnmarshalText ¶
func (s *AllTypesListState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AllTypesListState) Validate ¶
func (s AllTypesListState) Validate() error
type AllTypesRead ¶
type AllTypesRead struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesReadState `json:"state"` Bytes []byte `json:"bytes"` Nilable OptString `json:"nilable"` }
Ref: #/components/schemas/AllTypesRead
func NewAllTypesRead ¶
func NewAllTypesRead(e *ent.AllTypes) *AllTypesRead
func NewAllTypesReads ¶
func NewAllTypesReads(es []*ent.AllTypes) []AllTypesRead
func (*AllTypesRead) Decode ¶
func (s *AllTypesRead) Decode(d *jx.Decoder) error
Decode decodes AllTypesRead from json.
func (*AllTypesRead) Elem ¶
func (at *AllTypesRead) Elem() AllTypesRead
func (*AllTypesRead) Encode ¶
func (s *AllTypesRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AllTypesRead) GetBool ¶
func (s *AllTypesRead) GetBool() bool
GetBool returns the value of Bool.
func (*AllTypesRead) GetBytes ¶
func (s *AllTypesRead) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*AllTypesRead) GetFloat32 ¶
func (s *AllTypesRead) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (*AllTypesRead) GetFloat64 ¶
func (s *AllTypesRead) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (*AllTypesRead) GetInt16 ¶
func (s *AllTypesRead) GetInt16() int32
GetInt16 returns the value of Int16.
func (*AllTypesRead) GetInt32 ¶
func (s *AllTypesRead) GetInt32() int32
GetInt32 returns the value of Int32.
func (*AllTypesRead) GetInt64 ¶
func (s *AllTypesRead) GetInt64() int64
GetInt64 returns the value of Int64.
func (*AllTypesRead) GetInt8 ¶
func (s *AllTypesRead) GetInt8() int32
GetInt8 returns the value of Int8.
func (*AllTypesRead) GetNilable ¶
func (s *AllTypesRead) GetNilable() OptString
GetNilable returns the value of Nilable.
func (*AllTypesRead) GetState ¶
func (s *AllTypesRead) GetState() AllTypesReadState
GetState returns the value of State.
func (*AllTypesRead) GetStringType ¶
func (s *AllTypesRead) GetStringType() string
GetStringType returns the value of StringType.
func (*AllTypesRead) GetText ¶
func (s *AllTypesRead) GetText() string
GetText returns the value of Text.
func (*AllTypesRead) GetTime ¶
func (s *AllTypesRead) GetTime() time.Time
GetTime returns the value of Time.
func (*AllTypesRead) GetUUID ¶
func (s *AllTypesRead) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (*AllTypesRead) GetUint ¶
func (s *AllTypesRead) GetUint() int64
GetUint returns the value of Uint.
func (*AllTypesRead) GetUint16 ¶
func (s *AllTypesRead) GetUint16() int32
GetUint16 returns the value of Uint16.
func (*AllTypesRead) GetUint32 ¶
func (s *AllTypesRead) GetUint32() int64
GetUint32 returns the value of Uint32.
func (*AllTypesRead) GetUint64 ¶
func (s *AllTypesRead) GetUint64() int64
GetUint64 returns the value of Uint64.
func (*AllTypesRead) GetUint8 ¶
func (s *AllTypesRead) GetUint8() int32
GetUint8 returns the value of Uint8.
func (*AllTypesRead) MarshalJSON ¶
func (s *AllTypesRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesRead) SetBool ¶
func (s *AllTypesRead) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesRead) SetBytes ¶
func (s *AllTypesRead) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesRead) SetFloat32 ¶
func (s *AllTypesRead) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesRead) SetFloat64 ¶
func (s *AllTypesRead) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesRead) SetInt16 ¶
func (s *AllTypesRead) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesRead) SetInt32 ¶
func (s *AllTypesRead) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesRead) SetInt64 ¶
func (s *AllTypesRead) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesRead) SetInt8 ¶
func (s *AllTypesRead) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesRead) SetNilable ¶
func (s *AllTypesRead) SetNilable(val OptString)
SetNilable sets the value of Nilable.
func (*AllTypesRead) SetState ¶
func (s *AllTypesRead) SetState(val AllTypesReadState)
SetState sets the value of State.
func (*AllTypesRead) SetStringType ¶
func (s *AllTypesRead) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesRead) SetText ¶
func (s *AllTypesRead) SetText(val string)
SetText sets the value of Text.
func (*AllTypesRead) SetTime ¶
func (s *AllTypesRead) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesRead) SetUUID ¶
func (s *AllTypesRead) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesRead) SetUint ¶
func (s *AllTypesRead) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesRead) SetUint16 ¶
func (s *AllTypesRead) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesRead) SetUint32 ¶
func (s *AllTypesRead) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesRead) SetUint64 ¶
func (s *AllTypesRead) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesRead) SetUint8 ¶
func (s *AllTypesRead) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesRead) UnmarshalJSON ¶
func (s *AllTypesRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesRead) Validate ¶
func (s *AllTypesRead) Validate() error
type AllTypesReadState ¶
type AllTypesReadState string
const ( AllTypesReadStateOn AllTypesReadState = "on" AllTypesReadStateOff AllTypesReadState = "off" )
func (*AllTypesReadState) Decode ¶
func (s *AllTypesReadState) Decode(d *jx.Decoder) error
Decode decodes AllTypesReadState from json.
func (AllTypesReadState) Encode ¶
func (s AllTypesReadState) Encode(e *jx.Encoder)
Encode encodes AllTypesReadState as json.
func (AllTypesReadState) MarshalJSON ¶
func (s AllTypesReadState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AllTypesReadState) MarshalText ¶
func (s AllTypesReadState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AllTypesReadState) UnmarshalJSON ¶
func (s *AllTypesReadState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesReadState) UnmarshalText ¶
func (s *AllTypesReadState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AllTypesReadState) Validate ¶
func (s AllTypesReadState) Validate() error
type AllTypesUpdate ¶
type AllTypesUpdate struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesUpdateState `json:"state"` Bytes []byte `json:"bytes"` Nilable OptString `json:"nilable"` }
Ref: #/components/schemas/AllTypesUpdate
func NewAllTypesUpdate ¶
func NewAllTypesUpdate(e *ent.AllTypes) *AllTypesUpdate
func NewAllTypesUpdates ¶
func NewAllTypesUpdates(es []*ent.AllTypes) []AllTypesUpdate
func (*AllTypesUpdate) Decode ¶
func (s *AllTypesUpdate) Decode(d *jx.Decoder) error
Decode decodes AllTypesUpdate from json.
func (*AllTypesUpdate) Elem ¶
func (at *AllTypesUpdate) Elem() AllTypesUpdate
func (*AllTypesUpdate) Encode ¶
func (s *AllTypesUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AllTypesUpdate) GetBool ¶
func (s *AllTypesUpdate) GetBool() bool
GetBool returns the value of Bool.
func (*AllTypesUpdate) GetBytes ¶
func (s *AllTypesUpdate) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*AllTypesUpdate) GetFloat32 ¶
func (s *AllTypesUpdate) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (*AllTypesUpdate) GetFloat64 ¶
func (s *AllTypesUpdate) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (*AllTypesUpdate) GetID ¶
func (s *AllTypesUpdate) GetID() int64
GetID returns the value of ID.
func (*AllTypesUpdate) GetInt ¶
func (s *AllTypesUpdate) GetInt() int
GetInt returns the value of Int.
func (*AllTypesUpdate) GetInt16 ¶
func (s *AllTypesUpdate) GetInt16() int32
GetInt16 returns the value of Int16.
func (*AllTypesUpdate) GetInt32 ¶
func (s *AllTypesUpdate) GetInt32() int32
GetInt32 returns the value of Int32.
func (*AllTypesUpdate) GetInt64 ¶
func (s *AllTypesUpdate) GetInt64() int64
GetInt64 returns the value of Int64.
func (*AllTypesUpdate) GetInt8 ¶
func (s *AllTypesUpdate) GetInt8() int32
GetInt8 returns the value of Int8.
func (*AllTypesUpdate) GetNilable ¶
func (s *AllTypesUpdate) GetNilable() OptString
GetNilable returns the value of Nilable.
func (*AllTypesUpdate) GetState ¶
func (s *AllTypesUpdate) GetState() AllTypesUpdateState
GetState returns the value of State.
func (*AllTypesUpdate) GetStringType ¶
func (s *AllTypesUpdate) GetStringType() string
GetStringType returns the value of StringType.
func (*AllTypesUpdate) GetText ¶
func (s *AllTypesUpdate) GetText() string
GetText returns the value of Text.
func (*AllTypesUpdate) GetTime ¶
func (s *AllTypesUpdate) GetTime() time.Time
GetTime returns the value of Time.
func (*AllTypesUpdate) GetUUID ¶
func (s *AllTypesUpdate) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (*AllTypesUpdate) GetUint ¶
func (s *AllTypesUpdate) GetUint() int64
GetUint returns the value of Uint.
func (*AllTypesUpdate) GetUint16 ¶
func (s *AllTypesUpdate) GetUint16() int32
GetUint16 returns the value of Uint16.
func (*AllTypesUpdate) GetUint32 ¶
func (s *AllTypesUpdate) GetUint32() int64
GetUint32 returns the value of Uint32.
func (*AllTypesUpdate) GetUint64 ¶
func (s *AllTypesUpdate) GetUint64() int64
GetUint64 returns the value of Uint64.
func (*AllTypesUpdate) GetUint8 ¶
func (s *AllTypesUpdate) GetUint8() int32
GetUint8 returns the value of Uint8.
func (*AllTypesUpdate) MarshalJSON ¶
func (s *AllTypesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesUpdate) SetBool ¶
func (s *AllTypesUpdate) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesUpdate) SetBytes ¶
func (s *AllTypesUpdate) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesUpdate) SetFloat32 ¶
func (s *AllTypesUpdate) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesUpdate) SetFloat64 ¶
func (s *AllTypesUpdate) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesUpdate) SetID ¶
func (s *AllTypesUpdate) SetID(val int64)
SetID sets the value of ID.
func (*AllTypesUpdate) SetInt ¶
func (s *AllTypesUpdate) SetInt(val int)
SetInt sets the value of Int.
func (*AllTypesUpdate) SetInt16 ¶
func (s *AllTypesUpdate) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesUpdate) SetInt32 ¶
func (s *AllTypesUpdate) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesUpdate) SetInt64 ¶
func (s *AllTypesUpdate) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesUpdate) SetInt8 ¶
func (s *AllTypesUpdate) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesUpdate) SetNilable ¶
func (s *AllTypesUpdate) SetNilable(val OptString)
SetNilable sets the value of Nilable.
func (*AllTypesUpdate) SetState ¶
func (s *AllTypesUpdate) SetState(val AllTypesUpdateState)
SetState sets the value of State.
func (*AllTypesUpdate) SetStringType ¶
func (s *AllTypesUpdate) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesUpdate) SetText ¶
func (s *AllTypesUpdate) SetText(val string)
SetText sets the value of Text.
func (*AllTypesUpdate) SetTime ¶
func (s *AllTypesUpdate) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesUpdate) SetUUID ¶
func (s *AllTypesUpdate) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesUpdate) SetUint ¶
func (s *AllTypesUpdate) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesUpdate) SetUint16 ¶
func (s *AllTypesUpdate) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesUpdate) SetUint32 ¶
func (s *AllTypesUpdate) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesUpdate) SetUint64 ¶
func (s *AllTypesUpdate) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesUpdate) SetUint8 ¶
func (s *AllTypesUpdate) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesUpdate) UnmarshalJSON ¶
func (s *AllTypesUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesUpdate) Validate ¶
func (s *AllTypesUpdate) Validate() error
type AllTypesUpdateState ¶
type AllTypesUpdateState string
const ( AllTypesUpdateStateOn AllTypesUpdateState = "on" AllTypesUpdateStateOff AllTypesUpdateState = "off" )
func (*AllTypesUpdateState) Decode ¶
func (s *AllTypesUpdateState) Decode(d *jx.Decoder) error
Decode decodes AllTypesUpdateState from json.
func (AllTypesUpdateState) Encode ¶
func (s AllTypesUpdateState) Encode(e *jx.Encoder)
Encode encodes AllTypesUpdateState as json.
func (AllTypesUpdateState) MarshalJSON ¶
func (s AllTypesUpdateState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AllTypesUpdateState) MarshalText ¶
func (s AllTypesUpdateState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AllTypesUpdateState) UnmarshalJSON ¶
func (s *AllTypesUpdateState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AllTypesUpdateState) UnmarshalText ¶
func (s *AllTypesUpdateState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AllTypesUpdateState) Validate ¶
func (s AllTypesUpdateState) Validate() error
type CategoryCreate ¶
type CategoryCreate struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryCreate
func NewCategoryCreate ¶
func NewCategoryCreate(e *ent.Category) *CategoryCreate
func NewCategoryCreates ¶
func NewCategoryCreates(es []*ent.Category) []CategoryCreate
func (*CategoryCreate) Decode ¶
func (s *CategoryCreate) Decode(d *jx.Decoder) error
Decode decodes CategoryCreate from json.
func (*CategoryCreate) Elem ¶
func (c *CategoryCreate) Elem() CategoryCreate
func (*CategoryCreate) Encode ¶
func (s *CategoryCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryCreate) GetName ¶
func (s *CategoryCreate) GetName() string
GetName returns the value of Name.
func (*CategoryCreate) GetReadonly ¶
func (s *CategoryCreate) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*CategoryCreate) MarshalJSON ¶
func (s *CategoryCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryCreate) SetName ¶
func (s *CategoryCreate) SetName(val string)
SetName sets the value of Name.
func (*CategoryCreate) SetReadonly ¶
func (s *CategoryCreate) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryCreate) UnmarshalJSON ¶
func (s *CategoryCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryList ¶
type CategoryList struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryList
func NewCategoryList ¶
func NewCategoryList(e *ent.Category) *CategoryList
func NewCategoryLists ¶
func NewCategoryLists(es []*ent.Category) []CategoryList
func (*CategoryList) Decode ¶
func (s *CategoryList) Decode(d *jx.Decoder) error
Decode decodes CategoryList from json.
func (*CategoryList) Elem ¶
func (c *CategoryList) Elem() CategoryList
func (*CategoryList) Encode ¶
func (s *CategoryList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryList) GetName ¶
func (s *CategoryList) GetName() string
GetName returns the value of Name.
func (*CategoryList) GetReadonly ¶
func (s *CategoryList) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*CategoryList) MarshalJSON ¶
func (s *CategoryList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryList) SetName ¶
func (s *CategoryList) SetName(val string)
SetName sets the value of Name.
func (*CategoryList) SetReadonly ¶
func (s *CategoryList) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryList) UnmarshalJSON ¶
func (s *CategoryList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryPetsList ¶
type CategoryPetsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/Category_PetsList
func NewCategoryPetsList ¶
func NewCategoryPetsList(e *ent.Pet) *CategoryPetsList
func NewCategoryPetsLists ¶
func NewCategoryPetsLists(es []*ent.Pet) []CategoryPetsList
func (*CategoryPetsList) Decode ¶
func (s *CategoryPetsList) Decode(d *jx.Decoder) error
Decode decodes CategoryPetsList from json.
func (*CategoryPetsList) Elem ¶
func (pe *CategoryPetsList) Elem() CategoryPetsList
func (*CategoryPetsList) Encode ¶
func (s *CategoryPetsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryPetsList) GetBirthday ¶
func (s *CategoryPetsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*CategoryPetsList) GetHeight ¶
func (s *CategoryPetsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (*CategoryPetsList) GetID ¶
func (s *CategoryPetsList) GetID() int
GetID returns the value of ID.
func (*CategoryPetsList) GetName ¶
func (s *CategoryPetsList) GetName() string
GetName returns the value of Name.
func (*CategoryPetsList) GetTagID ¶
func (s *CategoryPetsList) GetTagID() []byte
GetTagID returns the value of TagID.
func (*CategoryPetsList) GetWeight ¶
func (s *CategoryPetsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*CategoryPetsList) MarshalJSON ¶
func (s *CategoryPetsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryPetsList) SetBirthday ¶
func (s *CategoryPetsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*CategoryPetsList) SetHeight ¶
func (s *CategoryPetsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*CategoryPetsList) SetID ¶
func (s *CategoryPetsList) SetID(val int)
SetID sets the value of ID.
func (*CategoryPetsList) SetName ¶
func (s *CategoryPetsList) SetName(val string)
SetName sets the value of Name.
func (*CategoryPetsList) SetTagID ¶
func (s *CategoryPetsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*CategoryPetsList) SetWeight ¶
func (s *CategoryPetsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*CategoryPetsList) UnmarshalJSON ¶
func (s *CategoryPetsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryRead ¶
type CategoryRead struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryRead
func NewCategoryRead ¶
func NewCategoryRead(e *ent.Category) *CategoryRead
func NewCategoryReads ¶
func NewCategoryReads(es []*ent.Category) []CategoryRead
func (*CategoryRead) Decode ¶
func (s *CategoryRead) Decode(d *jx.Decoder) error
Decode decodes CategoryRead from json.
func (*CategoryRead) Elem ¶
func (c *CategoryRead) Elem() CategoryRead
func (*CategoryRead) Encode ¶
func (s *CategoryRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryRead) GetName ¶
func (s *CategoryRead) GetName() string
GetName returns the value of Name.
func (*CategoryRead) GetReadonly ¶
func (s *CategoryRead) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*CategoryRead) MarshalJSON ¶
func (s *CategoryRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryRead) SetName ¶
func (s *CategoryRead) SetName(val string)
SetName sets the value of Name.
func (*CategoryRead) SetReadonly ¶
func (s *CategoryRead) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryRead) UnmarshalJSON ¶
func (s *CategoryRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryUpdate ¶
type CategoryUpdate struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryUpdate
func NewCategoryUpdate ¶
func NewCategoryUpdate(e *ent.Category) *CategoryUpdate
func NewCategoryUpdates ¶
func NewCategoryUpdates(es []*ent.Category) []CategoryUpdate
func (*CategoryUpdate) Decode ¶
func (s *CategoryUpdate) Decode(d *jx.Decoder) error
Decode decodes CategoryUpdate from json.
func (*CategoryUpdate) Elem ¶
func (c *CategoryUpdate) Elem() CategoryUpdate
func (*CategoryUpdate) Encode ¶
func (s *CategoryUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryUpdate) GetName ¶
func (s *CategoryUpdate) GetName() string
GetName returns the value of Name.
func (*CategoryUpdate) GetReadonly ¶
func (s *CategoryUpdate) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*CategoryUpdate) MarshalJSON ¶
func (s *CategoryUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryUpdate) SetName ¶
func (s *CategoryUpdate) SetName(val string)
SetName sets the value of Name.
func (*CategoryUpdate) SetReadonly ¶
func (s *CategoryUpdate) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryUpdate) UnmarshalJSON ¶
func (s *CategoryUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) CreateAllTypes ¶
func (c *Client) CreateAllTypes(ctx context.Context, request *CreateAllTypesReq) (CreateAllTypesRes, error)
CreateAllTypes invokes createAllTypes operation.
Creates a new AllTypes and persists it to storage.
POST /all-types
func (*Client) CreateCategory ¶
func (c *Client) CreateCategory(ctx context.Context, request *CreateCategoryReq) (CreateCategoryRes, error)
CreateCategory invokes createCategory operation.
Creates a new Category and persists it to storage.
POST /categories
func (*Client) CreateHat ¶
func (c *Client) CreateHat(ctx context.Context, request *CreateHatReq) (CreateHatRes, error)
CreateHat invokes createHat operation.
Creates a new Hat and persists it to storage.
POST /hats
func (*Client) CreatePet ¶
func (c *Client) CreatePet(ctx context.Context, request *CreatePetReq) (CreatePetRes, error)
CreatePet invokes createPet operation.
Creates a new Pet and persists it to storage.
POST /pets
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, request *CreateUserReq) (CreateUserRes, error)
CreateUser invokes createUser operation.
Creates a new User and persists it to storage.
POST /users
func (*Client) DeleteAllTypes ¶
func (c *Client) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
DeleteAllTypes invokes deleteAllTypes operation.
Deletes the AllTypes with the requested ID.
DELETE /all-types/{id}
func (*Client) DeleteCategory ¶
func (c *Client) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
DeleteCategory invokes deleteCategory operation.
Deletes the Category with the requested ID.
DELETE /categories/{id}
func (*Client) DeleteHat ¶
func (c *Client) DeleteHat(ctx context.Context, params DeleteHatParams) (DeleteHatRes, error)
DeleteHat invokes deleteHat operation.
Deletes the Hat with the requested ID.
DELETE /hats/{id}
func (*Client) DeletePet ¶
func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
DeletePet invokes deletePet operation.
Deletes the Pet with the requested ID.
DELETE /pets/{id}
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
DeleteUser invokes deleteUser operation.
Deletes the User with the requested ID.
DELETE /users/{id}
func (*Client) ListAllTypes ¶
func (c *Client) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
ListAllTypes invokes listAllTypes operation.
List AllTypes.
GET /all-types
func (*Client) ListCategory ¶
func (c *Client) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
ListCategory invokes listCategory operation.
List Categories.
GET /categories
func (*Client) ListCategoryPets ¶
func (c *Client) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
ListCategoryPets invokes listCategoryPets operation.
List attached Pets.
GET /categories/{id}/pets
func (*Client) ListHat ¶
func (c *Client) ListHat(ctx context.Context, params ListHatParams) (ListHatRes, error)
ListHat invokes listHat operation.
List Hats.
GET /hats
func (*Client) ListPet ¶
func (c *Client) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
ListPet invokes listPet operation.
List Pets.
GET /pets
func (*Client) ListPetCategories ¶
func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
ListPetCategories invokes listPetCategories operation.
List attached Categories.
GET /pets/{id}/categories
func (*Client) ListPetFriends ¶
func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
ListPetFriends invokes listPetFriends operation.
List attached Friends.
GET /pets/{id}/friends
func (*Client) ListPetRescuer ¶
func (c *Client) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (ListPetRescuerRes, error)
ListPetRescuer invokes listPetRescuer operation.
List attached Rescuers.
GET /pets/{id}/rescuer
func (*Client) ListUser ¶
func (c *Client) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
ListUser invokes listUser operation.
List Users.
GET /users
func (*Client) ListUserAnimalsSaved ¶
func (c *Client) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (ListUserAnimalsSavedRes, error)
ListUserAnimalsSaved invokes listUserAnimalsSaved operation.
List attached AnimalsSaveds.
GET /users/{id}/animals-saved
func (*Client) ListUserPets ¶
func (c *Client) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
ListUserPets invokes listUserPets operation.
List attached Pets.
GET /users/{id}/pets
func (*Client) ReadAllTypes ¶
func (c *Client) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
ReadAllTypes invokes readAllTypes operation.
Finds the AllTypes with the requested ID and returns it.
GET /all-types/{id}
func (*Client) ReadCategory ¶
func (c *Client) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
ReadCategory invokes readCategory operation.
Finds the Category with the requested ID and returns it.
GET /categories/{id}
func (*Client) ReadHat ¶
func (c *Client) ReadHat(ctx context.Context, params ReadHatParams) (ReadHatRes, error)
ReadHat invokes readHat operation.
Finds the Hat with the requested ID and returns it.
GET /hats/{id}
func (*Client) ReadHatWearer ¶
func (c *Client) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (ReadHatWearerRes, error)
ReadHatWearer invokes readHatWearer operation.
Find the attached User of the Hat with the given ID.
GET /hats/{id}/wearer
func (*Client) ReadPet ¶
func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
ReadPet invokes readPet operation.
Finds the Pet with the requested ID and returns it.
GET /pets/{id}
func (*Client) ReadPetOwner ¶
func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
ReadPetOwner invokes readPetOwner operation.
Find the attached User of the Pet with the given ID.
GET /pets/{id}/owner
func (*Client) ReadUser ¶
func (c *Client) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
ReadUser invokes readUser operation.
Finds the User with the requested ID and returns it.
GET /users/{id}
func (*Client) ReadUserBestFriend ¶
func (c *Client) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
ReadUserBestFriend invokes readUserBestFriend operation.
Find the attached User of the User with the given ID.
GET /users/{id}/best-friend
func (*Client) ReadUserFavoriteHat ¶
func (c *Client) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (ReadUserFavoriteHatRes, error)
ReadUserFavoriteHat invokes readUserFavoriteHat operation.
Find the attached Hat of the User with the given ID.
GET /users/{id}/favorite-hat
func (*Client) UpdateAllTypes ¶
func (c *Client) UpdateAllTypes(ctx context.Context, request *UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
UpdateAllTypes invokes updateAllTypes operation.
Updates a AllTypes and persists changes to storage.
PATCH /all-types/{id}
func (*Client) UpdateCategory ¶
func (c *Client) UpdateCategory(ctx context.Context, request *UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
UpdateCategory invokes updateCategory operation.
Updates a Category and persists changes to storage.
PATCH /categories/{id}
func (*Client) UpdateHat ¶
func (c *Client) UpdateHat(ctx context.Context, request *UpdateHatReq, params UpdateHatParams) (UpdateHatRes, error)
UpdateHat invokes updateHat operation.
Updates a Hat and persists changes to storage.
PATCH /hats/{id}
func (*Client) UpdatePet ¶
func (c *Client) UpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
UpdatePet invokes updatePet operation.
Updates a Pet and persists changes to storage.
PATCH /pets/{id}
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, request *UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
UpdateUser invokes updateUser operation.
Updates a User and persists changes to storage.
PATCH /users/{id}
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type CreateAllTypesReq ¶
type CreateAllTypesReq struct { Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State CreateAllTypesReqState `json:"state"` Bytes []byte `json:"bytes"` Nilable string `json:"nilable"` }
func (*CreateAllTypesReq) Decode ¶
func (s *CreateAllTypesReq) Decode(d *jx.Decoder) error
Decode decodes CreateAllTypesReq from json.
func (*CreateAllTypesReq) Encode ¶
func (s *CreateAllTypesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateAllTypesReq) GetBool ¶
func (s *CreateAllTypesReq) GetBool() bool
GetBool returns the value of Bool.
func (*CreateAllTypesReq) GetBytes ¶
func (s *CreateAllTypesReq) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*CreateAllTypesReq) GetFloat32 ¶
func (s *CreateAllTypesReq) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (*CreateAllTypesReq) GetFloat64 ¶
func (s *CreateAllTypesReq) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (*CreateAllTypesReq) GetInt ¶
func (s *CreateAllTypesReq) GetInt() int
GetInt returns the value of Int.
func (*CreateAllTypesReq) GetInt16 ¶
func (s *CreateAllTypesReq) GetInt16() int32
GetInt16 returns the value of Int16.
func (*CreateAllTypesReq) GetInt32 ¶
func (s *CreateAllTypesReq) GetInt32() int32
GetInt32 returns the value of Int32.
func (*CreateAllTypesReq) GetInt64 ¶
func (s *CreateAllTypesReq) GetInt64() int64
GetInt64 returns the value of Int64.
func (*CreateAllTypesReq) GetInt8 ¶
func (s *CreateAllTypesReq) GetInt8() int32
GetInt8 returns the value of Int8.
func (*CreateAllTypesReq) GetNilable ¶
func (s *CreateAllTypesReq) GetNilable() string
GetNilable returns the value of Nilable.
func (*CreateAllTypesReq) GetState ¶
func (s *CreateAllTypesReq) GetState() CreateAllTypesReqState
GetState returns the value of State.
func (*CreateAllTypesReq) GetStringType ¶
func (s *CreateAllTypesReq) GetStringType() string
GetStringType returns the value of StringType.
func (*CreateAllTypesReq) GetText ¶
func (s *CreateAllTypesReq) GetText() string
GetText returns the value of Text.
func (*CreateAllTypesReq) GetTime ¶
func (s *CreateAllTypesReq) GetTime() time.Time
GetTime returns the value of Time.
func (*CreateAllTypesReq) GetUUID ¶
func (s *CreateAllTypesReq) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (*CreateAllTypesReq) GetUint ¶
func (s *CreateAllTypesReq) GetUint() int64
GetUint returns the value of Uint.
func (*CreateAllTypesReq) GetUint16 ¶
func (s *CreateAllTypesReq) GetUint16() int32
GetUint16 returns the value of Uint16.
func (*CreateAllTypesReq) GetUint32 ¶
func (s *CreateAllTypesReq) GetUint32() int64
GetUint32 returns the value of Uint32.
func (*CreateAllTypesReq) GetUint64 ¶
func (s *CreateAllTypesReq) GetUint64() int64
GetUint64 returns the value of Uint64.
func (*CreateAllTypesReq) GetUint8 ¶
func (s *CreateAllTypesReq) GetUint8() int32
GetUint8 returns the value of Uint8.
func (*CreateAllTypesReq) MarshalJSON ¶
func (s *CreateAllTypesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAllTypesReq) SetBool ¶
func (s *CreateAllTypesReq) SetBool(val bool)
SetBool sets the value of Bool.
func (*CreateAllTypesReq) SetBytes ¶
func (s *CreateAllTypesReq) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*CreateAllTypesReq) SetFloat32 ¶
func (s *CreateAllTypesReq) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*CreateAllTypesReq) SetFloat64 ¶
func (s *CreateAllTypesReq) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*CreateAllTypesReq) SetInt ¶
func (s *CreateAllTypesReq) SetInt(val int)
SetInt sets the value of Int.
func (*CreateAllTypesReq) SetInt16 ¶
func (s *CreateAllTypesReq) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*CreateAllTypesReq) SetInt32 ¶
func (s *CreateAllTypesReq) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*CreateAllTypesReq) SetInt64 ¶
func (s *CreateAllTypesReq) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*CreateAllTypesReq) SetInt8 ¶
func (s *CreateAllTypesReq) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*CreateAllTypesReq) SetNilable ¶
func (s *CreateAllTypesReq) SetNilable(val string)
SetNilable sets the value of Nilable.
func (*CreateAllTypesReq) SetState ¶
func (s *CreateAllTypesReq) SetState(val CreateAllTypesReqState)
SetState sets the value of State.
func (*CreateAllTypesReq) SetStringType ¶
func (s *CreateAllTypesReq) SetStringType(val string)
SetStringType sets the value of StringType.
func (*CreateAllTypesReq) SetText ¶
func (s *CreateAllTypesReq) SetText(val string)
SetText sets the value of Text.
func (*CreateAllTypesReq) SetTime ¶
func (s *CreateAllTypesReq) SetTime(val time.Time)
SetTime sets the value of Time.
func (*CreateAllTypesReq) SetUUID ¶
func (s *CreateAllTypesReq) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*CreateAllTypesReq) SetUint ¶
func (s *CreateAllTypesReq) SetUint(val int64)
SetUint sets the value of Uint.
func (*CreateAllTypesReq) SetUint16 ¶
func (s *CreateAllTypesReq) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*CreateAllTypesReq) SetUint32 ¶
func (s *CreateAllTypesReq) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*CreateAllTypesReq) SetUint64 ¶
func (s *CreateAllTypesReq) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*CreateAllTypesReq) SetUint8 ¶
func (s *CreateAllTypesReq) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*CreateAllTypesReq) UnmarshalJSON ¶
func (s *CreateAllTypesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateAllTypesReq) Validate ¶
func (s *CreateAllTypesReq) Validate() error
type CreateAllTypesReqState ¶
type CreateAllTypesReqState string
const ( CreateAllTypesReqStateOn CreateAllTypesReqState = "on" CreateAllTypesReqStateOff CreateAllTypesReqState = "off" )
func (*CreateAllTypesReqState) Decode ¶
func (s *CreateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes CreateAllTypesReqState from json.
func (CreateAllTypesReqState) Encode ¶
func (s CreateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes CreateAllTypesReqState as json.
func (CreateAllTypesReqState) MarshalJSON ¶
func (s CreateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateAllTypesReqState) MarshalText ¶
func (s CreateAllTypesReqState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateAllTypesReqState) UnmarshalJSON ¶
func (s *CreateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateAllTypesReqState) UnmarshalText ¶
func (s *CreateAllTypesReqState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateAllTypesReqState) Validate ¶
func (s CreateAllTypesReqState) Validate() error
type CreateAllTypesRes ¶
type CreateAllTypesRes interface {
// contains filtered or unexported methods
}
type CreateCategoryReq ¶
func (*CreateCategoryReq) Decode ¶
func (s *CreateCategoryReq) Decode(d *jx.Decoder) error
Decode decodes CreateCategoryReq from json.
func (*CreateCategoryReq) Encode ¶
func (s *CreateCategoryReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateCategoryReq) GetName ¶
func (s *CreateCategoryReq) GetName() string
GetName returns the value of Name.
func (*CreateCategoryReq) GetPets ¶
func (s *CreateCategoryReq) GetPets() []int
GetPets returns the value of Pets.
func (*CreateCategoryReq) MarshalJSON ¶
func (s *CreateCategoryReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateCategoryReq) SetName ¶
func (s *CreateCategoryReq) SetName(val string)
SetName sets the value of Name.
func (*CreateCategoryReq) SetPets ¶
func (s *CreateCategoryReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreateCategoryReq) UnmarshalJSON ¶
func (s *CreateCategoryReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateCategoryRes ¶
type CreateCategoryRes interface {
// contains filtered or unexported methods
}
type CreateHatReq ¶
type CreateHatReq struct { Name string `json:"name"` Type CreateHatReqType `json:"type"` Wearer OptInt `json:"wearer"` }
func (*CreateHatReq) Decode ¶
func (s *CreateHatReq) Decode(d *jx.Decoder) error
Decode decodes CreateHatReq from json.
func (*CreateHatReq) Encode ¶
func (s *CreateHatReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateHatReq) GetName ¶
func (s *CreateHatReq) GetName() string
GetName returns the value of Name.
func (*CreateHatReq) GetType ¶
func (s *CreateHatReq) GetType() CreateHatReqType
GetType returns the value of Type.
func (*CreateHatReq) GetWearer ¶
func (s *CreateHatReq) GetWearer() OptInt
GetWearer returns the value of Wearer.
func (*CreateHatReq) MarshalJSON ¶
func (s *CreateHatReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateHatReq) SetName ¶
func (s *CreateHatReq) SetName(val string)
SetName sets the value of Name.
func (*CreateHatReq) SetType ¶
func (s *CreateHatReq) SetType(val CreateHatReqType)
SetType sets the value of Type.
func (*CreateHatReq) SetWearer ¶
func (s *CreateHatReq) SetWearer(val OptInt)
SetWearer sets the value of Wearer.
func (*CreateHatReq) UnmarshalJSON ¶
func (s *CreateHatReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateHatReq) Validate ¶
func (s *CreateHatReq) Validate() error
type CreateHatReqType ¶
type CreateHatReqType string
const ( CreateHatReqTypeDad CreateHatReqType = "dad" CreateHatReqTypeTrucker CreateHatReqType = "trucker" CreateHatReqTypeSnapback CreateHatReqType = "snapback" )
func (*CreateHatReqType) Decode ¶
func (s *CreateHatReqType) Decode(d *jx.Decoder) error
Decode decodes CreateHatReqType from json.
func (CreateHatReqType) Encode ¶
func (s CreateHatReqType) Encode(e *jx.Encoder)
Encode encodes CreateHatReqType as json.
func (CreateHatReqType) MarshalJSON ¶
func (s CreateHatReqType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateHatReqType) MarshalText ¶
func (s CreateHatReqType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateHatReqType) UnmarshalJSON ¶
func (s *CreateHatReqType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateHatReqType) UnmarshalText ¶
func (s *CreateHatReqType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateHatReqType) Validate ¶
func (s CreateHatReqType) Validate() error
type CreateHatRes ¶
type CreateHatRes interface {
// contains filtered or unexported methods
}
type CreatePetReq ¶
type CreatePetReq struct { Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` Categories []int `json:"categories"` Owner int `json:"owner"` Rescuer []int `json:"rescuer"` Friends []int `json:"friends"` }
func (*CreatePetReq) Decode ¶
func (s *CreatePetReq) Decode(d *jx.Decoder) error
Decode decodes CreatePetReq from json.
func (*CreatePetReq) Encode ¶
func (s *CreatePetReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatePetReq) GetBirthday ¶
func (s *CreatePetReq) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*CreatePetReq) GetCategories ¶
func (s *CreatePetReq) GetCategories() []int
GetCategories returns the value of Categories.
func (*CreatePetReq) GetFriends ¶
func (s *CreatePetReq) GetFriends() []int
GetFriends returns the value of Friends.
func (*CreatePetReq) GetHeight ¶
func (s *CreatePetReq) GetHeight() OptInt
GetHeight returns the value of Height.
func (*CreatePetReq) GetName ¶
func (s *CreatePetReq) GetName() string
GetName returns the value of Name.
func (*CreatePetReq) GetOwner ¶
func (s *CreatePetReq) GetOwner() int
GetOwner returns the value of Owner.
func (*CreatePetReq) GetRescuer ¶
func (s *CreatePetReq) GetRescuer() []int
GetRescuer returns the value of Rescuer.
func (*CreatePetReq) GetTagID ¶
func (s *CreatePetReq) GetTagID() []byte
GetTagID returns the value of TagID.
func (*CreatePetReq) GetWeight ¶
func (s *CreatePetReq) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*CreatePetReq) MarshalJSON ¶
func (s *CreatePetReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatePetReq) SetBirthday ¶
func (s *CreatePetReq) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*CreatePetReq) SetCategories ¶
func (s *CreatePetReq) SetCategories(val []int)
SetCategories sets the value of Categories.
func (*CreatePetReq) SetFriends ¶
func (s *CreatePetReq) SetFriends(val []int)
SetFriends sets the value of Friends.
func (*CreatePetReq) SetHeight ¶
func (s *CreatePetReq) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*CreatePetReq) SetName ¶
func (s *CreatePetReq) SetName(val string)
SetName sets the value of Name.
func (*CreatePetReq) SetOwner ¶
func (s *CreatePetReq) SetOwner(val int)
SetOwner sets the value of Owner.
func (*CreatePetReq) SetRescuer ¶
func (s *CreatePetReq) SetRescuer(val []int)
SetRescuer sets the value of Rescuer.
func (*CreatePetReq) SetTagID ¶
func (s *CreatePetReq) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*CreatePetReq) SetWeight ¶
func (s *CreatePetReq) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*CreatePetReq) UnmarshalJSON ¶
func (s *CreatePetReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreatePetRes ¶
type CreatePetRes interface {
// contains filtered or unexported methods
}
type CreateUserReq ¶
type CreateUserReq struct { Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed CreateUserReqFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor CreateUserReqFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptCreateUserReqFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptCreateUserReqFavoriteFishBreed `json:"favorite_fish_breed"` Pets []int `json:"pets"` AnimalsSaved []int `json:"animals_saved"` BestFriend OptInt `json:"best_friend"` FavoriteHat OptInt `json:"favorite_hat"` }
func (*CreateUserReq) Decode ¶
func (s *CreateUserReq) Decode(d *jx.Decoder) error
Decode decodes CreateUserReq from json.
func (*CreateUserReq) Encode ¶
func (s *CreateUserReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateUserReq) GetAge ¶
func (s *CreateUserReq) GetAge() int64
GetAge returns the value of Age.
func (*CreateUserReq) GetAnimalsSaved ¶
func (s *CreateUserReq) GetAnimalsSaved() []int
GetAnimalsSaved returns the value of AnimalsSaved.
func (*CreateUserReq) GetBestFriend ¶
func (s *CreateUserReq) GetBestFriend() OptInt
GetBestFriend returns the value of BestFriend.
func (*CreateUserReq) GetFavoriteCatBreed ¶
func (s *CreateUserReq) GetFavoriteCatBreed() CreateUserReqFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*CreateUserReq) GetFavoriteColor ¶
func (s *CreateUserReq) GetFavoriteColor() CreateUserReqFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*CreateUserReq) GetFavoriteDogBreed ¶
func (s *CreateUserReq) GetFavoriteDogBreed() OptCreateUserReqFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*CreateUserReq) GetFavoriteFishBreed ¶
func (s *CreateUserReq) GetFavoriteFishBreed() OptCreateUserReqFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*CreateUserReq) GetFavoriteHat ¶
func (s *CreateUserReq) GetFavoriteHat() OptInt
GetFavoriteHat returns the value of FavoriteHat.
func (*CreateUserReq) GetHeight ¶
func (s *CreateUserReq) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*CreateUserReq) GetName ¶
func (s *CreateUserReq) GetName() string
GetName returns the value of Name.
func (*CreateUserReq) GetPets ¶
func (s *CreateUserReq) GetPets() []int
GetPets returns the value of Pets.
func (*CreateUserReq) MarshalJSON ¶
func (s *CreateUserReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateUserReq) SetAge ¶
func (s *CreateUserReq) SetAge(val int64)
SetAge sets the value of Age.
func (*CreateUserReq) SetAnimalsSaved ¶
func (s *CreateUserReq) SetAnimalsSaved(val []int)
SetAnimalsSaved sets the value of AnimalsSaved.
func (*CreateUserReq) SetBestFriend ¶
func (s *CreateUserReq) SetBestFriend(val OptInt)
SetBestFriend sets the value of BestFriend.
func (*CreateUserReq) SetFavoriteCatBreed ¶
func (s *CreateUserReq) SetFavoriteCatBreed(val CreateUserReqFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*CreateUserReq) SetFavoriteColor ¶
func (s *CreateUserReq) SetFavoriteColor(val CreateUserReqFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*CreateUserReq) SetFavoriteDogBreed ¶
func (s *CreateUserReq) SetFavoriteDogBreed(val OptCreateUserReqFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*CreateUserReq) SetFavoriteFishBreed ¶
func (s *CreateUserReq) SetFavoriteFishBreed(val OptCreateUserReqFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*CreateUserReq) SetFavoriteHat ¶
func (s *CreateUserReq) SetFavoriteHat(val OptInt)
SetFavoriteHat sets the value of FavoriteHat.
func (*CreateUserReq) SetHeight ¶
func (s *CreateUserReq) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*CreateUserReq) SetName ¶
func (s *CreateUserReq) SetName(val string)
SetName sets the value of Name.
func (*CreateUserReq) SetPets ¶
func (s *CreateUserReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreateUserReq) UnmarshalJSON ¶
func (s *CreateUserReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateUserReq) Validate ¶
func (s *CreateUserReq) Validate() error
type CreateUserReqFavoriteCatBreed ¶
type CreateUserReqFavoriteCatBreed string
const ( CreateUserReqFavoriteCatBreedSiamese CreateUserReqFavoriteCatBreed = "siamese" CreateUserReqFavoriteCatBreedBengal CreateUserReqFavoriteCatBreed = "bengal" CreateUserReqFavoriteCatBreedLion CreateUserReqFavoriteCatBreed = "lion" CreateUserReqFavoriteCatBreedTiger CreateUserReqFavoriteCatBreed = "tiger" CreateUserReqFavoriteCatBreedLeopard CreateUserReqFavoriteCatBreed = "leopard" CreateUserReqFavoriteCatBreedOther CreateUserReqFavoriteCatBreed = "other" )
func (*CreateUserReqFavoriteCatBreed) Decode ¶
func (s *CreateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteCatBreed from json.
func (CreateUserReqFavoriteCatBreed) Encode ¶
func (s CreateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteCatBreed as json.
func (CreateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateUserReqFavoriteCatBreed) MarshalText ¶
func (s CreateUserReqFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateUserReqFavoriteCatBreed) UnmarshalText ¶
func (s *CreateUserReqFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateUserReqFavoriteCatBreed) Validate ¶
func (s CreateUserReqFavoriteCatBreed) Validate() error
type CreateUserReqFavoriteColor ¶
type CreateUserReqFavoriteColor string
const ( CreateUserReqFavoriteColorRed CreateUserReqFavoriteColor = "red" CreateUserReqFavoriteColorGreen CreateUserReqFavoriteColor = "green" CreateUserReqFavoriteColorBlue CreateUserReqFavoriteColor = "blue" )
func (*CreateUserReqFavoriteColor) Decode ¶
func (s *CreateUserReqFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteColor from json.
func (CreateUserReqFavoriteColor) Encode ¶
func (s CreateUserReqFavoriteColor) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteColor as json.
func (CreateUserReqFavoriteColor) MarshalJSON ¶
func (s CreateUserReqFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateUserReqFavoriteColor) MarshalText ¶
func (s CreateUserReqFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateUserReqFavoriteColor) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateUserReqFavoriteColor) UnmarshalText ¶
func (s *CreateUserReqFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateUserReqFavoriteColor) Validate ¶
func (s CreateUserReqFavoriteColor) Validate() error
type CreateUserReqFavoriteDogBreed ¶
type CreateUserReqFavoriteDogBreed string
const (
CreateUserReqFavoriteDogBreedKuro CreateUserReqFavoriteDogBreed = "Kuro"
)
func (*CreateUserReqFavoriteDogBreed) Decode ¶
func (s *CreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteDogBreed from json.
func (CreateUserReqFavoriteDogBreed) Encode ¶
func (s CreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteDogBreed as json.
func (CreateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateUserReqFavoriteDogBreed) MarshalText ¶
func (s CreateUserReqFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateUserReqFavoriteDogBreed) UnmarshalText ¶
func (s *CreateUserReqFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateUserReqFavoriteDogBreed) Validate ¶
func (s CreateUserReqFavoriteDogBreed) Validate() error
type CreateUserReqFavoriteFishBreed ¶
type CreateUserReqFavoriteFishBreed string
const ( CreateUserReqFavoriteFishBreedGold CreateUserReqFavoriteFishBreed = "gold" CreateUserReqFavoriteFishBreedKoi CreateUserReqFavoriteFishBreed = "koi" CreateUserReqFavoriteFishBreedShark CreateUserReqFavoriteFishBreed = "shark" )
func (*CreateUserReqFavoriteFishBreed) Decode ¶
func (s *CreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteFishBreed from json.
func (CreateUserReqFavoriteFishBreed) Encode ¶
func (s CreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteFishBreed as json.
func (CreateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateUserReqFavoriteFishBreed) MarshalText ¶
func (s CreateUserReqFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateUserReqFavoriteFishBreed) UnmarshalText ¶
func (s *CreateUserReqFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateUserReqFavoriteFishBreed) Validate ¶
func (s CreateUserReqFavoriteFishBreed) Validate() error
type CreateUserRes ¶
type CreateUserRes interface {
// contains filtered or unexported methods
}
type DeleteAllTypesNoContent ¶
type DeleteAllTypesNoContent struct{}
DeleteAllTypesNoContent is response for DeleteAllTypes operation.
type DeleteAllTypesParams ¶
type DeleteAllTypesParams struct { // ID of the AllTypes. ID int64 }
DeleteAllTypesParams is parameters of deleteAllTypes operation.
type DeleteAllTypesRes ¶
type DeleteAllTypesRes interface {
// contains filtered or unexported methods
}
type DeleteCategoryNoContent ¶
type DeleteCategoryNoContent struct{}
DeleteCategoryNoContent is response for DeleteCategory operation.
type DeleteCategoryParams ¶
type DeleteCategoryParams struct { // ID of the Category. ID int }
DeleteCategoryParams is parameters of deleteCategory operation.
type DeleteCategoryRes ¶
type DeleteCategoryRes interface {
// contains filtered or unexported methods
}
type DeleteHatNoContent ¶
type DeleteHatNoContent struct{}
DeleteHatNoContent is response for DeleteHat operation.
type DeleteHatParams ¶
type DeleteHatParams struct { // ID of the Hat. ID int }
DeleteHatParams is parameters of deleteHat operation.
type DeleteHatRes ¶
type DeleteHatRes interface {
// contains filtered or unexported methods
}
type DeletePetNoContent ¶
type DeletePetNoContent struct{}
DeletePetNoContent is response for DeletePet operation.
type DeletePetParams ¶
type DeletePetParams struct { // ID of the Pet. ID int }
DeletePetParams is parameters of deletePet operation.
type DeletePetRes ¶
type DeletePetRes interface {
// contains filtered or unexported methods
}
type DeleteUserNoContent ¶
type DeleteUserNoContent struct{}
DeleteUserNoContent is response for DeleteUser operation.
type DeleteUserParams ¶
type DeleteUserParams struct { // ID of the User. ID int }
DeleteUserParams is parameters of deleteUser operation.
type DeleteUserRes ¶
type DeleteUserRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface { // CreateAllTypes implements createAllTypes operation. // // Creates a new AllTypes and persists it to storage. // // POST /all-types CreateAllTypes(ctx context.Context, req *CreateAllTypesReq) (CreateAllTypesRes, error) // CreateCategory implements createCategory operation. // // Creates a new Category and persists it to storage. // // POST /categories CreateCategory(ctx context.Context, req *CreateCategoryReq) (CreateCategoryRes, error) // CreateHat implements createHat operation. // // Creates a new Hat and persists it to storage. // // POST /hats CreateHat(ctx context.Context, req *CreateHatReq) (CreateHatRes, error) // CreatePet implements createPet operation. // // Creates a new Pet and persists it to storage. // // POST /pets CreatePet(ctx context.Context, req *CreatePetReq) (CreatePetRes, error) // CreateUser implements createUser operation. // // Creates a new User and persists it to storage. // // POST /users CreateUser(ctx context.Context, req *CreateUserReq) (CreateUserRes, error) // DeleteAllTypes implements deleteAllTypes operation. // // Deletes the AllTypes with the requested ID. // // DELETE /all-types/{id} DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error) // DeleteCategory implements deleteCategory operation. // // Deletes the Category with the requested ID. // // DELETE /categories/{id} DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error) // DeleteHat implements deleteHat operation. // // Deletes the Hat with the requested ID. // // DELETE /hats/{id} DeleteHat(ctx context.Context, params DeleteHatParams) (DeleteHatRes, error) // DeletePet implements deletePet operation. // // Deletes the Pet with the requested ID. // // DELETE /pets/{id} DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error) // DeleteUser implements deleteUser operation. // // Deletes the User with the requested ID. // // DELETE /users/{id} DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error) // ListAllTypes implements listAllTypes operation. // // List AllTypes. // // GET /all-types ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error) // ListCategory implements listCategory operation. // // List Categories. // // GET /categories ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error) // ListCategoryPets implements listCategoryPets operation. // // List attached Pets. // // GET /categories/{id}/pets ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error) // ListHat implements listHat operation. // // List Hats. // // GET /hats ListHat(ctx context.Context, params ListHatParams) (ListHatRes, error) // ListPet implements listPet operation. // // List Pets. // // GET /pets ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error) // ListPetCategories implements listPetCategories operation. // // List attached Categories. // // GET /pets/{id}/categories ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error) // ListPetFriends implements listPetFriends operation. // // List attached Friends. // // GET /pets/{id}/friends ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error) // ListPetRescuer implements listPetRescuer operation. // // List attached Rescuers. // // GET /pets/{id}/rescuer ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (ListPetRescuerRes, error) // ListUser implements listUser operation. // // List Users. // // GET /users ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error) // ListUserAnimalsSaved implements listUserAnimalsSaved operation. // // List attached AnimalsSaveds. // // GET /users/{id}/animals-saved ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (ListUserAnimalsSavedRes, error) // ListUserPets implements listUserPets operation. // // List attached Pets. // // GET /users/{id}/pets ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error) // ReadAllTypes implements readAllTypes operation. // // Finds the AllTypes with the requested ID and returns it. // // GET /all-types/{id} ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error) // ReadCategory implements readCategory operation. // // Finds the Category with the requested ID and returns it. // // GET /categories/{id} ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error) // ReadHat implements readHat operation. // // Finds the Hat with the requested ID and returns it. // // GET /hats/{id} ReadHat(ctx context.Context, params ReadHatParams) (ReadHatRes, error) // ReadHatWearer implements readHatWearer operation. // // Find the attached User of the Hat with the given ID. // // GET /hats/{id}/wearer ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (ReadHatWearerRes, error) // ReadPet implements readPet operation. // // Finds the Pet with the requested ID and returns it. // // GET /pets/{id} ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error) // ReadPetOwner implements readPetOwner operation. // // Find the attached User of the Pet with the given ID. // // GET /pets/{id}/owner ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error) // ReadUser implements readUser operation. // // Finds the User with the requested ID and returns it. // // GET /users/{id} ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error) // ReadUserBestFriend implements readUserBestFriend operation. // // Find the attached User of the User with the given ID. // // GET /users/{id}/best-friend ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error) // ReadUserFavoriteHat implements readUserFavoriteHat operation. // // Find the attached Hat of the User with the given ID. // // GET /users/{id}/favorite-hat ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (ReadUserFavoriteHatRes, error) // UpdateAllTypes implements updateAllTypes operation. // // Updates a AllTypes and persists changes to storage. // // PATCH /all-types/{id} UpdateAllTypes(ctx context.Context, req *UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error) // UpdateCategory implements updateCategory operation. // // Updates a Category and persists changes to storage. // // PATCH /categories/{id} UpdateCategory(ctx context.Context, req *UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error) // UpdateHat implements updateHat operation. // // Updates a Hat and persists changes to storage. // // PATCH /hats/{id} UpdateHat(ctx context.Context, req *UpdateHatReq, params UpdateHatParams) (UpdateHatRes, error) // UpdatePet implements updatePet operation. // // Updates a Pet and persists changes to storage. // // PATCH /pets/{id} UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error) // UpdateUser implements updateUser operation. // // Updates a User and persists changes to storage. // // PATCH /users/{id} UpdateUser(ctx context.Context, req *UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type HatCreate ¶
type HatCreate struct { ID int `json:"id"` Name string `json:"name"` Type HatCreateType `json:"type"` }
Ref: #/components/schemas/HatCreate
func NewHatCreate ¶
func NewHatCreates ¶
func (*HatCreate) GetType ¶
func (s *HatCreate) GetType() HatCreateType
GetType returns the value of Type.
func (*HatCreate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HatCreate) SetType ¶
func (s *HatCreate) SetType(val HatCreateType)
SetType sets the value of Type.
func (*HatCreate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HatCreateType ¶
type HatCreateType string
const ( HatCreateTypeDad HatCreateType = "dad" HatCreateTypeTrucker HatCreateType = "trucker" HatCreateTypeSnapback HatCreateType = "snapback" )
func (*HatCreateType) Decode ¶
func (s *HatCreateType) Decode(d *jx.Decoder) error
Decode decodes HatCreateType from json.
func (HatCreateType) Encode ¶
func (s HatCreateType) Encode(e *jx.Encoder)
Encode encodes HatCreateType as json.
func (HatCreateType) MarshalJSON ¶
func (s HatCreateType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatCreateType) MarshalText ¶
func (s HatCreateType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatCreateType) UnmarshalJSON ¶
func (s *HatCreateType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatCreateType) UnmarshalText ¶
func (s *HatCreateType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatCreateType) Validate ¶
func (s HatCreateType) Validate() error
type HatList ¶
type HatList struct { ID int `json:"id"` Name string `json:"name"` Type HatListType `json:"type"` }
Ref: #/components/schemas/HatList
func NewHatList ¶
func NewHatLists ¶
func (*HatList) GetType ¶
func (s *HatList) GetType() HatListType
GetType returns the value of Type.
func (*HatList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HatList) SetType ¶
func (s *HatList) SetType(val HatListType)
SetType sets the value of Type.
func (*HatList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HatListType ¶
type HatListType string
const ( HatListTypeDad HatListType = "dad" HatListTypeTrucker HatListType = "trucker" HatListTypeSnapback HatListType = "snapback" )
func (*HatListType) Decode ¶
func (s *HatListType) Decode(d *jx.Decoder) error
Decode decodes HatListType from json.
func (HatListType) Encode ¶
func (s HatListType) Encode(e *jx.Encoder)
Encode encodes HatListType as json.
func (HatListType) MarshalJSON ¶
func (s HatListType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatListType) MarshalText ¶
func (s HatListType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatListType) UnmarshalJSON ¶
func (s *HatListType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatListType) UnmarshalText ¶
func (s *HatListType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatListType) Validate ¶
func (s HatListType) Validate() error
type HatRead ¶
type HatRead struct { ID int `json:"id"` Name string `json:"name"` Type HatReadType `json:"type"` }
Ref: #/components/schemas/HatRead
func NewHatRead ¶
func NewHatReads ¶
func (*HatRead) GetType ¶
func (s *HatRead) GetType() HatReadType
GetType returns the value of Type.
func (*HatRead) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HatRead) SetType ¶
func (s *HatRead) SetType(val HatReadType)
SetType sets the value of Type.
func (*HatRead) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HatReadType ¶
type HatReadType string
const ( HatReadTypeDad HatReadType = "dad" HatReadTypeTrucker HatReadType = "trucker" HatReadTypeSnapback HatReadType = "snapback" )
func (*HatReadType) Decode ¶
func (s *HatReadType) Decode(d *jx.Decoder) error
Decode decodes HatReadType from json.
func (HatReadType) Encode ¶
func (s HatReadType) Encode(e *jx.Encoder)
Encode encodes HatReadType as json.
func (HatReadType) MarshalJSON ¶
func (s HatReadType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatReadType) MarshalText ¶
func (s HatReadType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatReadType) UnmarshalJSON ¶
func (s *HatReadType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatReadType) UnmarshalText ¶
func (s *HatReadType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatReadType) Validate ¶
func (s HatReadType) Validate() error
type HatUpdate ¶
type HatUpdate struct { ID int `json:"id"` Name string `json:"name"` Type HatUpdateType `json:"type"` }
Ref: #/components/schemas/HatUpdate
func NewHatUpdate ¶
func NewHatUpdates ¶
func (*HatUpdate) GetType ¶
func (s *HatUpdate) GetType() HatUpdateType
GetType returns the value of Type.
func (*HatUpdate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HatUpdate) SetType ¶
func (s *HatUpdate) SetType(val HatUpdateType)
SetType sets the value of Type.
func (*HatUpdate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HatUpdateType ¶
type HatUpdateType string
const ( HatUpdateTypeDad HatUpdateType = "dad" HatUpdateTypeTrucker HatUpdateType = "trucker" HatUpdateTypeSnapback HatUpdateType = "snapback" )
func (*HatUpdateType) Decode ¶
func (s *HatUpdateType) Decode(d *jx.Decoder) error
Decode decodes HatUpdateType from json.
func (HatUpdateType) Encode ¶
func (s HatUpdateType) Encode(e *jx.Encoder)
Encode encodes HatUpdateType as json.
func (HatUpdateType) MarshalJSON ¶
func (s HatUpdateType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatUpdateType) MarshalText ¶
func (s HatUpdateType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatUpdateType) UnmarshalJSON ¶
func (s *HatUpdateType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatUpdateType) UnmarshalText ¶
func (s *HatUpdateType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatUpdateType) Validate ¶
func (s HatUpdateType) Validate() error
type HatWearerRead ¶
type HatWearerRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed HatWearerReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor HatWearerReadFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptHatWearerReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptHatWearerReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/Hat_WearerRead
func NewHatWearerRead ¶
func NewHatWearerRead(e *ent.User) *HatWearerRead
func NewHatWearerReads ¶
func NewHatWearerReads(es []*ent.User) []HatWearerRead
func (*HatWearerRead) Decode ¶
func (s *HatWearerRead) Decode(d *jx.Decoder) error
Decode decodes HatWearerRead from json.
func (*HatWearerRead) Elem ¶
func (u *HatWearerRead) Elem() HatWearerRead
func (*HatWearerRead) Encode ¶
func (s *HatWearerRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*HatWearerRead) GetAge ¶
func (s *HatWearerRead) GetAge() int64
GetAge returns the value of Age.
func (*HatWearerRead) GetFavoriteCatBreed ¶
func (s *HatWearerRead) GetFavoriteCatBreed() HatWearerReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*HatWearerRead) GetFavoriteColor ¶
func (s *HatWearerRead) GetFavoriteColor() HatWearerReadFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*HatWearerRead) GetFavoriteDogBreed ¶
func (s *HatWearerRead) GetFavoriteDogBreed() OptHatWearerReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*HatWearerRead) GetFavoriteFishBreed ¶
func (s *HatWearerRead) GetFavoriteFishBreed() OptHatWearerReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*HatWearerRead) GetHeight ¶
func (s *HatWearerRead) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*HatWearerRead) GetName ¶
func (s *HatWearerRead) GetName() string
GetName returns the value of Name.
func (*HatWearerRead) MarshalJSON ¶
func (s *HatWearerRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HatWearerRead) SetAge ¶
func (s *HatWearerRead) SetAge(val int64)
SetAge sets the value of Age.
func (*HatWearerRead) SetFavoriteCatBreed ¶
func (s *HatWearerRead) SetFavoriteCatBreed(val HatWearerReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*HatWearerRead) SetFavoriteColor ¶
func (s *HatWearerRead) SetFavoriteColor(val HatWearerReadFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*HatWearerRead) SetFavoriteDogBreed ¶
func (s *HatWearerRead) SetFavoriteDogBreed(val OptHatWearerReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*HatWearerRead) SetFavoriteFishBreed ¶
func (s *HatWearerRead) SetFavoriteFishBreed(val OptHatWearerReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*HatWearerRead) SetHeight ¶
func (s *HatWearerRead) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*HatWearerRead) SetName ¶
func (s *HatWearerRead) SetName(val string)
SetName sets the value of Name.
func (*HatWearerRead) UnmarshalJSON ¶
func (s *HatWearerRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatWearerRead) Validate ¶
func (s *HatWearerRead) Validate() error
type HatWearerReadFavoriteCatBreed ¶
type HatWearerReadFavoriteCatBreed string
const ( HatWearerReadFavoriteCatBreedSiamese HatWearerReadFavoriteCatBreed = "siamese" HatWearerReadFavoriteCatBreedBengal HatWearerReadFavoriteCatBreed = "bengal" HatWearerReadFavoriteCatBreedLion HatWearerReadFavoriteCatBreed = "lion" HatWearerReadFavoriteCatBreedTiger HatWearerReadFavoriteCatBreed = "tiger" HatWearerReadFavoriteCatBreedLeopard HatWearerReadFavoriteCatBreed = "leopard" HatWearerReadFavoriteCatBreedOther HatWearerReadFavoriteCatBreed = "other" )
func (*HatWearerReadFavoriteCatBreed) Decode ¶
func (s *HatWearerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteCatBreed from json.
func (HatWearerReadFavoriteCatBreed) Encode ¶
func (s HatWearerReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteCatBreed as json.
func (HatWearerReadFavoriteCatBreed) MarshalJSON ¶
func (s HatWearerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatWearerReadFavoriteCatBreed) MarshalText ¶
func (s HatWearerReadFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatWearerReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *HatWearerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatWearerReadFavoriteCatBreed) UnmarshalText ¶
func (s *HatWearerReadFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatWearerReadFavoriteCatBreed) Validate ¶
func (s HatWearerReadFavoriteCatBreed) Validate() error
type HatWearerReadFavoriteColor ¶
type HatWearerReadFavoriteColor string
const ( HatWearerReadFavoriteColorRed HatWearerReadFavoriteColor = "red" HatWearerReadFavoriteColorGreen HatWearerReadFavoriteColor = "green" HatWearerReadFavoriteColorBlue HatWearerReadFavoriteColor = "blue" )
func (*HatWearerReadFavoriteColor) Decode ¶
func (s *HatWearerReadFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteColor from json.
func (HatWearerReadFavoriteColor) Encode ¶
func (s HatWearerReadFavoriteColor) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteColor as json.
func (HatWearerReadFavoriteColor) MarshalJSON ¶
func (s HatWearerReadFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatWearerReadFavoriteColor) MarshalText ¶
func (s HatWearerReadFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatWearerReadFavoriteColor) UnmarshalJSON ¶
func (s *HatWearerReadFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatWearerReadFavoriteColor) UnmarshalText ¶
func (s *HatWearerReadFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatWearerReadFavoriteColor) Validate ¶
func (s HatWearerReadFavoriteColor) Validate() error
type HatWearerReadFavoriteDogBreed ¶
type HatWearerReadFavoriteDogBreed string
const (
HatWearerReadFavoriteDogBreedKuro HatWearerReadFavoriteDogBreed = "Kuro"
)
func (*HatWearerReadFavoriteDogBreed) Decode ¶
func (s *HatWearerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteDogBreed from json.
func (HatWearerReadFavoriteDogBreed) Encode ¶
func (s HatWearerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteDogBreed as json.
func (HatWearerReadFavoriteDogBreed) MarshalJSON ¶
func (s HatWearerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatWearerReadFavoriteDogBreed) MarshalText ¶
func (s HatWearerReadFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatWearerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *HatWearerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatWearerReadFavoriteDogBreed) UnmarshalText ¶
func (s *HatWearerReadFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatWearerReadFavoriteDogBreed) Validate ¶
func (s HatWearerReadFavoriteDogBreed) Validate() error
type HatWearerReadFavoriteFishBreed ¶
type HatWearerReadFavoriteFishBreed string
const ( HatWearerReadFavoriteFishBreedGold HatWearerReadFavoriteFishBreed = "gold" HatWearerReadFavoriteFishBreedKoi HatWearerReadFavoriteFishBreed = "koi" HatWearerReadFavoriteFishBreedShark HatWearerReadFavoriteFishBreed = "shark" )
func (*HatWearerReadFavoriteFishBreed) Decode ¶
func (s *HatWearerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteFishBreed from json.
func (HatWearerReadFavoriteFishBreed) Encode ¶
func (s HatWearerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteFishBreed as json.
func (HatWearerReadFavoriteFishBreed) MarshalJSON ¶
func (s HatWearerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HatWearerReadFavoriteFishBreed) MarshalText ¶
func (s HatWearerReadFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HatWearerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *HatWearerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HatWearerReadFavoriteFishBreed) UnmarshalText ¶
func (s *HatWearerReadFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HatWearerReadFavoriteFishBreed) Validate ¶
func (s HatWearerReadFavoriteFishBreed) Validate() error
type ListAllTypesOKApplicationJSON ¶
type ListAllTypesOKApplicationJSON []AllTypesList
func (*ListAllTypesOKApplicationJSON) Decode ¶
func (s *ListAllTypesOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListAllTypesOKApplicationJSON from json.
func (ListAllTypesOKApplicationJSON) Encode ¶
func (s ListAllTypesOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListAllTypesOKApplicationJSON as json.
func (ListAllTypesOKApplicationJSON) MarshalJSON ¶
func (s ListAllTypesOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListAllTypesOKApplicationJSON) UnmarshalJSON ¶
func (s *ListAllTypesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListAllTypesOKApplicationJSON) Validate ¶
func (s ListAllTypesOKApplicationJSON) Validate() error
type ListAllTypesParams ¶
type ListAllTypesParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListAllTypesParams is parameters of listAllTypes operation.
type ListAllTypesRes ¶
type ListAllTypesRes interface {
// contains filtered or unexported methods
}
type ListCategoryOKApplicationJSON ¶
type ListCategoryOKApplicationJSON []CategoryList
func (*ListCategoryOKApplicationJSON) Decode ¶
func (s *ListCategoryOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListCategoryOKApplicationJSON from json.
func (ListCategoryOKApplicationJSON) Encode ¶
func (s ListCategoryOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListCategoryOKApplicationJSON as json.
func (ListCategoryOKApplicationJSON) MarshalJSON ¶
func (s ListCategoryOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListCategoryOKApplicationJSON) UnmarshalJSON ¶
func (s *ListCategoryOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListCategoryOKApplicationJSON) Validate ¶
func (s ListCategoryOKApplicationJSON) Validate() error
type ListCategoryParams ¶
type ListCategoryParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListCategoryParams is parameters of listCategory operation.
type ListCategoryPetsOKApplicationJSON ¶
type ListCategoryPetsOKApplicationJSON []CategoryPetsList
func (*ListCategoryPetsOKApplicationJSON) Decode ¶
func (s *ListCategoryPetsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListCategoryPetsOKApplicationJSON from json.
func (ListCategoryPetsOKApplicationJSON) Encode ¶
func (s ListCategoryPetsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListCategoryPetsOKApplicationJSON as json.
func (ListCategoryPetsOKApplicationJSON) MarshalJSON ¶
func (s ListCategoryPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListCategoryPetsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListCategoryPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListCategoryPetsOKApplicationJSON) Validate ¶
func (s ListCategoryPetsOKApplicationJSON) Validate() error
type ListCategoryPetsParams ¶
type ListCategoryPetsParams struct { // ID of the Category. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListCategoryPetsParams is parameters of listCategoryPets operation.
type ListCategoryPetsRes ¶
type ListCategoryPetsRes interface {
// contains filtered or unexported methods
}
type ListCategoryRes ¶
type ListCategoryRes interface {
// contains filtered or unexported methods
}
type ListHatOKApplicationJSON ¶
type ListHatOKApplicationJSON []HatList
func (*ListHatOKApplicationJSON) Decode ¶
func (s *ListHatOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListHatOKApplicationJSON from json.
func (ListHatOKApplicationJSON) Encode ¶
func (s ListHatOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListHatOKApplicationJSON as json.
func (ListHatOKApplicationJSON) MarshalJSON ¶
func (s ListHatOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListHatOKApplicationJSON) UnmarshalJSON ¶
func (s *ListHatOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListHatOKApplicationJSON) Validate ¶
func (s ListHatOKApplicationJSON) Validate() error
type ListHatParams ¶
type ListHatParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListHatParams is parameters of listHat operation.
type ListHatRes ¶
type ListHatRes interface {
// contains filtered or unexported methods
}
type ListPetCategoriesOKApplicationJSON ¶
type ListPetCategoriesOKApplicationJSON []PetCategoriesList
func (*ListPetCategoriesOKApplicationJSON) Decode ¶
func (s *ListPetCategoriesOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetCategoriesOKApplicationJSON from json.
func (ListPetCategoriesOKApplicationJSON) Encode ¶
func (s ListPetCategoriesOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetCategoriesOKApplicationJSON as json.
func (ListPetCategoriesOKApplicationJSON) MarshalJSON ¶
func (s ListPetCategoriesOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetCategoriesOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetCategoriesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetCategoriesOKApplicationJSON) Validate ¶
func (s ListPetCategoriesOKApplicationJSON) Validate() error
type ListPetCategoriesParams ¶
type ListPetCategoriesParams struct { // ID of the Pet. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListPetCategoriesParams is parameters of listPetCategories operation.
type ListPetCategoriesRes ¶
type ListPetCategoriesRes interface {
// contains filtered or unexported methods
}
type ListPetFriendsOKApplicationJSON ¶
type ListPetFriendsOKApplicationJSON []PetFriendsList
func (*ListPetFriendsOKApplicationJSON) Decode ¶
func (s *ListPetFriendsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetFriendsOKApplicationJSON from json.
func (ListPetFriendsOKApplicationJSON) Encode ¶
func (s ListPetFriendsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetFriendsOKApplicationJSON as json.
func (ListPetFriendsOKApplicationJSON) MarshalJSON ¶
func (s ListPetFriendsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetFriendsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetFriendsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetFriendsOKApplicationJSON) Validate ¶
func (s ListPetFriendsOKApplicationJSON) Validate() error
type ListPetFriendsParams ¶
type ListPetFriendsParams struct { // ID of the Pet. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListPetFriendsParams is parameters of listPetFriends operation.
type ListPetFriendsRes ¶
type ListPetFriendsRes interface {
// contains filtered or unexported methods
}
type ListPetOKApplicationJSON ¶
type ListPetOKApplicationJSON []PetList
func (*ListPetOKApplicationJSON) Decode ¶
func (s *ListPetOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetOKApplicationJSON from json.
func (ListPetOKApplicationJSON) Encode ¶
func (s ListPetOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetOKApplicationJSON as json.
func (ListPetOKApplicationJSON) MarshalJSON ¶
func (s ListPetOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetOKApplicationJSON) Validate ¶
func (s ListPetOKApplicationJSON) Validate() error
type ListPetParams ¶
type ListPetParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListPetParams is parameters of listPet operation.
type ListPetRes ¶
type ListPetRes interface {
// contains filtered or unexported methods
}
type ListPetRescuerOKApplicationJSON ¶
type ListPetRescuerOKApplicationJSON []PetRescuerList
func (*ListPetRescuerOKApplicationJSON) Decode ¶
func (s *ListPetRescuerOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetRescuerOKApplicationJSON from json.
func (ListPetRescuerOKApplicationJSON) Encode ¶
func (s ListPetRescuerOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetRescuerOKApplicationJSON as json.
func (ListPetRescuerOKApplicationJSON) MarshalJSON ¶
func (s ListPetRescuerOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetRescuerOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetRescuerOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetRescuerOKApplicationJSON) Validate ¶
func (s ListPetRescuerOKApplicationJSON) Validate() error
type ListPetRescuerParams ¶
type ListPetRescuerParams struct { // ID of the Pet. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListPetRescuerParams is parameters of listPetRescuer operation.
type ListPetRescuerRes ¶
type ListPetRescuerRes interface {
// contains filtered or unexported methods
}
type ListUserAnimalsSavedOKApplicationJSON ¶
type ListUserAnimalsSavedOKApplicationJSON []UserAnimalsSavedList
func (*ListUserAnimalsSavedOKApplicationJSON) Decode ¶
func (s *ListUserAnimalsSavedOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListUserAnimalsSavedOKApplicationJSON from json.
func (ListUserAnimalsSavedOKApplicationJSON) Encode ¶
func (s ListUserAnimalsSavedOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListUserAnimalsSavedOKApplicationJSON as json.
func (ListUserAnimalsSavedOKApplicationJSON) MarshalJSON ¶
func (s ListUserAnimalsSavedOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListUserAnimalsSavedOKApplicationJSON) UnmarshalJSON ¶
func (s *ListUserAnimalsSavedOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListUserAnimalsSavedOKApplicationJSON) Validate ¶
func (s ListUserAnimalsSavedOKApplicationJSON) Validate() error
type ListUserAnimalsSavedParams ¶
type ListUserAnimalsSavedParams struct { // ID of the User. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListUserAnimalsSavedParams is parameters of listUserAnimalsSaved operation.
type ListUserAnimalsSavedRes ¶
type ListUserAnimalsSavedRes interface {
// contains filtered or unexported methods
}
type ListUserOKApplicationJSON ¶
type ListUserOKApplicationJSON []UserList
func (*ListUserOKApplicationJSON) Decode ¶
func (s *ListUserOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListUserOKApplicationJSON from json.
func (ListUserOKApplicationJSON) Encode ¶
func (s ListUserOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListUserOKApplicationJSON as json.
func (ListUserOKApplicationJSON) MarshalJSON ¶
func (s ListUserOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListUserOKApplicationJSON) UnmarshalJSON ¶
func (s *ListUserOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListUserOKApplicationJSON) Validate ¶
func (s ListUserOKApplicationJSON) Validate() error
type ListUserParams ¶
type ListUserParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListUserParams is parameters of listUser operation.
type ListUserPetsOKApplicationJSON ¶
type ListUserPetsOKApplicationJSON []UserPetsList
func (*ListUserPetsOKApplicationJSON) Decode ¶
func (s *ListUserPetsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListUserPetsOKApplicationJSON from json.
func (ListUserPetsOKApplicationJSON) Encode ¶
func (s ListUserPetsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListUserPetsOKApplicationJSON as json.
func (ListUserPetsOKApplicationJSON) MarshalJSON ¶
func (s ListUserPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListUserPetsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListUserPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListUserPetsOKApplicationJSON) Validate ¶
func (s ListUserPetsOKApplicationJSON) Validate() error
type ListUserPetsParams ¶
type ListUserPetsParams struct { // ID of the User. ID int // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListUserPetsParams is parameters of listUserPets operation.
type ListUserPetsRes ¶
type ListUserPetsRes interface {
// contains filtered or unexported methods
}
type ListUserRes ¶
type ListUserRes interface {
// contains filtered or unexported methods
}
type OgentHandler ¶
type OgentHandler struct {
// contains filtered or unexported fields
}
OgentHandler implements the ogen generated Handler interface and uses Ent as data layer.
func NewOgentHandler ¶
func NewOgentHandler(c *ent.Client) *OgentHandler
NewOgentHandler returns a new OgentHandler.
func (*OgentHandler) CreateAllTypes ¶
func (h *OgentHandler) CreateAllTypes(ctx context.Context, req *CreateAllTypesReq) (CreateAllTypesRes, error)
CreateAllTypes handles POST /all-types-slice requests.
func (*OgentHandler) CreateCategory ¶
func (h *OgentHandler) CreateCategory(ctx context.Context, req *CreateCategoryReq) (CreateCategoryRes, error)
CreateCategory handles POST /categories requests.
func (*OgentHandler) CreateHat ¶
func (h *OgentHandler) CreateHat(ctx context.Context, req *CreateHatReq) (CreateHatRes, error)
CreateHat handles POST /hats requests.
func (*OgentHandler) CreatePet ¶
func (h *OgentHandler) CreatePet(ctx context.Context, req *CreatePetReq) (CreatePetRes, error)
CreatePet handles POST /pets requests.
func (*OgentHandler) CreateUser ¶
func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (CreateUserRes, error)
CreateUser handles POST /users requests.
func (*OgentHandler) DeleteAllTypes ¶
func (h *OgentHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
DeleteAllTypes handles DELETE /all-types-slice/{id} requests.
func (*OgentHandler) DeleteCategory ¶
func (h *OgentHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
DeleteCategory handles DELETE /categories/{id} requests.
func (*OgentHandler) DeleteHat ¶
func (h *OgentHandler) DeleteHat(ctx context.Context, params DeleteHatParams) (DeleteHatRes, error)
DeleteHat handles DELETE /hats/{id} requests.
func (*OgentHandler) DeletePet ¶
func (h *OgentHandler) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
DeletePet handles DELETE /pets/{id} requests.
func (*OgentHandler) DeleteUser ¶
func (h *OgentHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
DeleteUser handles DELETE /users/{id} requests.
func (*OgentHandler) ListAllTypes ¶
func (h *OgentHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
ListAllTypes handles GET /all-types-slice requests.
func (*OgentHandler) ListCategory ¶
func (h *OgentHandler) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
ListCategory handles GET /categories requests.
func (*OgentHandler) ListCategoryPets ¶
func (h *OgentHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
ListCategoryPets handles GET /categories/{id}/pets requests.
func (*OgentHandler) ListHat ¶
func (h *OgentHandler) ListHat(ctx context.Context, params ListHatParams) (ListHatRes, error)
ListHat handles GET /hats requests.
func (*OgentHandler) ListPet ¶
func (h *OgentHandler) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
ListPet handles GET /pets requests.
func (*OgentHandler) ListPetCategories ¶
func (h *OgentHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
ListPetCategories handles GET /pets/{id}/categories requests.
func (*OgentHandler) ListPetFriends ¶
func (h *OgentHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
ListPetFriends handles GET /pets/{id}/friends requests.
func (*OgentHandler) ListPetRescuer ¶
func (h *OgentHandler) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (ListPetRescuerRes, error)
ListPetRescuer handles GET /pets/{id}/rescuer requests.
func (*OgentHandler) ListUser ¶
func (h *OgentHandler) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
ListUser handles GET /users requests.
func (*OgentHandler) ListUserAnimalsSaved ¶
func (h *OgentHandler) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (ListUserAnimalsSavedRes, error)
ListUserAnimalsSaved handles GET /users/{id}/animals-saved requests.
func (*OgentHandler) ListUserPets ¶
func (h *OgentHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
ListUserPets handles GET /users/{id}/pets requests.
func (*OgentHandler) ReadAllTypes ¶
func (h *OgentHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
ReadAllTypes handles GET /all-types-slice/{id} requests.
func (*OgentHandler) ReadCategory ¶
func (h *OgentHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
ReadCategory handles GET /categories/{id} requests.
func (*OgentHandler) ReadHat ¶
func (h *OgentHandler) ReadHat(ctx context.Context, params ReadHatParams) (ReadHatRes, error)
ReadHat handles GET /hats/{id} requests.
func (*OgentHandler) ReadHatWearer ¶
func (h *OgentHandler) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (ReadHatWearerRes, error)
ReadHatWearer handles GET /hats/{id}/wearer requests.
func (*OgentHandler) ReadPet ¶
func (h *OgentHandler) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
ReadPet handles GET /pets/{id} requests.
func (*OgentHandler) ReadPetOwner ¶
func (h *OgentHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
ReadPetOwner handles GET /pets/{id}/owner requests.
func (*OgentHandler) ReadUser ¶
func (h *OgentHandler) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
ReadUser handles GET /users/{id} requests.
func (*OgentHandler) ReadUserBestFriend ¶
func (h *OgentHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
ReadUserBestFriend handles GET /users/{id}/best-friend requests.
func (*OgentHandler) ReadUserFavoriteHat ¶
func (h *OgentHandler) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (ReadUserFavoriteHatRes, error)
ReadUserFavoriteHat handles GET /users/{id}/favorite-hat requests.
func (*OgentHandler) UpdateAllTypes ¶
func (h *OgentHandler) UpdateAllTypes(ctx context.Context, req *UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
UpdateAllTypes handles PATCH /all-types-slice/{id} requests.
func (*OgentHandler) UpdateCategory ¶
func (h *OgentHandler) UpdateCategory(ctx context.Context, req *UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
UpdateCategory handles PATCH /categories/{id} requests.
func (*OgentHandler) UpdateHat ¶
func (h *OgentHandler) UpdateHat(ctx context.Context, req *UpdateHatReq, params UpdateHatParams) (UpdateHatRes, error)
UpdateHat handles PATCH /hats/{id} requests.
func (*OgentHandler) UpdatePet ¶
func (h *OgentHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
UpdatePet handles PATCH /pets/{id} requests.
func (*OgentHandler) UpdateUser ¶
func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
UpdateUser handles PATCH /users/{id} requests.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateUserReqFavoriteDogBreed ¶
type OptCreateUserReqFavoriteDogBreed struct { Value CreateUserReqFavoriteDogBreed Set bool }
OptCreateUserReqFavoriteDogBreed is optional CreateUserReqFavoriteDogBreed.
func NewOptCreateUserReqFavoriteDogBreed ¶
func NewOptCreateUserReqFavoriteDogBreed(v CreateUserReqFavoriteDogBreed) OptCreateUserReqFavoriteDogBreed
NewOptCreateUserReqFavoriteDogBreed returns new OptCreateUserReqFavoriteDogBreed with value set to v.
func (*OptCreateUserReqFavoriteDogBreed) Decode ¶
func (o *OptCreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteDogBreed from json.
func (OptCreateUserReqFavoriteDogBreed) Encode ¶
func (o OptCreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteDogBreed as json.
func (OptCreateUserReqFavoriteDogBreed) Get ¶
func (o OptCreateUserReqFavoriteDogBreed) Get() (v CreateUserReqFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateUserReqFavoriteDogBreed) IsSet ¶
func (o OptCreateUserReqFavoriteDogBreed) IsSet() bool
IsSet returns true if OptCreateUserReqFavoriteDogBreed was set.
func (OptCreateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s OptCreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateUserReqFavoriteDogBreed) Or ¶
func (o OptCreateUserReqFavoriteDogBreed) Or(d CreateUserReqFavoriteDogBreed) CreateUserReqFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptCreateUserReqFavoriteDogBreed) Reset ¶
func (o *OptCreateUserReqFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptCreateUserReqFavoriteDogBreed) SetTo ¶
func (o *OptCreateUserReqFavoriteDogBreed) SetTo(v CreateUserReqFavoriteDogBreed)
SetTo sets value to v.
func (*OptCreateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptCreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateUserReqFavoriteFishBreed ¶
type OptCreateUserReqFavoriteFishBreed struct { Value CreateUserReqFavoriteFishBreed Set bool }
OptCreateUserReqFavoriteFishBreed is optional CreateUserReqFavoriteFishBreed.
func NewOptCreateUserReqFavoriteFishBreed ¶
func NewOptCreateUserReqFavoriteFishBreed(v CreateUserReqFavoriteFishBreed) OptCreateUserReqFavoriteFishBreed
NewOptCreateUserReqFavoriteFishBreed returns new OptCreateUserReqFavoriteFishBreed with value set to v.
func (*OptCreateUserReqFavoriteFishBreed) Decode ¶
func (o *OptCreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteFishBreed from json.
func (OptCreateUserReqFavoriteFishBreed) Encode ¶
func (o OptCreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteFishBreed as json.
func (OptCreateUserReqFavoriteFishBreed) Get ¶
func (o OptCreateUserReqFavoriteFishBreed) Get() (v CreateUserReqFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateUserReqFavoriteFishBreed) IsSet ¶
func (o OptCreateUserReqFavoriteFishBreed) IsSet() bool
IsSet returns true if OptCreateUserReqFavoriteFishBreed was set.
func (OptCreateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s OptCreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateUserReqFavoriteFishBreed) Or ¶
func (o OptCreateUserReqFavoriteFishBreed) Or(d CreateUserReqFavoriteFishBreed) CreateUserReqFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptCreateUserReqFavoriteFishBreed) Reset ¶
func (o *OptCreateUserReqFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptCreateUserReqFavoriteFishBreed) SetTo ¶
func (o *OptCreateUserReqFavoriteFishBreed) SetTo(v CreateUserReqFavoriteFishBreed)
SetTo sets value to v.
func (*OptCreateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptCreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat32 ¶
OptFloat32 is optional float32.
func NewOptFloat32 ¶
func NewOptFloat32(v float32) OptFloat32
NewOptFloat32 returns new OptFloat32 with value set to v.
func (*OptFloat32) Decode ¶
func (o *OptFloat32) Decode(d *jx.Decoder) error
Decode decodes float32 from json.
func (OptFloat32) Encode ¶
func (o OptFloat32) Encode(e *jx.Encoder)
Encode encodes float32 as json.
func (OptFloat32) Get ¶
func (o OptFloat32) Get() (v float32, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat32) IsSet ¶
func (o OptFloat32) IsSet() bool
IsSet returns true if OptFloat32 was set.
func (OptFloat32) MarshalJSON ¶
func (s OptFloat32) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat32) Or ¶
func (o OptFloat32) Or(d float32) float32
Or returns value if set, or given parameter if does not.
func (*OptFloat32) UnmarshalJSON ¶
func (s *OptFloat32) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHatWearerReadFavoriteDogBreed ¶
type OptHatWearerReadFavoriteDogBreed struct { Value HatWearerReadFavoriteDogBreed Set bool }
OptHatWearerReadFavoriteDogBreed is optional HatWearerReadFavoriteDogBreed.
func NewOptHatWearerReadFavoriteDogBreed ¶
func NewOptHatWearerReadFavoriteDogBreed(v HatWearerReadFavoriteDogBreed) OptHatWearerReadFavoriteDogBreed
NewOptHatWearerReadFavoriteDogBreed returns new OptHatWearerReadFavoriteDogBreed with value set to v.
func (*OptHatWearerReadFavoriteDogBreed) Decode ¶
func (o *OptHatWearerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteDogBreed from json.
func (OptHatWearerReadFavoriteDogBreed) Encode ¶
func (o OptHatWearerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteDogBreed as json.
func (OptHatWearerReadFavoriteDogBreed) Get ¶
func (o OptHatWearerReadFavoriteDogBreed) Get() (v HatWearerReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptHatWearerReadFavoriteDogBreed) IsSet ¶
func (o OptHatWearerReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptHatWearerReadFavoriteDogBreed was set.
func (OptHatWearerReadFavoriteDogBreed) MarshalJSON ¶
func (s OptHatWearerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptHatWearerReadFavoriteDogBreed) Or ¶
func (o OptHatWearerReadFavoriteDogBreed) Or(d HatWearerReadFavoriteDogBreed) HatWearerReadFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptHatWearerReadFavoriteDogBreed) Reset ¶
func (o *OptHatWearerReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptHatWearerReadFavoriteDogBreed) SetTo ¶
func (o *OptHatWearerReadFavoriteDogBreed) SetTo(v HatWearerReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptHatWearerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptHatWearerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHatWearerReadFavoriteFishBreed ¶
type OptHatWearerReadFavoriteFishBreed struct { Value HatWearerReadFavoriteFishBreed Set bool }
OptHatWearerReadFavoriteFishBreed is optional HatWearerReadFavoriteFishBreed.
func NewOptHatWearerReadFavoriteFishBreed ¶
func NewOptHatWearerReadFavoriteFishBreed(v HatWearerReadFavoriteFishBreed) OptHatWearerReadFavoriteFishBreed
NewOptHatWearerReadFavoriteFishBreed returns new OptHatWearerReadFavoriteFishBreed with value set to v.
func (*OptHatWearerReadFavoriteFishBreed) Decode ¶
func (o *OptHatWearerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes HatWearerReadFavoriteFishBreed from json.
func (OptHatWearerReadFavoriteFishBreed) Encode ¶
func (o OptHatWearerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes HatWearerReadFavoriteFishBreed as json.
func (OptHatWearerReadFavoriteFishBreed) Get ¶
func (o OptHatWearerReadFavoriteFishBreed) Get() (v HatWearerReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptHatWearerReadFavoriteFishBreed) IsSet ¶
func (o OptHatWearerReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptHatWearerReadFavoriteFishBreed was set.
func (OptHatWearerReadFavoriteFishBreed) MarshalJSON ¶
func (s OptHatWearerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptHatWearerReadFavoriteFishBreed) Or ¶
func (o OptHatWearerReadFavoriteFishBreed) Or(d HatWearerReadFavoriteFishBreed) HatWearerReadFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptHatWearerReadFavoriteFishBreed) Reset ¶
func (o *OptHatWearerReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptHatWearerReadFavoriteFishBreed) SetTo ¶
func (o *OptHatWearerReadFavoriteFishBreed) SetTo(v HatWearerReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptHatWearerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptHatWearerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt32 ¶
OptInt32 is optional int32.
func NewOptInt32 ¶
NewOptInt32 returns new OptInt32 with value set to v.
func (OptInt32) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt32) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetCreateOwnerFavoriteDogBreed ¶
type OptPetCreateOwnerFavoriteDogBreed struct { Value PetCreateOwnerFavoriteDogBreed Set bool }
OptPetCreateOwnerFavoriteDogBreed is optional PetCreateOwnerFavoriteDogBreed.
func NewOptPetCreateOwnerFavoriteDogBreed ¶
func NewOptPetCreateOwnerFavoriteDogBreed(v PetCreateOwnerFavoriteDogBreed) OptPetCreateOwnerFavoriteDogBreed
NewOptPetCreateOwnerFavoriteDogBreed returns new OptPetCreateOwnerFavoriteDogBreed with value set to v.
func (*OptPetCreateOwnerFavoriteDogBreed) Decode ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteDogBreed from json.
func (OptPetCreateOwnerFavoriteDogBreed) Encode ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteDogBreed as json.
func (OptPetCreateOwnerFavoriteDogBreed) Get ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Get() (v PetCreateOwnerFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetCreateOwnerFavoriteDogBreed) IsSet ¶
func (o OptPetCreateOwnerFavoriteDogBreed) IsSet() bool
IsSet returns true if OptPetCreateOwnerFavoriteDogBreed was set.
func (OptPetCreateOwnerFavoriteDogBreed) MarshalJSON ¶
func (s OptPetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetCreateOwnerFavoriteDogBreed) Or ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Or(d PetCreateOwnerFavoriteDogBreed) PetCreateOwnerFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptPetCreateOwnerFavoriteDogBreed) Reset ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptPetCreateOwnerFavoriteDogBreed) SetTo ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) SetTo(v PetCreateOwnerFavoriteDogBreed)
SetTo sets value to v.
func (*OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetCreateOwnerFavoriteFishBreed ¶
type OptPetCreateOwnerFavoriteFishBreed struct { Value PetCreateOwnerFavoriteFishBreed Set bool }
OptPetCreateOwnerFavoriteFishBreed is optional PetCreateOwnerFavoriteFishBreed.
func NewOptPetCreateOwnerFavoriteFishBreed ¶
func NewOptPetCreateOwnerFavoriteFishBreed(v PetCreateOwnerFavoriteFishBreed) OptPetCreateOwnerFavoriteFishBreed
NewOptPetCreateOwnerFavoriteFishBreed returns new OptPetCreateOwnerFavoriteFishBreed with value set to v.
func (*OptPetCreateOwnerFavoriteFishBreed) Decode ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteFishBreed from json.
func (OptPetCreateOwnerFavoriteFishBreed) Encode ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteFishBreed as json.
func (OptPetCreateOwnerFavoriteFishBreed) Get ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Get() (v PetCreateOwnerFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetCreateOwnerFavoriteFishBreed) IsSet ¶
func (o OptPetCreateOwnerFavoriteFishBreed) IsSet() bool
IsSet returns true if OptPetCreateOwnerFavoriteFishBreed was set.
func (OptPetCreateOwnerFavoriteFishBreed) MarshalJSON ¶
func (s OptPetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetCreateOwnerFavoriteFishBreed) Or ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Or(d PetCreateOwnerFavoriteFishBreed) PetCreateOwnerFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptPetCreateOwnerFavoriteFishBreed) Reset ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptPetCreateOwnerFavoriteFishBreed) SetTo ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) SetTo(v PetCreateOwnerFavoriteFishBreed)
SetTo sets value to v.
func (*OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetOwnerReadFavoriteDogBreed ¶
type OptPetOwnerReadFavoriteDogBreed struct { Value PetOwnerReadFavoriteDogBreed Set bool }
OptPetOwnerReadFavoriteDogBreed is optional PetOwnerReadFavoriteDogBreed.
func NewOptPetOwnerReadFavoriteDogBreed ¶
func NewOptPetOwnerReadFavoriteDogBreed(v PetOwnerReadFavoriteDogBreed) OptPetOwnerReadFavoriteDogBreed
NewOptPetOwnerReadFavoriteDogBreed returns new OptPetOwnerReadFavoriteDogBreed with value set to v.
func (*OptPetOwnerReadFavoriteDogBreed) Decode ¶
func (o *OptPetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteDogBreed from json.
func (OptPetOwnerReadFavoriteDogBreed) Encode ¶
func (o OptPetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteDogBreed as json.
func (OptPetOwnerReadFavoriteDogBreed) Get ¶
func (o OptPetOwnerReadFavoriteDogBreed) Get() (v PetOwnerReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetOwnerReadFavoriteDogBreed) IsSet ¶
func (o OptPetOwnerReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptPetOwnerReadFavoriteDogBreed was set.
func (OptPetOwnerReadFavoriteDogBreed) MarshalJSON ¶
func (s OptPetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetOwnerReadFavoriteDogBreed) Or ¶
func (o OptPetOwnerReadFavoriteDogBreed) Or(d PetOwnerReadFavoriteDogBreed) PetOwnerReadFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptPetOwnerReadFavoriteDogBreed) Reset ¶
func (o *OptPetOwnerReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptPetOwnerReadFavoriteDogBreed) SetTo ¶
func (o *OptPetOwnerReadFavoriteDogBreed) SetTo(v PetOwnerReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetOwnerReadFavoriteFishBreed ¶
type OptPetOwnerReadFavoriteFishBreed struct { Value PetOwnerReadFavoriteFishBreed Set bool }
OptPetOwnerReadFavoriteFishBreed is optional PetOwnerReadFavoriteFishBreed.
func NewOptPetOwnerReadFavoriteFishBreed ¶
func NewOptPetOwnerReadFavoriteFishBreed(v PetOwnerReadFavoriteFishBreed) OptPetOwnerReadFavoriteFishBreed
NewOptPetOwnerReadFavoriteFishBreed returns new OptPetOwnerReadFavoriteFishBreed with value set to v.
func (*OptPetOwnerReadFavoriteFishBreed) Decode ¶
func (o *OptPetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteFishBreed from json.
func (OptPetOwnerReadFavoriteFishBreed) Encode ¶
func (o OptPetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteFishBreed as json.
func (OptPetOwnerReadFavoriteFishBreed) Get ¶
func (o OptPetOwnerReadFavoriteFishBreed) Get() (v PetOwnerReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetOwnerReadFavoriteFishBreed) IsSet ¶
func (o OptPetOwnerReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptPetOwnerReadFavoriteFishBreed was set.
func (OptPetOwnerReadFavoriteFishBreed) MarshalJSON ¶
func (s OptPetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetOwnerReadFavoriteFishBreed) Or ¶
func (o OptPetOwnerReadFavoriteFishBreed) Or(d PetOwnerReadFavoriteFishBreed) PetOwnerReadFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptPetOwnerReadFavoriteFishBreed) Reset ¶
func (o *OptPetOwnerReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptPetOwnerReadFavoriteFishBreed) SetTo ¶
func (o *OptPetOwnerReadFavoriteFishBreed) SetTo(v PetOwnerReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetRescuerListFavoriteDogBreed ¶
type OptPetRescuerListFavoriteDogBreed struct { Value PetRescuerListFavoriteDogBreed Set bool }
OptPetRescuerListFavoriteDogBreed is optional PetRescuerListFavoriteDogBreed.
func NewOptPetRescuerListFavoriteDogBreed ¶
func NewOptPetRescuerListFavoriteDogBreed(v PetRescuerListFavoriteDogBreed) OptPetRescuerListFavoriteDogBreed
NewOptPetRescuerListFavoriteDogBreed returns new OptPetRescuerListFavoriteDogBreed with value set to v.
func (*OptPetRescuerListFavoriteDogBreed) Decode ¶
func (o *OptPetRescuerListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteDogBreed from json.
func (OptPetRescuerListFavoriteDogBreed) Encode ¶
func (o OptPetRescuerListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteDogBreed as json.
func (OptPetRescuerListFavoriteDogBreed) Get ¶
func (o OptPetRescuerListFavoriteDogBreed) Get() (v PetRescuerListFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetRescuerListFavoriteDogBreed) IsSet ¶
func (o OptPetRescuerListFavoriteDogBreed) IsSet() bool
IsSet returns true if OptPetRescuerListFavoriteDogBreed was set.
func (OptPetRescuerListFavoriteDogBreed) MarshalJSON ¶
func (s OptPetRescuerListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetRescuerListFavoriteDogBreed) Or ¶
func (o OptPetRescuerListFavoriteDogBreed) Or(d PetRescuerListFavoriteDogBreed) PetRescuerListFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptPetRescuerListFavoriteDogBreed) Reset ¶
func (o *OptPetRescuerListFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptPetRescuerListFavoriteDogBreed) SetTo ¶
func (o *OptPetRescuerListFavoriteDogBreed) SetTo(v PetRescuerListFavoriteDogBreed)
SetTo sets value to v.
func (*OptPetRescuerListFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptPetRescuerListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetRescuerListFavoriteFishBreed ¶
type OptPetRescuerListFavoriteFishBreed struct { Value PetRescuerListFavoriteFishBreed Set bool }
OptPetRescuerListFavoriteFishBreed is optional PetRescuerListFavoriteFishBreed.
func NewOptPetRescuerListFavoriteFishBreed ¶
func NewOptPetRescuerListFavoriteFishBreed(v PetRescuerListFavoriteFishBreed) OptPetRescuerListFavoriteFishBreed
NewOptPetRescuerListFavoriteFishBreed returns new OptPetRescuerListFavoriteFishBreed with value set to v.
func (*OptPetRescuerListFavoriteFishBreed) Decode ¶
func (o *OptPetRescuerListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteFishBreed from json.
func (OptPetRescuerListFavoriteFishBreed) Encode ¶
func (o OptPetRescuerListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteFishBreed as json.
func (OptPetRescuerListFavoriteFishBreed) Get ¶
func (o OptPetRescuerListFavoriteFishBreed) Get() (v PetRescuerListFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetRescuerListFavoriteFishBreed) IsSet ¶
func (o OptPetRescuerListFavoriteFishBreed) IsSet() bool
IsSet returns true if OptPetRescuerListFavoriteFishBreed was set.
func (OptPetRescuerListFavoriteFishBreed) MarshalJSON ¶
func (s OptPetRescuerListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetRescuerListFavoriteFishBreed) Or ¶
func (o OptPetRescuerListFavoriteFishBreed) Or(d PetRescuerListFavoriteFishBreed) PetRescuerListFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptPetRescuerListFavoriteFishBreed) Reset ¶
func (o *OptPetRescuerListFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptPetRescuerListFavoriteFishBreed) SetTo ¶
func (o *OptPetRescuerListFavoriteFishBreed) SetTo(v PetRescuerListFavoriteFishBreed)
SetTo sets value to v.
func (*OptPetRescuerListFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptPetRescuerListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUUID ¶
OptUUID is optional uuid.UUID.
func NewOptUUID ¶
NewOptUUID returns new OptUUID with value set to v.
func (OptUUID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptUUID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateAllTypesReqState ¶
type OptUpdateAllTypesReqState struct { Value UpdateAllTypesReqState Set bool }
OptUpdateAllTypesReqState is optional UpdateAllTypesReqState.
func NewOptUpdateAllTypesReqState ¶
func NewOptUpdateAllTypesReqState(v UpdateAllTypesReqState) OptUpdateAllTypesReqState
NewOptUpdateAllTypesReqState returns new OptUpdateAllTypesReqState with value set to v.
func (*OptUpdateAllTypesReqState) Decode ¶
func (o *OptUpdateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReqState from json.
func (OptUpdateAllTypesReqState) Encode ¶
func (o OptUpdateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes UpdateAllTypesReqState as json.
func (OptUpdateAllTypesReqState) Get ¶
func (o OptUpdateAllTypesReqState) Get() (v UpdateAllTypesReqState, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateAllTypesReqState) IsSet ¶
func (o OptUpdateAllTypesReqState) IsSet() bool
IsSet returns true if OptUpdateAllTypesReqState was set.
func (OptUpdateAllTypesReqState) MarshalJSON ¶
func (s OptUpdateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUpdateAllTypesReqState) Reset ¶
func (o *OptUpdateAllTypesReqState) Reset()
Reset unsets value.
func (*OptUpdateAllTypesReqState) SetTo ¶
func (o *OptUpdateAllTypesReqState) SetTo(v UpdateAllTypesReqState)
SetTo sets value to v.
func (*OptUpdateAllTypesReqState) UnmarshalJSON ¶
func (s *OptUpdateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteCatBreed ¶
type OptUpdateUserReqFavoriteCatBreed struct { Value UpdateUserReqFavoriteCatBreed Set bool }
OptUpdateUserReqFavoriteCatBreed is optional UpdateUserReqFavoriteCatBreed.
func NewOptUpdateUserReqFavoriteCatBreed ¶
func NewOptUpdateUserReqFavoriteCatBreed(v UpdateUserReqFavoriteCatBreed) OptUpdateUserReqFavoriteCatBreed
NewOptUpdateUserReqFavoriteCatBreed returns new OptUpdateUserReqFavoriteCatBreed with value set to v.
func (*OptUpdateUserReqFavoriteCatBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteCatBreed from json.
func (OptUpdateUserReqFavoriteCatBreed) Encode ¶
func (o OptUpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteCatBreed as json.
func (OptUpdateUserReqFavoriteCatBreed) Get ¶
func (o OptUpdateUserReqFavoriteCatBreed) Get() (v UpdateUserReqFavoriteCatBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteCatBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteCatBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteCatBreed was set.
func (OptUpdateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteCatBreed) Or ¶
func (o OptUpdateUserReqFavoriteCatBreed) Or(d UpdateUserReqFavoriteCatBreed) UpdateUserReqFavoriteCatBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteCatBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteCatBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteCatBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteCatBreed) SetTo(v UpdateUserReqFavoriteCatBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteDogBreed ¶
type OptUpdateUserReqFavoriteDogBreed struct { Value UpdateUserReqFavoriteDogBreed Set bool }
OptUpdateUserReqFavoriteDogBreed is optional UpdateUserReqFavoriteDogBreed.
func NewOptUpdateUserReqFavoriteDogBreed ¶
func NewOptUpdateUserReqFavoriteDogBreed(v UpdateUserReqFavoriteDogBreed) OptUpdateUserReqFavoriteDogBreed
NewOptUpdateUserReqFavoriteDogBreed returns new OptUpdateUserReqFavoriteDogBreed with value set to v.
func (*OptUpdateUserReqFavoriteDogBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteDogBreed from json.
func (OptUpdateUserReqFavoriteDogBreed) Encode ¶
func (o OptUpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteDogBreed as json.
func (OptUpdateUserReqFavoriteDogBreed) Get ¶
func (o OptUpdateUserReqFavoriteDogBreed) Get() (v UpdateUserReqFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteDogBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteDogBreed was set.
func (OptUpdateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteDogBreed) Or ¶
func (o OptUpdateUserReqFavoriteDogBreed) Or(d UpdateUserReqFavoriteDogBreed) UpdateUserReqFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteDogBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteDogBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteDogBreed) SetTo(v UpdateUserReqFavoriteDogBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteFishBreed ¶
type OptUpdateUserReqFavoriteFishBreed struct { Value UpdateUserReqFavoriteFishBreed Set bool }
OptUpdateUserReqFavoriteFishBreed is optional UpdateUserReqFavoriteFishBreed.
func NewOptUpdateUserReqFavoriteFishBreed ¶
func NewOptUpdateUserReqFavoriteFishBreed(v UpdateUserReqFavoriteFishBreed) OptUpdateUserReqFavoriteFishBreed
NewOptUpdateUserReqFavoriteFishBreed returns new OptUpdateUserReqFavoriteFishBreed with value set to v.
func (*OptUpdateUserReqFavoriteFishBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteFishBreed from json.
func (OptUpdateUserReqFavoriteFishBreed) Encode ¶
func (o OptUpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteFishBreed as json.
func (OptUpdateUserReqFavoriteFishBreed) Get ¶
func (o OptUpdateUserReqFavoriteFishBreed) Get() (v UpdateUserReqFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteFishBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteFishBreed was set.
func (OptUpdateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteFishBreed) Or ¶
func (o OptUpdateUserReqFavoriteFishBreed) Or(d UpdateUserReqFavoriteFishBreed) UpdateUserReqFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteFishBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteFishBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteFishBreed) SetTo(v UpdateUserReqFavoriteFishBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserBestFriendReadFavoriteDogBreed ¶
type OptUserBestFriendReadFavoriteDogBreed struct { Value UserBestFriendReadFavoriteDogBreed Set bool }
OptUserBestFriendReadFavoriteDogBreed is optional UserBestFriendReadFavoriteDogBreed.
func NewOptUserBestFriendReadFavoriteDogBreed ¶
func NewOptUserBestFriendReadFavoriteDogBreed(v UserBestFriendReadFavoriteDogBreed) OptUserBestFriendReadFavoriteDogBreed
NewOptUserBestFriendReadFavoriteDogBreed returns new OptUserBestFriendReadFavoriteDogBreed with value set to v.
func (*OptUserBestFriendReadFavoriteDogBreed) Decode ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteDogBreed from json.
func (OptUserBestFriendReadFavoriteDogBreed) Encode ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteDogBreed as json.
func (OptUserBestFriendReadFavoriteDogBreed) Get ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Get() (v UserBestFriendReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserBestFriendReadFavoriteDogBreed) IsSet ¶
func (o OptUserBestFriendReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserBestFriendReadFavoriteDogBreed was set.
func (OptUserBestFriendReadFavoriteDogBreed) MarshalJSON ¶
func (s OptUserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserBestFriendReadFavoriteDogBreed) Or ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Or(d UserBestFriendReadFavoriteDogBreed) UserBestFriendReadFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptUserBestFriendReadFavoriteDogBreed) Reset ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserBestFriendReadFavoriteDogBreed) SetTo ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) SetTo(v UserBestFriendReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserBestFriendReadFavoriteFishBreed ¶
type OptUserBestFriendReadFavoriteFishBreed struct { Value UserBestFriendReadFavoriteFishBreed Set bool }
OptUserBestFriendReadFavoriteFishBreed is optional UserBestFriendReadFavoriteFishBreed.
func NewOptUserBestFriendReadFavoriteFishBreed ¶
func NewOptUserBestFriendReadFavoriteFishBreed(v UserBestFriendReadFavoriteFishBreed) OptUserBestFriendReadFavoriteFishBreed
NewOptUserBestFriendReadFavoriteFishBreed returns new OptUserBestFriendReadFavoriteFishBreed with value set to v.
func (*OptUserBestFriendReadFavoriteFishBreed) Decode ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteFishBreed from json.
func (OptUserBestFriendReadFavoriteFishBreed) Encode ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteFishBreed as json.
func (OptUserBestFriendReadFavoriteFishBreed) Get ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Get() (v UserBestFriendReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserBestFriendReadFavoriteFishBreed) IsSet ¶
func (o OptUserBestFriendReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserBestFriendReadFavoriteFishBreed was set.
func (OptUserBestFriendReadFavoriteFishBreed) MarshalJSON ¶
func (s OptUserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserBestFriendReadFavoriteFishBreed) Or ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Or(d UserBestFriendReadFavoriteFishBreed) UserBestFriendReadFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserBestFriendReadFavoriteFishBreed) Reset ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserBestFriendReadFavoriteFishBreed) SetTo ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) SetTo(v UserBestFriendReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserCreateFavoriteDogBreed ¶
type OptUserCreateFavoriteDogBreed struct { Value UserCreateFavoriteDogBreed Set bool }
OptUserCreateFavoriteDogBreed is optional UserCreateFavoriteDogBreed.
func NewOptUserCreateFavoriteDogBreed ¶
func NewOptUserCreateFavoriteDogBreed(v UserCreateFavoriteDogBreed) OptUserCreateFavoriteDogBreed
NewOptUserCreateFavoriteDogBreed returns new OptUserCreateFavoriteDogBreed with value set to v.
func (*OptUserCreateFavoriteDogBreed) Decode ¶
func (o *OptUserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteDogBreed from json.
func (OptUserCreateFavoriteDogBreed) Encode ¶
func (o OptUserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteDogBreed as json.
func (OptUserCreateFavoriteDogBreed) Get ¶
func (o OptUserCreateFavoriteDogBreed) Get() (v UserCreateFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserCreateFavoriteDogBreed) IsSet ¶
func (o OptUserCreateFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserCreateFavoriteDogBreed was set.
func (OptUserCreateFavoriteDogBreed) MarshalJSON ¶
func (s OptUserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserCreateFavoriteDogBreed) Reset ¶
func (o *OptUserCreateFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserCreateFavoriteDogBreed) SetTo ¶
func (o *OptUserCreateFavoriteDogBreed) SetTo(v UserCreateFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserCreateFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserCreateFavoriteFishBreed ¶
type OptUserCreateFavoriteFishBreed struct { Value UserCreateFavoriteFishBreed Set bool }
OptUserCreateFavoriteFishBreed is optional UserCreateFavoriteFishBreed.
func NewOptUserCreateFavoriteFishBreed ¶
func NewOptUserCreateFavoriteFishBreed(v UserCreateFavoriteFishBreed) OptUserCreateFavoriteFishBreed
NewOptUserCreateFavoriteFishBreed returns new OptUserCreateFavoriteFishBreed with value set to v.
func (*OptUserCreateFavoriteFishBreed) Decode ¶
func (o *OptUserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteFishBreed from json.
func (OptUserCreateFavoriteFishBreed) Encode ¶
func (o OptUserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteFishBreed as json.
func (OptUserCreateFavoriteFishBreed) Get ¶
func (o OptUserCreateFavoriteFishBreed) Get() (v UserCreateFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserCreateFavoriteFishBreed) IsSet ¶
func (o OptUserCreateFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserCreateFavoriteFishBreed was set.
func (OptUserCreateFavoriteFishBreed) MarshalJSON ¶
func (s OptUserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserCreateFavoriteFishBreed) Or ¶
func (o OptUserCreateFavoriteFishBreed) Or(d UserCreateFavoriteFishBreed) UserCreateFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserCreateFavoriteFishBreed) Reset ¶
func (o *OptUserCreateFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserCreateFavoriteFishBreed) SetTo ¶
func (o *OptUserCreateFavoriteFishBreed) SetTo(v UserCreateFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserCreateFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserListFavoriteDogBreed ¶
type OptUserListFavoriteDogBreed struct { Value UserListFavoriteDogBreed Set bool }
OptUserListFavoriteDogBreed is optional UserListFavoriteDogBreed.
func NewOptUserListFavoriteDogBreed ¶
func NewOptUserListFavoriteDogBreed(v UserListFavoriteDogBreed) OptUserListFavoriteDogBreed
NewOptUserListFavoriteDogBreed returns new OptUserListFavoriteDogBreed with value set to v.
func (*OptUserListFavoriteDogBreed) Decode ¶
func (o *OptUserListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteDogBreed from json.
func (OptUserListFavoriteDogBreed) Encode ¶
func (o OptUserListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteDogBreed as json.
func (OptUserListFavoriteDogBreed) Get ¶
func (o OptUserListFavoriteDogBreed) Get() (v UserListFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserListFavoriteDogBreed) IsSet ¶
func (o OptUserListFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserListFavoriteDogBreed was set.
func (OptUserListFavoriteDogBreed) MarshalJSON ¶
func (s OptUserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserListFavoriteDogBreed) Reset ¶
func (o *OptUserListFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserListFavoriteDogBreed) SetTo ¶
func (o *OptUserListFavoriteDogBreed) SetTo(v UserListFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserListFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserListFavoriteFishBreed ¶
type OptUserListFavoriteFishBreed struct { Value UserListFavoriteFishBreed Set bool }
OptUserListFavoriteFishBreed is optional UserListFavoriteFishBreed.
func NewOptUserListFavoriteFishBreed ¶
func NewOptUserListFavoriteFishBreed(v UserListFavoriteFishBreed) OptUserListFavoriteFishBreed
NewOptUserListFavoriteFishBreed returns new OptUserListFavoriteFishBreed with value set to v.
func (*OptUserListFavoriteFishBreed) Decode ¶
func (o *OptUserListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteFishBreed from json.
func (OptUserListFavoriteFishBreed) Encode ¶
func (o OptUserListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteFishBreed as json.
func (OptUserListFavoriteFishBreed) Get ¶
func (o OptUserListFavoriteFishBreed) Get() (v UserListFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserListFavoriteFishBreed) IsSet ¶
func (o OptUserListFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserListFavoriteFishBreed was set.
func (OptUserListFavoriteFishBreed) MarshalJSON ¶
func (s OptUserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserListFavoriteFishBreed) Reset ¶
func (o *OptUserListFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserListFavoriteFishBreed) SetTo ¶
func (o *OptUserListFavoriteFishBreed) SetTo(v UserListFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserListFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserReadFavoriteDogBreed ¶
type OptUserReadFavoriteDogBreed struct { Value UserReadFavoriteDogBreed Set bool }
OptUserReadFavoriteDogBreed is optional UserReadFavoriteDogBreed.
func NewOptUserReadFavoriteDogBreed ¶
func NewOptUserReadFavoriteDogBreed(v UserReadFavoriteDogBreed) OptUserReadFavoriteDogBreed
NewOptUserReadFavoriteDogBreed returns new OptUserReadFavoriteDogBreed with value set to v.
func (*OptUserReadFavoriteDogBreed) Decode ¶
func (o *OptUserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteDogBreed from json.
func (OptUserReadFavoriteDogBreed) Encode ¶
func (o OptUserReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteDogBreed as json.
func (OptUserReadFavoriteDogBreed) Get ¶
func (o OptUserReadFavoriteDogBreed) Get() (v UserReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserReadFavoriteDogBreed) IsSet ¶
func (o OptUserReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserReadFavoriteDogBreed was set.
func (OptUserReadFavoriteDogBreed) MarshalJSON ¶
func (s OptUserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserReadFavoriteDogBreed) Reset ¶
func (o *OptUserReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserReadFavoriteDogBreed) SetTo ¶
func (o *OptUserReadFavoriteDogBreed) SetTo(v UserReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserReadFavoriteFishBreed ¶
type OptUserReadFavoriteFishBreed struct { Value UserReadFavoriteFishBreed Set bool }
OptUserReadFavoriteFishBreed is optional UserReadFavoriteFishBreed.
func NewOptUserReadFavoriteFishBreed ¶
func NewOptUserReadFavoriteFishBreed(v UserReadFavoriteFishBreed) OptUserReadFavoriteFishBreed
NewOptUserReadFavoriteFishBreed returns new OptUserReadFavoriteFishBreed with value set to v.
func (*OptUserReadFavoriteFishBreed) Decode ¶
func (o *OptUserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteFishBreed from json.
func (OptUserReadFavoriteFishBreed) Encode ¶
func (o OptUserReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteFishBreed as json.
func (OptUserReadFavoriteFishBreed) Get ¶
func (o OptUserReadFavoriteFishBreed) Get() (v UserReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserReadFavoriteFishBreed) IsSet ¶
func (o OptUserReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserReadFavoriteFishBreed was set.
func (OptUserReadFavoriteFishBreed) MarshalJSON ¶
func (s OptUserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserReadFavoriteFishBreed) Reset ¶
func (o *OptUserReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserReadFavoriteFishBreed) SetTo ¶
func (o *OptUserReadFavoriteFishBreed) SetTo(v UserReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserUpdateFavoriteDogBreed ¶
type OptUserUpdateFavoriteDogBreed struct { Value UserUpdateFavoriteDogBreed Set bool }
OptUserUpdateFavoriteDogBreed is optional UserUpdateFavoriteDogBreed.
func NewOptUserUpdateFavoriteDogBreed ¶
func NewOptUserUpdateFavoriteDogBreed(v UserUpdateFavoriteDogBreed) OptUserUpdateFavoriteDogBreed
NewOptUserUpdateFavoriteDogBreed returns new OptUserUpdateFavoriteDogBreed with value set to v.
func (*OptUserUpdateFavoriteDogBreed) Decode ¶
func (o *OptUserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteDogBreed from json.
func (OptUserUpdateFavoriteDogBreed) Encode ¶
func (o OptUserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteDogBreed as json.
func (OptUserUpdateFavoriteDogBreed) Get ¶
func (o OptUserUpdateFavoriteDogBreed) Get() (v UserUpdateFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserUpdateFavoriteDogBreed) IsSet ¶
func (o OptUserUpdateFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserUpdateFavoriteDogBreed was set.
func (OptUserUpdateFavoriteDogBreed) MarshalJSON ¶
func (s OptUserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserUpdateFavoriteDogBreed) Reset ¶
func (o *OptUserUpdateFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserUpdateFavoriteDogBreed) SetTo ¶
func (o *OptUserUpdateFavoriteDogBreed) SetTo(v UserUpdateFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserUpdateFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserUpdateFavoriteFishBreed ¶
type OptUserUpdateFavoriteFishBreed struct { Value UserUpdateFavoriteFishBreed Set bool }
OptUserUpdateFavoriteFishBreed is optional UserUpdateFavoriteFishBreed.
func NewOptUserUpdateFavoriteFishBreed ¶
func NewOptUserUpdateFavoriteFishBreed(v UserUpdateFavoriteFishBreed) OptUserUpdateFavoriteFishBreed
NewOptUserUpdateFavoriteFishBreed returns new OptUserUpdateFavoriteFishBreed with value set to v.
func (*OptUserUpdateFavoriteFishBreed) Decode ¶
func (o *OptUserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteFishBreed from json.
func (OptUserUpdateFavoriteFishBreed) Encode ¶
func (o OptUserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteFishBreed as json.
func (OptUserUpdateFavoriteFishBreed) Get ¶
func (o OptUserUpdateFavoriteFishBreed) Get() (v UserUpdateFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserUpdateFavoriteFishBreed) IsSet ¶
func (o OptUserUpdateFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserUpdateFavoriteFishBreed was set.
func (OptUserUpdateFavoriteFishBreed) MarshalJSON ¶
func (s OptUserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserUpdateFavoriteFishBreed) Or ¶
func (o OptUserUpdateFavoriteFishBreed) Or(d UserUpdateFavoriteFishBreed) UserUpdateFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserUpdateFavoriteFishBreed) Reset ¶
func (o *OptUserUpdateFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserUpdateFavoriteFishBreed) SetTo ¶
func (o *OptUserUpdateFavoriteFishBreed) SetTo(v UserUpdateFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserUpdateFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the metric.NewNoopMeterProvider is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type PetCategoriesList ¶
type PetCategoriesList struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/Pet_CategoriesList
func NewPetCategoriesList ¶
func NewPetCategoriesList(e *ent.Category) *PetCategoriesList
func NewPetCategoriesLists ¶
func NewPetCategoriesLists(es []*ent.Category) []PetCategoriesList
func (*PetCategoriesList) Decode ¶
func (s *PetCategoriesList) Decode(d *jx.Decoder) error
Decode decodes PetCategoriesList from json.
func (*PetCategoriesList) Elem ¶
func (c *PetCategoriesList) Elem() PetCategoriesList
func (*PetCategoriesList) Encode ¶
func (s *PetCategoriesList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCategoriesList) GetID ¶
func (s *PetCategoriesList) GetID() int
GetID returns the value of ID.
func (*PetCategoriesList) GetName ¶
func (s *PetCategoriesList) GetName() string
GetName returns the value of Name.
func (*PetCategoriesList) GetReadonly ¶
func (s *PetCategoriesList) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*PetCategoriesList) MarshalJSON ¶
func (s *PetCategoriesList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCategoriesList) SetID ¶
func (s *PetCategoriesList) SetID(val int)
SetID sets the value of ID.
func (*PetCategoriesList) SetName ¶
func (s *PetCategoriesList) SetName(val string)
SetName sets the value of Name.
func (*PetCategoriesList) SetReadonly ¶
func (s *PetCategoriesList) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*PetCategoriesList) UnmarshalJSON ¶
func (s *PetCategoriesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreate ¶
type PetCreate struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` Categories []PetCreateCategories `json:"categories"` Owner PetCreateOwner `json:"owner"` }
Ref: #/components/schemas/PetCreate
func NewPetCreate ¶
func NewPetCreates ¶
func (*PetCreate) GetBirthday ¶
func (s *PetCreate) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetCreate) GetCategories ¶
func (s *PetCreate) GetCategories() []PetCreateCategories
GetCategories returns the value of Categories.
func (*PetCreate) GetOwner ¶
func (s *PetCreate) GetOwner() PetCreateOwner
GetOwner returns the value of Owner.
func (*PetCreate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetCreate) SetBirthday ¶
func (s *PetCreate) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetCreate) SetCategories ¶
func (s *PetCreate) SetCategories(val []PetCreateCategories)
SetCategories sets the value of Categories.
func (*PetCreate) SetOwner ¶
func (s *PetCreate) SetOwner(val PetCreateOwner)
SetOwner sets the value of Owner.
func (*PetCreate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreateCategories ¶
type PetCreateCategories struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/PetCreate_Categories
func NewPetCreateCategories ¶
func NewPetCreateCategories(e *ent.Category) *PetCreateCategories
func NewPetCreateCategoriesSlice ¶
func NewPetCreateCategoriesSlice(es []*ent.Category) []PetCreateCategories
func (*PetCreateCategories) Decode ¶
func (s *PetCreateCategories) Decode(d *jx.Decoder) error
Decode decodes PetCreateCategories from json.
func (*PetCreateCategories) Elem ¶
func (c *PetCreateCategories) Elem() PetCreateCategories
func (*PetCreateCategories) Encode ¶
func (s *PetCreateCategories) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCreateCategories) GetID ¶
func (s *PetCreateCategories) GetID() int
GetID returns the value of ID.
func (*PetCreateCategories) GetName ¶
func (s *PetCreateCategories) GetName() string
GetName returns the value of Name.
func (*PetCreateCategories) GetReadonly ¶
func (s *PetCreateCategories) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (*PetCreateCategories) MarshalJSON ¶
func (s *PetCreateCategories) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateCategories) SetID ¶
func (s *PetCreateCategories) SetID(val int)
SetID sets the value of ID.
func (*PetCreateCategories) SetName ¶
func (s *PetCreateCategories) SetName(val string)
SetName sets the value of Name.
func (*PetCreateCategories) SetReadonly ¶
func (s *PetCreateCategories) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*PetCreateCategories) UnmarshalJSON ¶
func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreateOwner ¶
type PetCreateOwner struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed PetCreateOwnerFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor PetCreateOwnerFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptPetCreateOwnerFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptPetCreateOwnerFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/PetCreate_Owner
func NewPetCreateOwner ¶
func NewPetCreateOwner(e *ent.User) *PetCreateOwner
func NewPetCreateOwners ¶
func NewPetCreateOwners(es []*ent.User) []PetCreateOwner
func (*PetCreateOwner) Decode ¶
func (s *PetCreateOwner) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwner from json.
func (*PetCreateOwner) Elem ¶
func (u *PetCreateOwner) Elem() PetCreateOwner
func (*PetCreateOwner) Encode ¶
func (s *PetCreateOwner) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCreateOwner) GetAge ¶
func (s *PetCreateOwner) GetAge() int64
GetAge returns the value of Age.
func (*PetCreateOwner) GetFavoriteCatBreed ¶
func (s *PetCreateOwner) GetFavoriteCatBreed() PetCreateOwnerFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*PetCreateOwner) GetFavoriteColor ¶
func (s *PetCreateOwner) GetFavoriteColor() PetCreateOwnerFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*PetCreateOwner) GetFavoriteDogBreed ¶
func (s *PetCreateOwner) GetFavoriteDogBreed() OptPetCreateOwnerFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*PetCreateOwner) GetFavoriteFishBreed ¶
func (s *PetCreateOwner) GetFavoriteFishBreed() OptPetCreateOwnerFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*PetCreateOwner) GetHeight ¶
func (s *PetCreateOwner) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*PetCreateOwner) GetName ¶
func (s *PetCreateOwner) GetName() string
GetName returns the value of Name.
func (*PetCreateOwner) MarshalJSON ¶
func (s *PetCreateOwner) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateOwner) SetAge ¶
func (s *PetCreateOwner) SetAge(val int64)
SetAge sets the value of Age.
func (*PetCreateOwner) SetFavoriteCatBreed ¶
func (s *PetCreateOwner) SetFavoriteCatBreed(val PetCreateOwnerFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*PetCreateOwner) SetFavoriteColor ¶
func (s *PetCreateOwner) SetFavoriteColor(val PetCreateOwnerFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*PetCreateOwner) SetFavoriteDogBreed ¶
func (s *PetCreateOwner) SetFavoriteDogBreed(val OptPetCreateOwnerFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*PetCreateOwner) SetFavoriteFishBreed ¶
func (s *PetCreateOwner) SetFavoriteFishBreed(val OptPetCreateOwnerFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*PetCreateOwner) SetHeight ¶
func (s *PetCreateOwner) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*PetCreateOwner) SetName ¶
func (s *PetCreateOwner) SetName(val string)
SetName sets the value of Name.
func (*PetCreateOwner) UnmarshalJSON ¶
func (s *PetCreateOwner) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetCreateOwner) Validate ¶
func (s *PetCreateOwner) Validate() error
type PetCreateOwnerFavoriteCatBreed ¶
type PetCreateOwnerFavoriteCatBreed string
const ( PetCreateOwnerFavoriteCatBreedSiamese PetCreateOwnerFavoriteCatBreed = "siamese" PetCreateOwnerFavoriteCatBreedBengal PetCreateOwnerFavoriteCatBreed = "bengal" PetCreateOwnerFavoriteCatBreedLion PetCreateOwnerFavoriteCatBreed = "lion" PetCreateOwnerFavoriteCatBreedTiger PetCreateOwnerFavoriteCatBreed = "tiger" PetCreateOwnerFavoriteCatBreedLeopard PetCreateOwnerFavoriteCatBreed = "leopard" PetCreateOwnerFavoriteCatBreedOther PetCreateOwnerFavoriteCatBreed = "other" )
func (*PetCreateOwnerFavoriteCatBreed) Decode ¶
func (s *PetCreateOwnerFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteCatBreed from json.
func (PetCreateOwnerFavoriteCatBreed) Encode ¶
func (s PetCreateOwnerFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteCatBreed as json.
func (PetCreateOwnerFavoriteCatBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetCreateOwnerFavoriteCatBreed) MarshalText ¶
func (s PetCreateOwnerFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetCreateOwnerFavoriteCatBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetCreateOwnerFavoriteCatBreed) UnmarshalText ¶
func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetCreateOwnerFavoriteCatBreed) Validate ¶
func (s PetCreateOwnerFavoriteCatBreed) Validate() error
type PetCreateOwnerFavoriteColor ¶
type PetCreateOwnerFavoriteColor string
const ( PetCreateOwnerFavoriteColorRed PetCreateOwnerFavoriteColor = "red" PetCreateOwnerFavoriteColorGreen PetCreateOwnerFavoriteColor = "green" PetCreateOwnerFavoriteColorBlue PetCreateOwnerFavoriteColor = "blue" )
func (*PetCreateOwnerFavoriteColor) Decode ¶
func (s *PetCreateOwnerFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteColor from json.
func (PetCreateOwnerFavoriteColor) Encode ¶
func (s PetCreateOwnerFavoriteColor) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteColor as json.
func (PetCreateOwnerFavoriteColor) MarshalJSON ¶
func (s PetCreateOwnerFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetCreateOwnerFavoriteColor) MarshalText ¶
func (s PetCreateOwnerFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetCreateOwnerFavoriteColor) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetCreateOwnerFavoriteColor) UnmarshalText ¶
func (s *PetCreateOwnerFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetCreateOwnerFavoriteColor) Validate ¶
func (s PetCreateOwnerFavoriteColor) Validate() error
type PetCreateOwnerFavoriteDogBreed ¶
type PetCreateOwnerFavoriteDogBreed string
const (
PetCreateOwnerFavoriteDogBreedKuro PetCreateOwnerFavoriteDogBreed = "Kuro"
)
func (*PetCreateOwnerFavoriteDogBreed) Decode ¶
func (s *PetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteDogBreed from json.
func (PetCreateOwnerFavoriteDogBreed) Encode ¶
func (s PetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteDogBreed as json.
func (PetCreateOwnerFavoriteDogBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetCreateOwnerFavoriteDogBreed) MarshalText ¶
func (s PetCreateOwnerFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetCreateOwnerFavoriteDogBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetCreateOwnerFavoriteDogBreed) UnmarshalText ¶
func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetCreateOwnerFavoriteDogBreed) Validate ¶
func (s PetCreateOwnerFavoriteDogBreed) Validate() error
type PetCreateOwnerFavoriteFishBreed ¶
type PetCreateOwnerFavoriteFishBreed string
const ( PetCreateOwnerFavoriteFishBreedGold PetCreateOwnerFavoriteFishBreed = "gold" PetCreateOwnerFavoriteFishBreedKoi PetCreateOwnerFavoriteFishBreed = "koi" PetCreateOwnerFavoriteFishBreedShark PetCreateOwnerFavoriteFishBreed = "shark" )
func (*PetCreateOwnerFavoriteFishBreed) Decode ¶
func (s *PetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteFishBreed from json.
func (PetCreateOwnerFavoriteFishBreed) Encode ¶
func (s PetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteFishBreed as json.
func (PetCreateOwnerFavoriteFishBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetCreateOwnerFavoriteFishBreed) MarshalText ¶
func (s PetCreateOwnerFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetCreateOwnerFavoriteFishBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetCreateOwnerFavoriteFishBreed) UnmarshalText ¶
func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetCreateOwnerFavoriteFishBreed) Validate ¶
func (s PetCreateOwnerFavoriteFishBreed) Validate() error
type PetFriendsList ¶
type PetFriendsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/Pet_FriendsList
func NewPetFriendsList ¶
func NewPetFriendsList(e *ent.Pet) *PetFriendsList
func NewPetFriendsLists ¶
func NewPetFriendsLists(es []*ent.Pet) []PetFriendsList
func (*PetFriendsList) Decode ¶
func (s *PetFriendsList) Decode(d *jx.Decoder) error
Decode decodes PetFriendsList from json.
func (*PetFriendsList) Elem ¶
func (pe *PetFriendsList) Elem() PetFriendsList
func (*PetFriendsList) Encode ¶
func (s *PetFriendsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetFriendsList) GetBirthday ¶
func (s *PetFriendsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetFriendsList) GetHeight ¶
func (s *PetFriendsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (*PetFriendsList) GetName ¶
func (s *PetFriendsList) GetName() string
GetName returns the value of Name.
func (*PetFriendsList) GetTagID ¶
func (s *PetFriendsList) GetTagID() []byte
GetTagID returns the value of TagID.
func (*PetFriendsList) GetWeight ¶
func (s *PetFriendsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*PetFriendsList) MarshalJSON ¶
func (s *PetFriendsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetFriendsList) SetBirthday ¶
func (s *PetFriendsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetFriendsList) SetHeight ¶
func (s *PetFriendsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*PetFriendsList) SetName ¶
func (s *PetFriendsList) SetName(val string)
SetName sets the value of Name.
func (*PetFriendsList) SetTagID ¶
func (s *PetFriendsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*PetFriendsList) SetWeight ¶
func (s *PetFriendsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*PetFriendsList) UnmarshalJSON ¶
func (s *PetFriendsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetList ¶
type PetList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetList
func NewPetList ¶
func NewPetLists ¶
func (*PetList) GetBirthday ¶
func (s *PetList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetList) SetBirthday ¶
func (s *PetList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetOwnerRead ¶
type PetOwnerRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed PetOwnerReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor PetOwnerReadFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptPetOwnerReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptPetOwnerReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/Pet_OwnerRead
func NewPetOwnerRead ¶
func NewPetOwnerRead(e *ent.User) *PetOwnerRead
func NewPetOwnerReads ¶
func NewPetOwnerReads(es []*ent.User) []PetOwnerRead
func (*PetOwnerRead) Decode ¶
func (s *PetOwnerRead) Decode(d *jx.Decoder) error
Decode decodes PetOwnerRead from json.
func (*PetOwnerRead) Elem ¶
func (u *PetOwnerRead) Elem() PetOwnerRead
func (*PetOwnerRead) Encode ¶
func (s *PetOwnerRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetOwnerRead) GetAge ¶
func (s *PetOwnerRead) GetAge() int64
GetAge returns the value of Age.
func (*PetOwnerRead) GetFavoriteCatBreed ¶
func (s *PetOwnerRead) GetFavoriteCatBreed() PetOwnerReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*PetOwnerRead) GetFavoriteColor ¶
func (s *PetOwnerRead) GetFavoriteColor() PetOwnerReadFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*PetOwnerRead) GetFavoriteDogBreed ¶
func (s *PetOwnerRead) GetFavoriteDogBreed() OptPetOwnerReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*PetOwnerRead) GetFavoriteFishBreed ¶
func (s *PetOwnerRead) GetFavoriteFishBreed() OptPetOwnerReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*PetOwnerRead) GetHeight ¶
func (s *PetOwnerRead) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*PetOwnerRead) GetName ¶
func (s *PetOwnerRead) GetName() string
GetName returns the value of Name.
func (*PetOwnerRead) MarshalJSON ¶
func (s *PetOwnerRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerRead) SetAge ¶
func (s *PetOwnerRead) SetAge(val int64)
SetAge sets the value of Age.
func (*PetOwnerRead) SetFavoriteCatBreed ¶
func (s *PetOwnerRead) SetFavoriteCatBreed(val PetOwnerReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*PetOwnerRead) SetFavoriteColor ¶
func (s *PetOwnerRead) SetFavoriteColor(val PetOwnerReadFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*PetOwnerRead) SetFavoriteDogBreed ¶
func (s *PetOwnerRead) SetFavoriteDogBreed(val OptPetOwnerReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*PetOwnerRead) SetFavoriteFishBreed ¶
func (s *PetOwnerRead) SetFavoriteFishBreed(val OptPetOwnerReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*PetOwnerRead) SetHeight ¶
func (s *PetOwnerRead) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*PetOwnerRead) SetName ¶
func (s *PetOwnerRead) SetName(val string)
SetName sets the value of Name.
func (*PetOwnerRead) UnmarshalJSON ¶
func (s *PetOwnerRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetOwnerRead) Validate ¶
func (s *PetOwnerRead) Validate() error
type PetOwnerReadFavoriteCatBreed ¶
type PetOwnerReadFavoriteCatBreed string
const ( PetOwnerReadFavoriteCatBreedSiamese PetOwnerReadFavoriteCatBreed = "siamese" PetOwnerReadFavoriteCatBreedBengal PetOwnerReadFavoriteCatBreed = "bengal" PetOwnerReadFavoriteCatBreedLion PetOwnerReadFavoriteCatBreed = "lion" PetOwnerReadFavoriteCatBreedTiger PetOwnerReadFavoriteCatBreed = "tiger" PetOwnerReadFavoriteCatBreedLeopard PetOwnerReadFavoriteCatBreed = "leopard" PetOwnerReadFavoriteCatBreedOther PetOwnerReadFavoriteCatBreed = "other" )
func (*PetOwnerReadFavoriteCatBreed) Decode ¶
func (s *PetOwnerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteCatBreed from json.
func (PetOwnerReadFavoriteCatBreed) Encode ¶
func (s PetOwnerReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteCatBreed as json.
func (PetOwnerReadFavoriteCatBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetOwnerReadFavoriteCatBreed) MarshalText ¶
func (s PetOwnerReadFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetOwnerReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetOwnerReadFavoriteCatBreed) UnmarshalText ¶
func (s *PetOwnerReadFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetOwnerReadFavoriteCatBreed) Validate ¶
func (s PetOwnerReadFavoriteCatBreed) Validate() error
type PetOwnerReadFavoriteColor ¶
type PetOwnerReadFavoriteColor string
const ( PetOwnerReadFavoriteColorRed PetOwnerReadFavoriteColor = "red" PetOwnerReadFavoriteColorGreen PetOwnerReadFavoriteColor = "green" PetOwnerReadFavoriteColorBlue PetOwnerReadFavoriteColor = "blue" )
func (*PetOwnerReadFavoriteColor) Decode ¶
func (s *PetOwnerReadFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteColor from json.
func (PetOwnerReadFavoriteColor) Encode ¶
func (s PetOwnerReadFavoriteColor) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteColor as json.
func (PetOwnerReadFavoriteColor) MarshalJSON ¶
func (s PetOwnerReadFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetOwnerReadFavoriteColor) MarshalText ¶
func (s PetOwnerReadFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetOwnerReadFavoriteColor) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetOwnerReadFavoriteColor) UnmarshalText ¶
func (s *PetOwnerReadFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetOwnerReadFavoriteColor) Validate ¶
func (s PetOwnerReadFavoriteColor) Validate() error
type PetOwnerReadFavoriteDogBreed ¶
type PetOwnerReadFavoriteDogBreed string
const (
PetOwnerReadFavoriteDogBreedKuro PetOwnerReadFavoriteDogBreed = "Kuro"
)
func (*PetOwnerReadFavoriteDogBreed) Decode ¶
func (s *PetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteDogBreed from json.
func (PetOwnerReadFavoriteDogBreed) Encode ¶
func (s PetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteDogBreed as json.
func (PetOwnerReadFavoriteDogBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetOwnerReadFavoriteDogBreed) MarshalText ¶
func (s PetOwnerReadFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetOwnerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetOwnerReadFavoriteDogBreed) UnmarshalText ¶
func (s *PetOwnerReadFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetOwnerReadFavoriteDogBreed) Validate ¶
func (s PetOwnerReadFavoriteDogBreed) Validate() error
type PetOwnerReadFavoriteFishBreed ¶
type PetOwnerReadFavoriteFishBreed string
const ( PetOwnerReadFavoriteFishBreedGold PetOwnerReadFavoriteFishBreed = "gold" PetOwnerReadFavoriteFishBreedKoi PetOwnerReadFavoriteFishBreed = "koi" PetOwnerReadFavoriteFishBreedShark PetOwnerReadFavoriteFishBreed = "shark" )
func (*PetOwnerReadFavoriteFishBreed) Decode ¶
func (s *PetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteFishBreed from json.
func (PetOwnerReadFavoriteFishBreed) Encode ¶
func (s PetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteFishBreed as json.
func (PetOwnerReadFavoriteFishBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetOwnerReadFavoriteFishBreed) MarshalText ¶
func (s PetOwnerReadFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetOwnerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetOwnerReadFavoriteFishBreed) UnmarshalText ¶
func (s *PetOwnerReadFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetOwnerReadFavoriteFishBreed) Validate ¶
func (s PetOwnerReadFavoriteFishBreed) Validate() error
type PetRead ¶
type PetRead struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetRead
func NewPetRead ¶
func NewPetReads ¶
func (*PetRead) GetBirthday ¶
func (s *PetRead) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetRead) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetRead) SetBirthday ¶
func (s *PetRead) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetRead) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetRescuerList ¶
type PetRescuerList struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed PetRescuerListFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor PetRescuerListFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptPetRescuerListFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptPetRescuerListFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/Pet_RescuerList
func NewPetRescuerList ¶
func NewPetRescuerList(e *ent.User) *PetRescuerList
func NewPetRescuerLists ¶
func NewPetRescuerLists(es []*ent.User) []PetRescuerList
func (*PetRescuerList) Decode ¶
func (s *PetRescuerList) Decode(d *jx.Decoder) error
Decode decodes PetRescuerList from json.
func (*PetRescuerList) Elem ¶
func (u *PetRescuerList) Elem() PetRescuerList
func (*PetRescuerList) Encode ¶
func (s *PetRescuerList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetRescuerList) GetAge ¶
func (s *PetRescuerList) GetAge() int64
GetAge returns the value of Age.
func (*PetRescuerList) GetFavoriteCatBreed ¶
func (s *PetRescuerList) GetFavoriteCatBreed() PetRescuerListFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*PetRescuerList) GetFavoriteColor ¶
func (s *PetRescuerList) GetFavoriteColor() PetRescuerListFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*PetRescuerList) GetFavoriteDogBreed ¶
func (s *PetRescuerList) GetFavoriteDogBreed() OptPetRescuerListFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*PetRescuerList) GetFavoriteFishBreed ¶
func (s *PetRescuerList) GetFavoriteFishBreed() OptPetRescuerListFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*PetRescuerList) GetHeight ¶
func (s *PetRescuerList) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*PetRescuerList) GetName ¶
func (s *PetRescuerList) GetName() string
GetName returns the value of Name.
func (*PetRescuerList) MarshalJSON ¶
func (s *PetRescuerList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetRescuerList) SetAge ¶
func (s *PetRescuerList) SetAge(val int64)
SetAge sets the value of Age.
func (*PetRescuerList) SetFavoriteCatBreed ¶
func (s *PetRescuerList) SetFavoriteCatBreed(val PetRescuerListFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*PetRescuerList) SetFavoriteColor ¶
func (s *PetRescuerList) SetFavoriteColor(val PetRescuerListFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*PetRescuerList) SetFavoriteDogBreed ¶
func (s *PetRescuerList) SetFavoriteDogBreed(val OptPetRescuerListFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*PetRescuerList) SetFavoriteFishBreed ¶
func (s *PetRescuerList) SetFavoriteFishBreed(val OptPetRescuerListFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*PetRescuerList) SetHeight ¶
func (s *PetRescuerList) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*PetRescuerList) SetName ¶
func (s *PetRescuerList) SetName(val string)
SetName sets the value of Name.
func (*PetRescuerList) UnmarshalJSON ¶
func (s *PetRescuerList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetRescuerList) Validate ¶
func (s *PetRescuerList) Validate() error
type PetRescuerListFavoriteCatBreed ¶
type PetRescuerListFavoriteCatBreed string
const ( PetRescuerListFavoriteCatBreedSiamese PetRescuerListFavoriteCatBreed = "siamese" PetRescuerListFavoriteCatBreedBengal PetRescuerListFavoriteCatBreed = "bengal" PetRescuerListFavoriteCatBreedLion PetRescuerListFavoriteCatBreed = "lion" PetRescuerListFavoriteCatBreedTiger PetRescuerListFavoriteCatBreed = "tiger" PetRescuerListFavoriteCatBreedLeopard PetRescuerListFavoriteCatBreed = "leopard" PetRescuerListFavoriteCatBreedOther PetRescuerListFavoriteCatBreed = "other" )
func (*PetRescuerListFavoriteCatBreed) Decode ¶
func (s *PetRescuerListFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteCatBreed from json.
func (PetRescuerListFavoriteCatBreed) Encode ¶
func (s PetRescuerListFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteCatBreed as json.
func (PetRescuerListFavoriteCatBreed) MarshalJSON ¶
func (s PetRescuerListFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetRescuerListFavoriteCatBreed) MarshalText ¶
func (s PetRescuerListFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetRescuerListFavoriteCatBreed) UnmarshalJSON ¶
func (s *PetRescuerListFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetRescuerListFavoriteCatBreed) UnmarshalText ¶
func (s *PetRescuerListFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetRescuerListFavoriteCatBreed) Validate ¶
func (s PetRescuerListFavoriteCatBreed) Validate() error
type PetRescuerListFavoriteColor ¶
type PetRescuerListFavoriteColor string
const ( PetRescuerListFavoriteColorRed PetRescuerListFavoriteColor = "red" PetRescuerListFavoriteColorGreen PetRescuerListFavoriteColor = "green" PetRescuerListFavoriteColorBlue PetRescuerListFavoriteColor = "blue" )
func (*PetRescuerListFavoriteColor) Decode ¶
func (s *PetRescuerListFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteColor from json.
func (PetRescuerListFavoriteColor) Encode ¶
func (s PetRescuerListFavoriteColor) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteColor as json.
func (PetRescuerListFavoriteColor) MarshalJSON ¶
func (s PetRescuerListFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetRescuerListFavoriteColor) MarshalText ¶
func (s PetRescuerListFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetRescuerListFavoriteColor) UnmarshalJSON ¶
func (s *PetRescuerListFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetRescuerListFavoriteColor) UnmarshalText ¶
func (s *PetRescuerListFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetRescuerListFavoriteColor) Validate ¶
func (s PetRescuerListFavoriteColor) Validate() error
type PetRescuerListFavoriteDogBreed ¶
type PetRescuerListFavoriteDogBreed string
const (
PetRescuerListFavoriteDogBreedKuro PetRescuerListFavoriteDogBreed = "Kuro"
)
func (*PetRescuerListFavoriteDogBreed) Decode ¶
func (s *PetRescuerListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteDogBreed from json.
func (PetRescuerListFavoriteDogBreed) Encode ¶
func (s PetRescuerListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteDogBreed as json.
func (PetRescuerListFavoriteDogBreed) MarshalJSON ¶
func (s PetRescuerListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetRescuerListFavoriteDogBreed) MarshalText ¶
func (s PetRescuerListFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetRescuerListFavoriteDogBreed) UnmarshalJSON ¶
func (s *PetRescuerListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetRescuerListFavoriteDogBreed) UnmarshalText ¶
func (s *PetRescuerListFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetRescuerListFavoriteDogBreed) Validate ¶
func (s PetRescuerListFavoriteDogBreed) Validate() error
type PetRescuerListFavoriteFishBreed ¶
type PetRescuerListFavoriteFishBreed string
const ( PetRescuerListFavoriteFishBreedGold PetRescuerListFavoriteFishBreed = "gold" PetRescuerListFavoriteFishBreedKoi PetRescuerListFavoriteFishBreed = "koi" PetRescuerListFavoriteFishBreedShark PetRescuerListFavoriteFishBreed = "shark" )
func (*PetRescuerListFavoriteFishBreed) Decode ¶
func (s *PetRescuerListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetRescuerListFavoriteFishBreed from json.
func (PetRescuerListFavoriteFishBreed) Encode ¶
func (s PetRescuerListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetRescuerListFavoriteFishBreed as json.
func (PetRescuerListFavoriteFishBreed) MarshalJSON ¶
func (s PetRescuerListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PetRescuerListFavoriteFishBreed) MarshalText ¶
func (s PetRescuerListFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PetRescuerListFavoriteFishBreed) UnmarshalJSON ¶
func (s *PetRescuerListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PetRescuerListFavoriteFishBreed) UnmarshalText ¶
func (s *PetRescuerListFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PetRescuerListFavoriteFishBreed) Validate ¶
func (s PetRescuerListFavoriteFishBreed) Validate() error
type PetUpdate ¶
type PetUpdate struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetUpdate
func NewPetUpdate ¶
func NewPetUpdates ¶
func (*PetUpdate) GetBirthday ¶
func (s *PetUpdate) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetUpdate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetUpdate) SetBirthday ¶
func (s *PetUpdate) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetUpdate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R400 ¶
type R400 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (*R400) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R400) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R404 ¶
type R404 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (*R404) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R404) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R409 ¶
type R409 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (*R409) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R409) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R500 ¶
type R500 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (*R500) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R500) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ReadAllTypesParams ¶
type ReadAllTypesParams struct { // ID of the AllTypes. ID int64 }
ReadAllTypesParams is parameters of readAllTypes operation.
type ReadAllTypesRes ¶
type ReadAllTypesRes interface {
// contains filtered or unexported methods
}
type ReadCategoryParams ¶
type ReadCategoryParams struct { // ID of the Category. ID int }
ReadCategoryParams is parameters of readCategory operation.
type ReadCategoryRes ¶
type ReadCategoryRes interface {
// contains filtered or unexported methods
}
type ReadHatParams ¶
type ReadHatParams struct { // ID of the Hat. ID int }
ReadHatParams is parameters of readHat operation.
type ReadHatRes ¶
type ReadHatRes interface {
// contains filtered or unexported methods
}
type ReadHatWearerParams ¶
type ReadHatWearerParams struct { // ID of the Hat. ID int }
ReadHatWearerParams is parameters of readHatWearer operation.
type ReadHatWearerRes ¶
type ReadHatWearerRes interface {
// contains filtered or unexported methods
}
type ReadPetOwnerParams ¶
type ReadPetOwnerParams struct { // ID of the Pet. ID int }
ReadPetOwnerParams is parameters of readPetOwner operation.
type ReadPetOwnerRes ¶
type ReadPetOwnerRes interface {
// contains filtered or unexported methods
}
type ReadPetParams ¶
type ReadPetParams struct { // ID of the Pet. ID int }
ReadPetParams is parameters of readPet operation.
type ReadPetRes ¶
type ReadPetRes interface {
// contains filtered or unexported methods
}
type ReadUserBestFriendParams ¶
type ReadUserBestFriendParams struct { // ID of the User. ID int }
ReadUserBestFriendParams is parameters of readUserBestFriend operation.
type ReadUserBestFriendRes ¶
type ReadUserBestFriendRes interface {
// contains filtered or unexported methods
}
type ReadUserFavoriteHatParams ¶
type ReadUserFavoriteHatParams struct { // ID of the User. ID int }
ReadUserFavoriteHatParams is parameters of readUserFavoriteHat operation.
type ReadUserFavoriteHatRes ¶
type ReadUserFavoriteHatRes interface {
// contains filtered or unexported methods
}
type ReadUserParams ¶
type ReadUserParams struct { // ID of the User. ID int }
ReadUserParams is parameters of readUser operation.
type ReadUserRes ¶
type ReadUserRes interface {
// contains filtered or unexported methods
}
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) CreateAllTypes ¶
func (UnimplementedHandler) CreateAllTypes(ctx context.Context, req *CreateAllTypesReq) (r CreateAllTypesRes, _ error)
CreateAllTypes implements createAllTypes operation.
Creates a new AllTypes and persists it to storage.
POST /all-types
func (UnimplementedHandler) CreateCategory ¶
func (UnimplementedHandler) CreateCategory(ctx context.Context, req *CreateCategoryReq) (r CreateCategoryRes, _ error)
CreateCategory implements createCategory operation.
Creates a new Category and persists it to storage.
POST /categories
func (UnimplementedHandler) CreateHat ¶
func (UnimplementedHandler) CreateHat(ctx context.Context, req *CreateHatReq) (r CreateHatRes, _ error)
CreateHat implements createHat operation.
Creates a new Hat and persists it to storage.
POST /hats
func (UnimplementedHandler) CreatePet ¶
func (UnimplementedHandler) CreatePet(ctx context.Context, req *CreatePetReq) (r CreatePetRes, _ error)
CreatePet implements createPet operation.
Creates a new Pet and persists it to storage.
POST /pets
func (UnimplementedHandler) CreateUser ¶
func (UnimplementedHandler) CreateUser(ctx context.Context, req *CreateUserReq) (r CreateUserRes, _ error)
CreateUser implements createUser operation.
Creates a new User and persists it to storage.
POST /users
func (UnimplementedHandler) DeleteAllTypes ¶
func (UnimplementedHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (r DeleteAllTypesRes, _ error)
DeleteAllTypes implements deleteAllTypes operation.
Deletes the AllTypes with the requested ID.
DELETE /all-types/{id}
func (UnimplementedHandler) DeleteCategory ¶
func (UnimplementedHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (r DeleteCategoryRes, _ error)
DeleteCategory implements deleteCategory operation.
Deletes the Category with the requested ID.
DELETE /categories/{id}
func (UnimplementedHandler) DeleteHat ¶
func (UnimplementedHandler) DeleteHat(ctx context.Context, params DeleteHatParams) (r DeleteHatRes, _ error)
DeleteHat implements deleteHat operation.
Deletes the Hat with the requested ID.
DELETE /hats/{id}
func (UnimplementedHandler) DeletePet ¶
func (UnimplementedHandler) DeletePet(ctx context.Context, params DeletePetParams) (r DeletePetRes, _ error)
DeletePet implements deletePet operation.
Deletes the Pet with the requested ID.
DELETE /pets/{id}
func (UnimplementedHandler) DeleteUser ¶
func (UnimplementedHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (r DeleteUserRes, _ error)
DeleteUser implements deleteUser operation.
Deletes the User with the requested ID.
DELETE /users/{id}
func (UnimplementedHandler) ListAllTypes ¶
func (UnimplementedHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (r ListAllTypesRes, _ error)
ListAllTypes implements listAllTypes operation.
List AllTypes.
GET /all-types
func (UnimplementedHandler) ListCategory ¶
func (UnimplementedHandler) ListCategory(ctx context.Context, params ListCategoryParams) (r ListCategoryRes, _ error)
ListCategory implements listCategory operation.
List Categories.
GET /categories
func (UnimplementedHandler) ListCategoryPets ¶
func (UnimplementedHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (r ListCategoryPetsRes, _ error)
ListCategoryPets implements listCategoryPets operation.
List attached Pets.
GET /categories/{id}/pets
func (UnimplementedHandler) ListHat ¶
func (UnimplementedHandler) ListHat(ctx context.Context, params ListHatParams) (r ListHatRes, _ error)
ListHat implements listHat operation.
List Hats.
GET /hats
func (UnimplementedHandler) ListPet ¶
func (UnimplementedHandler) ListPet(ctx context.Context, params ListPetParams) (r ListPetRes, _ error)
ListPet implements listPet operation.
List Pets.
GET /pets
func (UnimplementedHandler) ListPetCategories ¶
func (UnimplementedHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (r ListPetCategoriesRes, _ error)
ListPetCategories implements listPetCategories operation.
List attached Categories.
GET /pets/{id}/categories
func (UnimplementedHandler) ListPetFriends ¶
func (UnimplementedHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (r ListPetFriendsRes, _ error)
ListPetFriends implements listPetFriends operation.
List attached Friends.
GET /pets/{id}/friends
func (UnimplementedHandler) ListPetRescuer ¶
func (UnimplementedHandler) ListPetRescuer(ctx context.Context, params ListPetRescuerParams) (r ListPetRescuerRes, _ error)
ListPetRescuer implements listPetRescuer operation.
List attached Rescuers.
GET /pets/{id}/rescuer
func (UnimplementedHandler) ListUser ¶
func (UnimplementedHandler) ListUser(ctx context.Context, params ListUserParams) (r ListUserRes, _ error)
ListUser implements listUser operation.
List Users.
GET /users
func (UnimplementedHandler) ListUserAnimalsSaved ¶
func (UnimplementedHandler) ListUserAnimalsSaved(ctx context.Context, params ListUserAnimalsSavedParams) (r ListUserAnimalsSavedRes, _ error)
ListUserAnimalsSaved implements listUserAnimalsSaved operation.
List attached AnimalsSaveds.
GET /users/{id}/animals-saved
func (UnimplementedHandler) ListUserPets ¶
func (UnimplementedHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (r ListUserPetsRes, _ error)
ListUserPets implements listUserPets operation.
List attached Pets.
GET /users/{id}/pets
func (UnimplementedHandler) ReadAllTypes ¶
func (UnimplementedHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (r ReadAllTypesRes, _ error)
ReadAllTypes implements readAllTypes operation.
Finds the AllTypes with the requested ID and returns it.
GET /all-types/{id}
func (UnimplementedHandler) ReadCategory ¶
func (UnimplementedHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (r ReadCategoryRes, _ error)
ReadCategory implements readCategory operation.
Finds the Category with the requested ID and returns it.
GET /categories/{id}
func (UnimplementedHandler) ReadHat ¶
func (UnimplementedHandler) ReadHat(ctx context.Context, params ReadHatParams) (r ReadHatRes, _ error)
ReadHat implements readHat operation.
Finds the Hat with the requested ID and returns it.
GET /hats/{id}
func (UnimplementedHandler) ReadHatWearer ¶
func (UnimplementedHandler) ReadHatWearer(ctx context.Context, params ReadHatWearerParams) (r ReadHatWearerRes, _ error)
ReadHatWearer implements readHatWearer operation.
Find the attached User of the Hat with the given ID.
GET /hats/{id}/wearer
func (UnimplementedHandler) ReadPet ¶
func (UnimplementedHandler) ReadPet(ctx context.Context, params ReadPetParams) (r ReadPetRes, _ error)
ReadPet implements readPet operation.
Finds the Pet with the requested ID and returns it.
GET /pets/{id}
func (UnimplementedHandler) ReadPetOwner ¶
func (UnimplementedHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (r ReadPetOwnerRes, _ error)
ReadPetOwner implements readPetOwner operation.
Find the attached User of the Pet with the given ID.
GET /pets/{id}/owner
func (UnimplementedHandler) ReadUser ¶
func (UnimplementedHandler) ReadUser(ctx context.Context, params ReadUserParams) (r ReadUserRes, _ error)
ReadUser implements readUser operation.
Finds the User with the requested ID and returns it.
GET /users/{id}
func (UnimplementedHandler) ReadUserBestFriend ¶
func (UnimplementedHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (r ReadUserBestFriendRes, _ error)
ReadUserBestFriend implements readUserBestFriend operation.
Find the attached User of the User with the given ID.
GET /users/{id}/best-friend
func (UnimplementedHandler) ReadUserFavoriteHat ¶
func (UnimplementedHandler) ReadUserFavoriteHat(ctx context.Context, params ReadUserFavoriteHatParams) (r ReadUserFavoriteHatRes, _ error)
ReadUserFavoriteHat implements readUserFavoriteHat operation.
Find the attached Hat of the User with the given ID.
GET /users/{id}/favorite-hat
func (UnimplementedHandler) UpdateAllTypes ¶
func (UnimplementedHandler) UpdateAllTypes(ctx context.Context, req *UpdateAllTypesReq, params UpdateAllTypesParams) (r UpdateAllTypesRes, _ error)
UpdateAllTypes implements updateAllTypes operation.
Updates a AllTypes and persists changes to storage.
PATCH /all-types/{id}
func (UnimplementedHandler) UpdateCategory ¶
func (UnimplementedHandler) UpdateCategory(ctx context.Context, req *UpdateCategoryReq, params UpdateCategoryParams) (r UpdateCategoryRes, _ error)
UpdateCategory implements updateCategory operation.
Updates a Category and persists changes to storage.
PATCH /categories/{id}
func (UnimplementedHandler) UpdateHat ¶
func (UnimplementedHandler) UpdateHat(ctx context.Context, req *UpdateHatReq, params UpdateHatParams) (r UpdateHatRes, _ error)
UpdateHat implements updateHat operation.
Updates a Hat and persists changes to storage.
PATCH /hats/{id}
func (UnimplementedHandler) UpdatePet ¶
func (UnimplementedHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (r UpdatePetRes, _ error)
UpdatePet implements updatePet operation.
Updates a Pet and persists changes to storage.
PATCH /pets/{id}
func (UnimplementedHandler) UpdateUser ¶
func (UnimplementedHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, params UpdateUserParams) (r UpdateUserRes, _ error)
UpdateUser implements updateUser operation.
Updates a User and persists changes to storage.
PATCH /users/{id}
type UpdateAllTypesParams ¶
type UpdateAllTypesParams struct { // ID of the AllTypes. ID int64 }
UpdateAllTypesParams is parameters of updateAllTypes operation.
type UpdateAllTypesReq ¶
type UpdateAllTypesReq struct { Int OptInt `json:"int"` Int8 OptInt32 `json:"int8"` Int16 OptInt32 `json:"int16"` Int32 OptInt32 `json:"int32"` Int64 OptInt64 `json:"int64"` Uint OptInt64 `json:"uint"` Uint8 OptInt32 `json:"uint8"` Uint16 OptInt32 `json:"uint16"` Uint32 OptInt64 `json:"uint32"` Uint64 OptInt64 `json:"uint64"` Float32 OptFloat32 `json:"float32"` Float64 OptFloat64 `json:"float64"` StringType OptString `json:"string_type"` Bool OptBool `json:"bool"` UUID OptUUID `json:"uuid"` Time OptDateTime `json:"time"` Text OptString `json:"text"` State OptUpdateAllTypesReqState `json:"state"` Bytes []byte `json:"bytes"` Nilable OptString `json:"nilable"` }
func (*UpdateAllTypesReq) Decode ¶
func (s *UpdateAllTypesReq) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReq from json.
func (*UpdateAllTypesReq) Encode ¶
func (s *UpdateAllTypesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateAllTypesReq) GetBool ¶
func (s *UpdateAllTypesReq) GetBool() OptBool
GetBool returns the value of Bool.
func (*UpdateAllTypesReq) GetBytes ¶
func (s *UpdateAllTypesReq) GetBytes() []byte
GetBytes returns the value of Bytes.
func (*UpdateAllTypesReq) GetFloat32 ¶
func (s *UpdateAllTypesReq) GetFloat32() OptFloat32
GetFloat32 returns the value of Float32.
func (*UpdateAllTypesReq) GetFloat64 ¶
func (s *UpdateAllTypesReq) GetFloat64() OptFloat64
GetFloat64 returns the value of Float64.
func (*UpdateAllTypesReq) GetInt ¶
func (s *UpdateAllTypesReq) GetInt() OptInt
GetInt returns the value of Int.
func (*UpdateAllTypesReq) GetInt16 ¶
func (s *UpdateAllTypesReq) GetInt16() OptInt32
GetInt16 returns the value of Int16.
func (*UpdateAllTypesReq) GetInt32 ¶
func (s *UpdateAllTypesReq) GetInt32() OptInt32
GetInt32 returns the value of Int32.
func (*UpdateAllTypesReq) GetInt64 ¶
func (s *UpdateAllTypesReq) GetInt64() OptInt64
GetInt64 returns the value of Int64.
func (*UpdateAllTypesReq) GetInt8 ¶
func (s *UpdateAllTypesReq) GetInt8() OptInt32
GetInt8 returns the value of Int8.
func (*UpdateAllTypesReq) GetNilable ¶
func (s *UpdateAllTypesReq) GetNilable() OptString
GetNilable returns the value of Nilable.
func (*UpdateAllTypesReq) GetState ¶
func (s *UpdateAllTypesReq) GetState() OptUpdateAllTypesReqState
GetState returns the value of State.
func (*UpdateAllTypesReq) GetStringType ¶
func (s *UpdateAllTypesReq) GetStringType() OptString
GetStringType returns the value of StringType.
func (*UpdateAllTypesReq) GetText ¶
func (s *UpdateAllTypesReq) GetText() OptString
GetText returns the value of Text.
func (*UpdateAllTypesReq) GetTime ¶
func (s *UpdateAllTypesReq) GetTime() OptDateTime
GetTime returns the value of Time.
func (*UpdateAllTypesReq) GetUUID ¶
func (s *UpdateAllTypesReq) GetUUID() OptUUID
GetUUID returns the value of UUID.
func (*UpdateAllTypesReq) GetUint ¶
func (s *UpdateAllTypesReq) GetUint() OptInt64
GetUint returns the value of Uint.
func (*UpdateAllTypesReq) GetUint16 ¶
func (s *UpdateAllTypesReq) GetUint16() OptInt32
GetUint16 returns the value of Uint16.
func (*UpdateAllTypesReq) GetUint32 ¶
func (s *UpdateAllTypesReq) GetUint32() OptInt64
GetUint32 returns the value of Uint32.
func (*UpdateAllTypesReq) GetUint64 ¶
func (s *UpdateAllTypesReq) GetUint64() OptInt64
GetUint64 returns the value of Uint64.
func (*UpdateAllTypesReq) GetUint8 ¶
func (s *UpdateAllTypesReq) GetUint8() OptInt32
GetUint8 returns the value of Uint8.
func (*UpdateAllTypesReq) MarshalJSON ¶
func (s *UpdateAllTypesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAllTypesReq) SetBool ¶
func (s *UpdateAllTypesReq) SetBool(val OptBool)
SetBool sets the value of Bool.
func (*UpdateAllTypesReq) SetBytes ¶
func (s *UpdateAllTypesReq) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*UpdateAllTypesReq) SetFloat32 ¶
func (s *UpdateAllTypesReq) SetFloat32(val OptFloat32)
SetFloat32 sets the value of Float32.
func (*UpdateAllTypesReq) SetFloat64 ¶
func (s *UpdateAllTypesReq) SetFloat64(val OptFloat64)
SetFloat64 sets the value of Float64.
func (*UpdateAllTypesReq) SetInt ¶
func (s *UpdateAllTypesReq) SetInt(val OptInt)
SetInt sets the value of Int.
func (*UpdateAllTypesReq) SetInt16 ¶
func (s *UpdateAllTypesReq) SetInt16(val OptInt32)
SetInt16 sets the value of Int16.
func (*UpdateAllTypesReq) SetInt32 ¶
func (s *UpdateAllTypesReq) SetInt32(val OptInt32)
SetInt32 sets the value of Int32.
func (*UpdateAllTypesReq) SetInt64 ¶
func (s *UpdateAllTypesReq) SetInt64(val OptInt64)
SetInt64 sets the value of Int64.
func (*UpdateAllTypesReq) SetInt8 ¶
func (s *UpdateAllTypesReq) SetInt8(val OptInt32)
SetInt8 sets the value of Int8.
func (*UpdateAllTypesReq) SetNilable ¶
func (s *UpdateAllTypesReq) SetNilable(val OptString)
SetNilable sets the value of Nilable.
func (*UpdateAllTypesReq) SetState ¶
func (s *UpdateAllTypesReq) SetState(val OptUpdateAllTypesReqState)
SetState sets the value of State.
func (*UpdateAllTypesReq) SetStringType ¶
func (s *UpdateAllTypesReq) SetStringType(val OptString)
SetStringType sets the value of StringType.
func (*UpdateAllTypesReq) SetText ¶
func (s *UpdateAllTypesReq) SetText(val OptString)
SetText sets the value of Text.
func (*UpdateAllTypesReq) SetTime ¶
func (s *UpdateAllTypesReq) SetTime(val OptDateTime)
SetTime sets the value of Time.
func (*UpdateAllTypesReq) SetUUID ¶
func (s *UpdateAllTypesReq) SetUUID(val OptUUID)
SetUUID sets the value of UUID.
func (*UpdateAllTypesReq) SetUint ¶
func (s *UpdateAllTypesReq) SetUint(val OptInt64)
SetUint sets the value of Uint.
func (*UpdateAllTypesReq) SetUint16 ¶
func (s *UpdateAllTypesReq) SetUint16(val OptInt32)
SetUint16 sets the value of Uint16.
func (*UpdateAllTypesReq) SetUint32 ¶
func (s *UpdateAllTypesReq) SetUint32(val OptInt64)
SetUint32 sets the value of Uint32.
func (*UpdateAllTypesReq) SetUint64 ¶
func (s *UpdateAllTypesReq) SetUint64(val OptInt64)
SetUint64 sets the value of Uint64.
func (*UpdateAllTypesReq) SetUint8 ¶
func (s *UpdateAllTypesReq) SetUint8(val OptInt32)
SetUint8 sets the value of Uint8.
func (*UpdateAllTypesReq) UnmarshalJSON ¶
func (s *UpdateAllTypesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateAllTypesReq) Validate ¶
func (s *UpdateAllTypesReq) Validate() error
type UpdateAllTypesReqState ¶
type UpdateAllTypesReqState string
const ( UpdateAllTypesReqStateOn UpdateAllTypesReqState = "on" UpdateAllTypesReqStateOff UpdateAllTypesReqState = "off" )
func (*UpdateAllTypesReqState) Decode ¶
func (s *UpdateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReqState from json.
func (UpdateAllTypesReqState) Encode ¶
func (s UpdateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes UpdateAllTypesReqState as json.
func (UpdateAllTypesReqState) MarshalJSON ¶
func (s UpdateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UpdateAllTypesReqState) MarshalText ¶
func (s UpdateAllTypesReqState) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UpdateAllTypesReqState) UnmarshalJSON ¶
func (s *UpdateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateAllTypesReqState) UnmarshalText ¶
func (s *UpdateAllTypesReqState) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UpdateAllTypesReqState) Validate ¶
func (s UpdateAllTypesReqState) Validate() error
type UpdateAllTypesRes ¶
type UpdateAllTypesRes interface {
// contains filtered or unexported methods
}
type UpdateCategoryParams ¶
type UpdateCategoryParams struct { // ID of the Category. ID int }
UpdateCategoryParams is parameters of updateCategory operation.
type UpdateCategoryReq ¶
func (*UpdateCategoryReq) Decode ¶
func (s *UpdateCategoryReq) Decode(d *jx.Decoder) error
Decode decodes UpdateCategoryReq from json.
func (*UpdateCategoryReq) Encode ¶
func (s *UpdateCategoryReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateCategoryReq) GetName ¶
func (s *UpdateCategoryReq) GetName() OptString
GetName returns the value of Name.
func (*UpdateCategoryReq) GetPets ¶
func (s *UpdateCategoryReq) GetPets() []int
GetPets returns the value of Pets.
func (*UpdateCategoryReq) MarshalJSON ¶
func (s *UpdateCategoryReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateCategoryReq) SetName ¶
func (s *UpdateCategoryReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateCategoryReq) SetPets ¶
func (s *UpdateCategoryReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*UpdateCategoryReq) UnmarshalJSON ¶
func (s *UpdateCategoryReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateCategoryRes ¶
type UpdateCategoryRes interface {
// contains filtered or unexported methods
}
type UpdateHatParams ¶
type UpdateHatParams struct { // ID of the Hat. ID int }
UpdateHatParams is parameters of updateHat operation.
type UpdateHatReq ¶
func (*UpdateHatReq) Decode ¶
func (s *UpdateHatReq) Decode(d *jx.Decoder) error
Decode decodes UpdateHatReq from json.
func (*UpdateHatReq) Encode ¶
func (s *UpdateHatReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateHatReq) GetName ¶
func (s *UpdateHatReq) GetName() OptString
GetName returns the value of Name.
func (*UpdateHatReq) GetWearer ¶
func (s *UpdateHatReq) GetWearer() OptInt
GetWearer returns the value of Wearer.
func (*UpdateHatReq) MarshalJSON ¶
func (s *UpdateHatReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateHatReq) SetName ¶
func (s *UpdateHatReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateHatReq) SetWearer ¶
func (s *UpdateHatReq) SetWearer(val OptInt)
SetWearer sets the value of Wearer.
func (*UpdateHatReq) UnmarshalJSON ¶
func (s *UpdateHatReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateHatRes ¶
type UpdateHatRes interface {
// contains filtered or unexported methods
}
type UpdatePetParams ¶
type UpdatePetParams struct { // ID of the Pet. ID int }
UpdatePetParams is parameters of updatePet operation.
type UpdatePetReq ¶
type UpdatePetReq struct { Name OptString `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` Categories []int `json:"categories"` Owner OptInt `json:"owner"` Rescuer []int `json:"rescuer"` Friends []int `json:"friends"` }
func (*UpdatePetReq) Decode ¶
func (s *UpdatePetReq) Decode(d *jx.Decoder) error
Decode decodes UpdatePetReq from json.
func (*UpdatePetReq) Encode ¶
func (s *UpdatePetReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdatePetReq) GetBirthday ¶
func (s *UpdatePetReq) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*UpdatePetReq) GetCategories ¶
func (s *UpdatePetReq) GetCategories() []int
GetCategories returns the value of Categories.
func (*UpdatePetReq) GetFriends ¶
func (s *UpdatePetReq) GetFriends() []int
GetFriends returns the value of Friends.
func (*UpdatePetReq) GetHeight ¶
func (s *UpdatePetReq) GetHeight() OptInt
GetHeight returns the value of Height.
func (*UpdatePetReq) GetName ¶
func (s *UpdatePetReq) GetName() OptString
GetName returns the value of Name.
func (*UpdatePetReq) GetOwner ¶
func (s *UpdatePetReq) GetOwner() OptInt
GetOwner returns the value of Owner.
func (*UpdatePetReq) GetRescuer ¶
func (s *UpdatePetReq) GetRescuer() []int
GetRescuer returns the value of Rescuer.
func (*UpdatePetReq) GetTagID ¶
func (s *UpdatePetReq) GetTagID() []byte
GetTagID returns the value of TagID.
func (*UpdatePetReq) GetWeight ¶
func (s *UpdatePetReq) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*UpdatePetReq) MarshalJSON ¶
func (s *UpdatePetReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdatePetReq) SetBirthday ¶
func (s *UpdatePetReq) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*UpdatePetReq) SetCategories ¶
func (s *UpdatePetReq) SetCategories(val []int)
SetCategories sets the value of Categories.
func (*UpdatePetReq) SetFriends ¶
func (s *UpdatePetReq) SetFriends(val []int)
SetFriends sets the value of Friends.
func (*UpdatePetReq) SetHeight ¶
func (s *UpdatePetReq) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*UpdatePetReq) SetName ¶
func (s *UpdatePetReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdatePetReq) SetOwner ¶
func (s *UpdatePetReq) SetOwner(val OptInt)
SetOwner sets the value of Owner.
func (*UpdatePetReq) SetRescuer ¶
func (s *UpdatePetReq) SetRescuer(val []int)
SetRescuer sets the value of Rescuer.
func (*UpdatePetReq) SetTagID ¶
func (s *UpdatePetReq) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*UpdatePetReq) SetWeight ¶
func (s *UpdatePetReq) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*UpdatePetReq) UnmarshalJSON ¶
func (s *UpdatePetReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdatePetRes ¶
type UpdatePetRes interface {
// contains filtered or unexported methods
}
type UpdateUserParams ¶
type UpdateUserParams struct { // ID of the User. ID int }
UpdateUserParams is parameters of updateUser operation.
type UpdateUserReq ¶
type UpdateUserReq struct { Name OptString `json:"name"` Age OptInt64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed OptUpdateUserReqFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUpdateUserReqFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUpdateUserReqFavoriteFishBreed `json:"favorite_fish_breed"` Pets []int `json:"pets"` AnimalsSaved []int `json:"animals_saved"` BestFriend OptInt `json:"best_friend"` FavoriteHat OptInt `json:"favorite_hat"` }
func (*UpdateUserReq) Decode ¶
func (s *UpdateUserReq) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReq from json.
func (*UpdateUserReq) Encode ¶
func (s *UpdateUserReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateUserReq) GetAge ¶
func (s *UpdateUserReq) GetAge() OptInt64
GetAge returns the value of Age.
func (*UpdateUserReq) GetAnimalsSaved ¶
func (s *UpdateUserReq) GetAnimalsSaved() []int
GetAnimalsSaved returns the value of AnimalsSaved.
func (*UpdateUserReq) GetBestFriend ¶
func (s *UpdateUserReq) GetBestFriend() OptInt
GetBestFriend returns the value of BestFriend.
func (*UpdateUserReq) GetFavoriteCatBreed ¶
func (s *UpdateUserReq) GetFavoriteCatBreed() OptUpdateUserReqFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UpdateUserReq) GetFavoriteDogBreed ¶
func (s *UpdateUserReq) GetFavoriteDogBreed() OptUpdateUserReqFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UpdateUserReq) GetFavoriteFishBreed ¶
func (s *UpdateUserReq) GetFavoriteFishBreed() OptUpdateUserReqFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UpdateUserReq) GetFavoriteHat ¶
func (s *UpdateUserReq) GetFavoriteHat() OptInt
GetFavoriteHat returns the value of FavoriteHat.
func (*UpdateUserReq) GetHeight ¶
func (s *UpdateUserReq) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*UpdateUserReq) GetName ¶
func (s *UpdateUserReq) GetName() OptString
GetName returns the value of Name.
func (*UpdateUserReq) GetPets ¶
func (s *UpdateUserReq) GetPets() []int
GetPets returns the value of Pets.
func (*UpdateUserReq) MarshalJSON ¶
func (s *UpdateUserReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateUserReq) SetAge ¶
func (s *UpdateUserReq) SetAge(val OptInt64)
SetAge sets the value of Age.
func (*UpdateUserReq) SetAnimalsSaved ¶
func (s *UpdateUserReq) SetAnimalsSaved(val []int)
SetAnimalsSaved sets the value of AnimalsSaved.
func (*UpdateUserReq) SetBestFriend ¶
func (s *UpdateUserReq) SetBestFriend(val OptInt)
SetBestFriend sets the value of BestFriend.
func (*UpdateUserReq) SetFavoriteCatBreed ¶
func (s *UpdateUserReq) SetFavoriteCatBreed(val OptUpdateUserReqFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UpdateUserReq) SetFavoriteDogBreed ¶
func (s *UpdateUserReq) SetFavoriteDogBreed(val OptUpdateUserReqFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UpdateUserReq) SetFavoriteFishBreed ¶
func (s *UpdateUserReq) SetFavoriteFishBreed(val OptUpdateUserReqFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UpdateUserReq) SetFavoriteHat ¶
func (s *UpdateUserReq) SetFavoriteHat(val OptInt)
SetFavoriteHat sets the value of FavoriteHat.
func (*UpdateUserReq) SetHeight ¶
func (s *UpdateUserReq) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UpdateUserReq) SetName ¶
func (s *UpdateUserReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateUserReq) SetPets ¶
func (s *UpdateUserReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*UpdateUserReq) UnmarshalJSON ¶
func (s *UpdateUserReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateUserReq) Validate ¶
func (s *UpdateUserReq) Validate() error
type UpdateUserReqFavoriteCatBreed ¶
type UpdateUserReqFavoriteCatBreed string
const ( UpdateUserReqFavoriteCatBreedSiamese UpdateUserReqFavoriteCatBreed = "siamese" UpdateUserReqFavoriteCatBreedBengal UpdateUserReqFavoriteCatBreed = "bengal" UpdateUserReqFavoriteCatBreedLion UpdateUserReqFavoriteCatBreed = "lion" UpdateUserReqFavoriteCatBreedTiger UpdateUserReqFavoriteCatBreed = "tiger" UpdateUserReqFavoriteCatBreedLeopard UpdateUserReqFavoriteCatBreed = "leopard" UpdateUserReqFavoriteCatBreedOther UpdateUserReqFavoriteCatBreed = "other" )
func (*UpdateUserReqFavoriteCatBreed) Decode ¶
func (s *UpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteCatBreed from json.
func (UpdateUserReqFavoriteCatBreed) Encode ¶
func (s UpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteCatBreed as json.
func (UpdateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UpdateUserReqFavoriteCatBreed) MarshalText ¶
func (s UpdateUserReqFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UpdateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateUserReqFavoriteCatBreed) UnmarshalText ¶
func (s *UpdateUserReqFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UpdateUserReqFavoriteCatBreed) Validate ¶
func (s UpdateUserReqFavoriteCatBreed) Validate() error
type UpdateUserReqFavoriteDogBreed ¶
type UpdateUserReqFavoriteDogBreed string
const (
UpdateUserReqFavoriteDogBreedKuro UpdateUserReqFavoriteDogBreed = "Kuro"
)
func (*UpdateUserReqFavoriteDogBreed) Decode ¶
func (s *UpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteDogBreed from json.
func (UpdateUserReqFavoriteDogBreed) Encode ¶
func (s UpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteDogBreed as json.
func (UpdateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UpdateUserReqFavoriteDogBreed) MarshalText ¶
func (s UpdateUserReqFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UpdateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateUserReqFavoriteDogBreed) UnmarshalText ¶
func (s *UpdateUserReqFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UpdateUserReqFavoriteDogBreed) Validate ¶
func (s UpdateUserReqFavoriteDogBreed) Validate() error
type UpdateUserReqFavoriteFishBreed ¶
type UpdateUserReqFavoriteFishBreed string
const ( UpdateUserReqFavoriteFishBreedGold UpdateUserReqFavoriteFishBreed = "gold" UpdateUserReqFavoriteFishBreedKoi UpdateUserReqFavoriteFishBreed = "koi" UpdateUserReqFavoriteFishBreedShark UpdateUserReqFavoriteFishBreed = "shark" )
func (*UpdateUserReqFavoriteFishBreed) Decode ¶
func (s *UpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteFishBreed from json.
func (UpdateUserReqFavoriteFishBreed) Encode ¶
func (s UpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteFishBreed as json.
func (UpdateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UpdateUserReqFavoriteFishBreed) MarshalText ¶
func (s UpdateUserReqFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UpdateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UpdateUserReqFavoriteFishBreed) UnmarshalText ¶
func (s *UpdateUserReqFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UpdateUserReqFavoriteFishBreed) Validate ¶
func (s UpdateUserReqFavoriteFishBreed) Validate() error
type UpdateUserRes ¶
type UpdateUserRes interface {
// contains filtered or unexported methods
}
type UserAnimalsSavedList ¶
type UserAnimalsSavedList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/User_AnimalsSavedList
func NewUserAnimalsSavedList ¶
func NewUserAnimalsSavedList(e *ent.Pet) *UserAnimalsSavedList
func NewUserAnimalsSavedLists ¶
func NewUserAnimalsSavedLists(es []*ent.Pet) []UserAnimalsSavedList
func (*UserAnimalsSavedList) Decode ¶
func (s *UserAnimalsSavedList) Decode(d *jx.Decoder) error
Decode decodes UserAnimalsSavedList from json.
func (*UserAnimalsSavedList) Elem ¶
func (pe *UserAnimalsSavedList) Elem() UserAnimalsSavedList
func (*UserAnimalsSavedList) Encode ¶
func (s *UserAnimalsSavedList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserAnimalsSavedList) GetBirthday ¶
func (s *UserAnimalsSavedList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*UserAnimalsSavedList) GetHeight ¶
func (s *UserAnimalsSavedList) GetHeight() OptInt
GetHeight returns the value of Height.
func (*UserAnimalsSavedList) GetID ¶
func (s *UserAnimalsSavedList) GetID() int
GetID returns the value of ID.
func (*UserAnimalsSavedList) GetName ¶
func (s *UserAnimalsSavedList) GetName() string
GetName returns the value of Name.
func (*UserAnimalsSavedList) GetTagID ¶
func (s *UserAnimalsSavedList) GetTagID() []byte
GetTagID returns the value of TagID.
func (*UserAnimalsSavedList) GetWeight ¶
func (s *UserAnimalsSavedList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*UserAnimalsSavedList) MarshalJSON ¶
func (s *UserAnimalsSavedList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserAnimalsSavedList) SetBirthday ¶
func (s *UserAnimalsSavedList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*UserAnimalsSavedList) SetHeight ¶
func (s *UserAnimalsSavedList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*UserAnimalsSavedList) SetID ¶
func (s *UserAnimalsSavedList) SetID(val int)
SetID sets the value of ID.
func (*UserAnimalsSavedList) SetName ¶
func (s *UserAnimalsSavedList) SetName(val string)
SetName sets the value of Name.
func (*UserAnimalsSavedList) SetTagID ¶
func (s *UserAnimalsSavedList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*UserAnimalsSavedList) SetWeight ¶
func (s *UserAnimalsSavedList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*UserAnimalsSavedList) UnmarshalJSON ¶
func (s *UserAnimalsSavedList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserBestFriendRead ¶
type UserBestFriendRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserBestFriendReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor UserBestFriendReadFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptUserBestFriendReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserBestFriendReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/User_BestFriendRead
func NewUserBestFriendRead ¶
func NewUserBestFriendRead(e *ent.User) *UserBestFriendRead
func NewUserBestFriendReads ¶
func NewUserBestFriendReads(es []*ent.User) []UserBestFriendRead
func (*UserBestFriendRead) Decode ¶
func (s *UserBestFriendRead) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendRead from json.
func (*UserBestFriendRead) Elem ¶
func (u *UserBestFriendRead) Elem() UserBestFriendRead
func (*UserBestFriendRead) Encode ¶
func (s *UserBestFriendRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserBestFriendRead) GetAge ¶
func (s *UserBestFriendRead) GetAge() int64
GetAge returns the value of Age.
func (*UserBestFriendRead) GetFavoriteCatBreed ¶
func (s *UserBestFriendRead) GetFavoriteCatBreed() UserBestFriendReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UserBestFriendRead) GetFavoriteColor ¶
func (s *UserBestFriendRead) GetFavoriteColor() UserBestFriendReadFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*UserBestFriendRead) GetFavoriteDogBreed ¶
func (s *UserBestFriendRead) GetFavoriteDogBreed() OptUserBestFriendReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UserBestFriendRead) GetFavoriteFishBreed ¶
func (s *UserBestFriendRead) GetFavoriteFishBreed() OptUserBestFriendReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UserBestFriendRead) GetHeight ¶
func (s *UserBestFriendRead) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*UserBestFriendRead) GetID ¶
func (s *UserBestFriendRead) GetID() int
GetID returns the value of ID.
func (*UserBestFriendRead) GetName ¶
func (s *UserBestFriendRead) GetName() string
GetName returns the value of Name.
func (*UserBestFriendRead) MarshalJSON ¶
func (s *UserBestFriendRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserBestFriendRead) SetAge ¶
func (s *UserBestFriendRead) SetAge(val int64)
SetAge sets the value of Age.
func (*UserBestFriendRead) SetFavoriteCatBreed ¶
func (s *UserBestFriendRead) SetFavoriteCatBreed(val UserBestFriendReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserBestFriendRead) SetFavoriteColor ¶
func (s *UserBestFriendRead) SetFavoriteColor(val UserBestFriendReadFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*UserBestFriendRead) SetFavoriteDogBreed ¶
func (s *UserBestFriendRead) SetFavoriteDogBreed(val OptUserBestFriendReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserBestFriendRead) SetFavoriteFishBreed ¶
func (s *UserBestFriendRead) SetFavoriteFishBreed(val OptUserBestFriendReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserBestFriendRead) SetHeight ¶
func (s *UserBestFriendRead) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserBestFriendRead) SetID ¶
func (s *UserBestFriendRead) SetID(val int)
SetID sets the value of ID.
func (*UserBestFriendRead) SetName ¶
func (s *UserBestFriendRead) SetName(val string)
SetName sets the value of Name.
func (*UserBestFriendRead) UnmarshalJSON ¶
func (s *UserBestFriendRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserBestFriendRead) Validate ¶
func (s *UserBestFriendRead) Validate() error
type UserBestFriendReadFavoriteCatBreed ¶
type UserBestFriendReadFavoriteCatBreed string
const ( UserBestFriendReadFavoriteCatBreedSiamese UserBestFriendReadFavoriteCatBreed = "siamese" UserBestFriendReadFavoriteCatBreedBengal UserBestFriendReadFavoriteCatBreed = "bengal" UserBestFriendReadFavoriteCatBreedLion UserBestFriendReadFavoriteCatBreed = "lion" UserBestFriendReadFavoriteCatBreedTiger UserBestFriendReadFavoriteCatBreed = "tiger" UserBestFriendReadFavoriteCatBreedLeopard UserBestFriendReadFavoriteCatBreed = "leopard" UserBestFriendReadFavoriteCatBreedOther UserBestFriendReadFavoriteCatBreed = "other" )
func (*UserBestFriendReadFavoriteCatBreed) Decode ¶
func (s *UserBestFriendReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteCatBreed from json.
func (UserBestFriendReadFavoriteCatBreed) Encode ¶
func (s UserBestFriendReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteCatBreed as json.
func (UserBestFriendReadFavoriteCatBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserBestFriendReadFavoriteCatBreed) MarshalText ¶
func (s UserBestFriendReadFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserBestFriendReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserBestFriendReadFavoriteCatBreed) UnmarshalText ¶
func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserBestFriendReadFavoriteCatBreed) Validate ¶
func (s UserBestFriendReadFavoriteCatBreed) Validate() error
type UserBestFriendReadFavoriteColor ¶
type UserBestFriendReadFavoriteColor string
const ( UserBestFriendReadFavoriteColorRed UserBestFriendReadFavoriteColor = "red" UserBestFriendReadFavoriteColorGreen UserBestFriendReadFavoriteColor = "green" UserBestFriendReadFavoriteColorBlue UserBestFriendReadFavoriteColor = "blue" )
func (*UserBestFriendReadFavoriteColor) Decode ¶
func (s *UserBestFriendReadFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteColor from json.
func (UserBestFriendReadFavoriteColor) Encode ¶
func (s UserBestFriendReadFavoriteColor) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteColor as json.
func (UserBestFriendReadFavoriteColor) MarshalJSON ¶
func (s UserBestFriendReadFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserBestFriendReadFavoriteColor) MarshalText ¶
func (s UserBestFriendReadFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserBestFriendReadFavoriteColor) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserBestFriendReadFavoriteColor) UnmarshalText ¶
func (s *UserBestFriendReadFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserBestFriendReadFavoriteColor) Validate ¶
func (s UserBestFriendReadFavoriteColor) Validate() error
type UserBestFriendReadFavoriteDogBreed ¶
type UserBestFriendReadFavoriteDogBreed string
const (
UserBestFriendReadFavoriteDogBreedKuro UserBestFriendReadFavoriteDogBreed = "Kuro"
)
func (*UserBestFriendReadFavoriteDogBreed) Decode ¶
func (s *UserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteDogBreed from json.
func (UserBestFriendReadFavoriteDogBreed) Encode ¶
func (s UserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteDogBreed as json.
func (UserBestFriendReadFavoriteDogBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserBestFriendReadFavoriteDogBreed) MarshalText ¶
func (s UserBestFriendReadFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserBestFriendReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserBestFriendReadFavoriteDogBreed) UnmarshalText ¶
func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserBestFriendReadFavoriteDogBreed) Validate ¶
func (s UserBestFriendReadFavoriteDogBreed) Validate() error
type UserBestFriendReadFavoriteFishBreed ¶
type UserBestFriendReadFavoriteFishBreed string
const ( UserBestFriendReadFavoriteFishBreedGold UserBestFriendReadFavoriteFishBreed = "gold" UserBestFriendReadFavoriteFishBreedKoi UserBestFriendReadFavoriteFishBreed = "koi" UserBestFriendReadFavoriteFishBreedShark UserBestFriendReadFavoriteFishBreed = "shark" )
func (*UserBestFriendReadFavoriteFishBreed) Decode ¶
func (s *UserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteFishBreed from json.
func (UserBestFriendReadFavoriteFishBreed) Encode ¶
func (s UserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteFishBreed as json.
func (UserBestFriendReadFavoriteFishBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserBestFriendReadFavoriteFishBreed) MarshalText ¶
func (s UserBestFriendReadFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserBestFriendReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserBestFriendReadFavoriteFishBreed) UnmarshalText ¶
func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserBestFriendReadFavoriteFishBreed) Validate ¶
func (s UserBestFriendReadFavoriteFishBreed) Validate() error
type UserCreate ¶
type UserCreate struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserCreateFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor UserCreateFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptUserCreateFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserCreateFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserCreate
func NewUserCreate ¶
func NewUserCreate(e *ent.User) *UserCreate
func NewUserCreates ¶
func NewUserCreates(es []*ent.User) []UserCreate
func (*UserCreate) Decode ¶
func (s *UserCreate) Decode(d *jx.Decoder) error
Decode decodes UserCreate from json.
func (*UserCreate) Elem ¶
func (u *UserCreate) Elem() UserCreate
func (*UserCreate) Encode ¶
func (s *UserCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserCreate) GetFavoriteCatBreed ¶
func (s *UserCreate) GetFavoriteCatBreed() UserCreateFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UserCreate) GetFavoriteColor ¶
func (s *UserCreate) GetFavoriteColor() UserCreateFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*UserCreate) GetFavoriteDogBreed ¶
func (s *UserCreate) GetFavoriteDogBreed() OptUserCreateFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UserCreate) GetFavoriteFishBreed ¶
func (s *UserCreate) GetFavoriteFishBreed() OptUserCreateFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UserCreate) GetHeight ¶
func (s *UserCreate) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*UserCreate) GetName ¶
func (s *UserCreate) GetName() string
GetName returns the value of Name.
func (*UserCreate) MarshalJSON ¶
func (s *UserCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserCreate) SetFavoriteCatBreed ¶
func (s *UserCreate) SetFavoriteCatBreed(val UserCreateFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserCreate) SetFavoriteColor ¶
func (s *UserCreate) SetFavoriteColor(val UserCreateFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*UserCreate) SetFavoriteDogBreed ¶
func (s *UserCreate) SetFavoriteDogBreed(val OptUserCreateFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserCreate) SetFavoriteFishBreed ¶
func (s *UserCreate) SetFavoriteFishBreed(val OptUserCreateFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserCreate) SetHeight ¶
func (s *UserCreate) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserCreate) SetName ¶
func (s *UserCreate) SetName(val string)
SetName sets the value of Name.
func (*UserCreate) UnmarshalJSON ¶
func (s *UserCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserCreate) Validate ¶
func (s *UserCreate) Validate() error
type UserCreateFavoriteCatBreed ¶
type UserCreateFavoriteCatBreed string
const ( UserCreateFavoriteCatBreedSiamese UserCreateFavoriteCatBreed = "siamese" UserCreateFavoriteCatBreedBengal UserCreateFavoriteCatBreed = "bengal" UserCreateFavoriteCatBreedLion UserCreateFavoriteCatBreed = "lion" UserCreateFavoriteCatBreedTiger UserCreateFavoriteCatBreed = "tiger" UserCreateFavoriteCatBreedLeopard UserCreateFavoriteCatBreed = "leopard" UserCreateFavoriteCatBreedOther UserCreateFavoriteCatBreed = "other" )
func (*UserCreateFavoriteCatBreed) Decode ¶
func (s *UserCreateFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteCatBreed from json.
func (UserCreateFavoriteCatBreed) Encode ¶
func (s UserCreateFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteCatBreed as json.
func (UserCreateFavoriteCatBreed) MarshalJSON ¶
func (s UserCreateFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserCreateFavoriteCatBreed) MarshalText ¶
func (s UserCreateFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserCreateFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserCreateFavoriteCatBreed) UnmarshalText ¶
func (s *UserCreateFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserCreateFavoriteCatBreed) Validate ¶
func (s UserCreateFavoriteCatBreed) Validate() error
type UserCreateFavoriteColor ¶
type UserCreateFavoriteColor string
const ( UserCreateFavoriteColorRed UserCreateFavoriteColor = "red" UserCreateFavoriteColorGreen UserCreateFavoriteColor = "green" UserCreateFavoriteColorBlue UserCreateFavoriteColor = "blue" )
func (*UserCreateFavoriteColor) Decode ¶
func (s *UserCreateFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteColor from json.
func (UserCreateFavoriteColor) Encode ¶
func (s UserCreateFavoriteColor) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteColor as json.
func (UserCreateFavoriteColor) MarshalJSON ¶
func (s UserCreateFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserCreateFavoriteColor) MarshalText ¶
func (s UserCreateFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserCreateFavoriteColor) UnmarshalJSON ¶
func (s *UserCreateFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserCreateFavoriteColor) UnmarshalText ¶
func (s *UserCreateFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserCreateFavoriteColor) Validate ¶
func (s UserCreateFavoriteColor) Validate() error
type UserCreateFavoriteDogBreed ¶
type UserCreateFavoriteDogBreed string
const (
UserCreateFavoriteDogBreedKuro UserCreateFavoriteDogBreed = "Kuro"
)
func (*UserCreateFavoriteDogBreed) Decode ¶
func (s *UserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteDogBreed from json.
func (UserCreateFavoriteDogBreed) Encode ¶
func (s UserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteDogBreed as json.
func (UserCreateFavoriteDogBreed) MarshalJSON ¶
func (s UserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserCreateFavoriteDogBreed) MarshalText ¶
func (s UserCreateFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserCreateFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserCreateFavoriteDogBreed) UnmarshalText ¶
func (s *UserCreateFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserCreateFavoriteDogBreed) Validate ¶
func (s UserCreateFavoriteDogBreed) Validate() error
type UserCreateFavoriteFishBreed ¶
type UserCreateFavoriteFishBreed string
const ( UserCreateFavoriteFishBreedGold UserCreateFavoriteFishBreed = "gold" UserCreateFavoriteFishBreedKoi UserCreateFavoriteFishBreed = "koi" UserCreateFavoriteFishBreedShark UserCreateFavoriteFishBreed = "shark" )
func (*UserCreateFavoriteFishBreed) Decode ¶
func (s *UserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteFishBreed from json.
func (UserCreateFavoriteFishBreed) Encode ¶
func (s UserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteFishBreed as json.
func (UserCreateFavoriteFishBreed) MarshalJSON ¶
func (s UserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserCreateFavoriteFishBreed) MarshalText ¶
func (s UserCreateFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserCreateFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserCreateFavoriteFishBreed) UnmarshalText ¶
func (s *UserCreateFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserCreateFavoriteFishBreed) Validate ¶
func (s UserCreateFavoriteFishBreed) Validate() error
type UserFavoriteHatRead ¶
type UserFavoriteHatRead struct { ID int `json:"id"` Name string `json:"name"` Type UserFavoriteHatReadType `json:"type"` }
Ref: #/components/schemas/User_FavoriteHatRead
func NewUserFavoriteHatRead ¶
func NewUserFavoriteHatRead(e *ent.Hat) *UserFavoriteHatRead
func NewUserFavoriteHatReads ¶
func NewUserFavoriteHatReads(es []*ent.Hat) []UserFavoriteHatRead
func (*UserFavoriteHatRead) Decode ¶
func (s *UserFavoriteHatRead) Decode(d *jx.Decoder) error
Decode decodes UserFavoriteHatRead from json.
func (*UserFavoriteHatRead) Elem ¶
func (h *UserFavoriteHatRead) Elem() UserFavoriteHatRead
func (*UserFavoriteHatRead) Encode ¶
func (s *UserFavoriteHatRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserFavoriteHatRead) GetID ¶
func (s *UserFavoriteHatRead) GetID() int
GetID returns the value of ID.
func (*UserFavoriteHatRead) GetName ¶
func (s *UserFavoriteHatRead) GetName() string
GetName returns the value of Name.
func (*UserFavoriteHatRead) GetType ¶
func (s *UserFavoriteHatRead) GetType() UserFavoriteHatReadType
GetType returns the value of Type.
func (*UserFavoriteHatRead) MarshalJSON ¶
func (s *UserFavoriteHatRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserFavoriteHatRead) SetID ¶
func (s *UserFavoriteHatRead) SetID(val int)
SetID sets the value of ID.
func (*UserFavoriteHatRead) SetName ¶
func (s *UserFavoriteHatRead) SetName(val string)
SetName sets the value of Name.
func (*UserFavoriteHatRead) SetType ¶
func (s *UserFavoriteHatRead) SetType(val UserFavoriteHatReadType)
SetType sets the value of Type.
func (*UserFavoriteHatRead) UnmarshalJSON ¶
func (s *UserFavoriteHatRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserFavoriteHatRead) Validate ¶
func (s *UserFavoriteHatRead) Validate() error
type UserFavoriteHatReadType ¶
type UserFavoriteHatReadType string
const ( UserFavoriteHatReadTypeDad UserFavoriteHatReadType = "dad" UserFavoriteHatReadTypeTrucker UserFavoriteHatReadType = "trucker" UserFavoriteHatReadTypeSnapback UserFavoriteHatReadType = "snapback" )
func (*UserFavoriteHatReadType) Decode ¶
func (s *UserFavoriteHatReadType) Decode(d *jx.Decoder) error
Decode decodes UserFavoriteHatReadType from json.
func (UserFavoriteHatReadType) Encode ¶
func (s UserFavoriteHatReadType) Encode(e *jx.Encoder)
Encode encodes UserFavoriteHatReadType as json.
func (UserFavoriteHatReadType) MarshalJSON ¶
func (s UserFavoriteHatReadType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserFavoriteHatReadType) MarshalText ¶
func (s UserFavoriteHatReadType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserFavoriteHatReadType) UnmarshalJSON ¶
func (s *UserFavoriteHatReadType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserFavoriteHatReadType) UnmarshalText ¶
func (s *UserFavoriteHatReadType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserFavoriteHatReadType) Validate ¶
func (s UserFavoriteHatReadType) Validate() error
type UserList ¶
type UserList struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserListFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor UserListFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptUserListFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserListFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserList
func NewUserList ¶
func NewUserLists ¶
func (*UserList) GetFavoriteCatBreed ¶
func (s *UserList) GetFavoriteCatBreed() UserListFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UserList) GetFavoriteColor ¶
func (s *UserList) GetFavoriteColor() UserListFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*UserList) GetFavoriteDogBreed ¶
func (s *UserList) GetFavoriteDogBreed() OptUserListFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UserList) GetFavoriteFishBreed ¶
func (s *UserList) GetFavoriteFishBreed() OptUserListFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UserList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*UserList) SetFavoriteCatBreed ¶
func (s *UserList) SetFavoriteCatBreed(val UserListFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserList) SetFavoriteColor ¶
func (s *UserList) SetFavoriteColor(val UserListFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*UserList) SetFavoriteDogBreed ¶
func (s *UserList) SetFavoriteDogBreed(val OptUserListFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserList) SetFavoriteFishBreed ¶
func (s *UserList) SetFavoriteFishBreed(val OptUserListFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserListFavoriteCatBreed ¶
type UserListFavoriteCatBreed string
const ( UserListFavoriteCatBreedSiamese UserListFavoriteCatBreed = "siamese" UserListFavoriteCatBreedBengal UserListFavoriteCatBreed = "bengal" UserListFavoriteCatBreedLion UserListFavoriteCatBreed = "lion" UserListFavoriteCatBreedTiger UserListFavoriteCatBreed = "tiger" UserListFavoriteCatBreedLeopard UserListFavoriteCatBreed = "leopard" UserListFavoriteCatBreedOther UserListFavoriteCatBreed = "other" )
func (*UserListFavoriteCatBreed) Decode ¶
func (s *UserListFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteCatBreed from json.
func (UserListFavoriteCatBreed) Encode ¶
func (s UserListFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteCatBreed as json.
func (UserListFavoriteCatBreed) MarshalJSON ¶
func (s UserListFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserListFavoriteCatBreed) MarshalText ¶
func (s UserListFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserListFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserListFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserListFavoriteCatBreed) UnmarshalText ¶
func (s *UserListFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserListFavoriteCatBreed) Validate ¶
func (s UserListFavoriteCatBreed) Validate() error
type UserListFavoriteColor ¶
type UserListFavoriteColor string
const ( UserListFavoriteColorRed UserListFavoriteColor = "red" UserListFavoriteColorGreen UserListFavoriteColor = "green" UserListFavoriteColorBlue UserListFavoriteColor = "blue" )
func (*UserListFavoriteColor) Decode ¶
func (s *UserListFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteColor from json.
func (UserListFavoriteColor) Encode ¶
func (s UserListFavoriteColor) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteColor as json.
func (UserListFavoriteColor) MarshalJSON ¶
func (s UserListFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserListFavoriteColor) MarshalText ¶
func (s UserListFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserListFavoriteColor) UnmarshalJSON ¶
func (s *UserListFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserListFavoriteColor) UnmarshalText ¶
func (s *UserListFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserListFavoriteColor) Validate ¶
func (s UserListFavoriteColor) Validate() error
type UserListFavoriteDogBreed ¶
type UserListFavoriteDogBreed string
const (
UserListFavoriteDogBreedKuro UserListFavoriteDogBreed = "Kuro"
)
func (*UserListFavoriteDogBreed) Decode ¶
func (s *UserListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteDogBreed from json.
func (UserListFavoriteDogBreed) Encode ¶
func (s UserListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteDogBreed as json.
func (UserListFavoriteDogBreed) MarshalJSON ¶
func (s UserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserListFavoriteDogBreed) MarshalText ¶
func (s UserListFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserListFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserListFavoriteDogBreed) UnmarshalText ¶
func (s *UserListFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserListFavoriteDogBreed) Validate ¶
func (s UserListFavoriteDogBreed) Validate() error
type UserListFavoriteFishBreed ¶
type UserListFavoriteFishBreed string
const ( UserListFavoriteFishBreedGold UserListFavoriteFishBreed = "gold" UserListFavoriteFishBreedKoi UserListFavoriteFishBreed = "koi" UserListFavoriteFishBreedShark UserListFavoriteFishBreed = "shark" )
func (*UserListFavoriteFishBreed) Decode ¶
func (s *UserListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteFishBreed from json.
func (UserListFavoriteFishBreed) Encode ¶
func (s UserListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteFishBreed as json.
func (UserListFavoriteFishBreed) MarshalJSON ¶
func (s UserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserListFavoriteFishBreed) MarshalText ¶
func (s UserListFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserListFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserListFavoriteFishBreed) UnmarshalText ¶
func (s *UserListFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserListFavoriteFishBreed) Validate ¶
func (s UserListFavoriteFishBreed) Validate() error
type UserPetsList ¶
type UserPetsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/User_PetsList
func NewUserPetsList ¶
func NewUserPetsList(e *ent.Pet) *UserPetsList
func NewUserPetsLists ¶
func NewUserPetsLists(es []*ent.Pet) []UserPetsList
func (*UserPetsList) Decode ¶
func (s *UserPetsList) Decode(d *jx.Decoder) error
Decode decodes UserPetsList from json.
func (*UserPetsList) Elem ¶
func (pe *UserPetsList) Elem() UserPetsList
func (*UserPetsList) Encode ¶
func (s *UserPetsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserPetsList) GetBirthday ¶
func (s *UserPetsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*UserPetsList) GetHeight ¶
func (s *UserPetsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (*UserPetsList) GetName ¶
func (s *UserPetsList) GetName() string
GetName returns the value of Name.
func (*UserPetsList) GetTagID ¶
func (s *UserPetsList) GetTagID() []byte
GetTagID returns the value of TagID.
func (*UserPetsList) GetWeight ¶
func (s *UserPetsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*UserPetsList) MarshalJSON ¶
func (s *UserPetsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserPetsList) SetBirthday ¶
func (s *UserPetsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*UserPetsList) SetHeight ¶
func (s *UserPetsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*UserPetsList) SetName ¶
func (s *UserPetsList) SetName(val string)
SetName sets the value of Name.
func (*UserPetsList) SetTagID ¶
func (s *UserPetsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*UserPetsList) SetWeight ¶
func (s *UserPetsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*UserPetsList) UnmarshalJSON ¶
func (s *UserPetsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserRead ¶
type UserRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor UserReadFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptUserReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserRead
func NewUserRead ¶
func NewUserReads ¶
func (*UserRead) GetFavoriteCatBreed ¶
func (s *UserRead) GetFavoriteCatBreed() UserReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UserRead) GetFavoriteColor ¶
func (s *UserRead) GetFavoriteColor() UserReadFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*UserRead) GetFavoriteDogBreed ¶
func (s *UserRead) GetFavoriteDogBreed() OptUserReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UserRead) GetFavoriteFishBreed ¶
func (s *UserRead) GetFavoriteFishBreed() OptUserReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UserRead) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*UserRead) SetFavoriteCatBreed ¶
func (s *UserRead) SetFavoriteCatBreed(val UserReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserRead) SetFavoriteColor ¶
func (s *UserRead) SetFavoriteColor(val UserReadFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*UserRead) SetFavoriteDogBreed ¶
func (s *UserRead) SetFavoriteDogBreed(val OptUserReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserRead) SetFavoriteFishBreed ¶
func (s *UserRead) SetFavoriteFishBreed(val OptUserReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserRead) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserReadFavoriteCatBreed ¶
type UserReadFavoriteCatBreed string
const ( UserReadFavoriteCatBreedSiamese UserReadFavoriteCatBreed = "siamese" UserReadFavoriteCatBreedBengal UserReadFavoriteCatBreed = "bengal" UserReadFavoriteCatBreedLion UserReadFavoriteCatBreed = "lion" UserReadFavoriteCatBreedTiger UserReadFavoriteCatBreed = "tiger" UserReadFavoriteCatBreedLeopard UserReadFavoriteCatBreed = "leopard" UserReadFavoriteCatBreedOther UserReadFavoriteCatBreed = "other" )
func (*UserReadFavoriteCatBreed) Decode ¶
func (s *UserReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteCatBreed from json.
func (UserReadFavoriteCatBreed) Encode ¶
func (s UserReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteCatBreed as json.
func (UserReadFavoriteCatBreed) MarshalJSON ¶
func (s UserReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserReadFavoriteCatBreed) MarshalText ¶
func (s UserReadFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserReadFavoriteCatBreed) UnmarshalText ¶
func (s *UserReadFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserReadFavoriteCatBreed) Validate ¶
func (s UserReadFavoriteCatBreed) Validate() error
type UserReadFavoriteColor ¶
type UserReadFavoriteColor string
const ( UserReadFavoriteColorRed UserReadFavoriteColor = "red" UserReadFavoriteColorGreen UserReadFavoriteColor = "green" UserReadFavoriteColorBlue UserReadFavoriteColor = "blue" )
func (*UserReadFavoriteColor) Decode ¶
func (s *UserReadFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteColor from json.
func (UserReadFavoriteColor) Encode ¶
func (s UserReadFavoriteColor) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteColor as json.
func (UserReadFavoriteColor) MarshalJSON ¶
func (s UserReadFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserReadFavoriteColor) MarshalText ¶
func (s UserReadFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserReadFavoriteColor) UnmarshalJSON ¶
func (s *UserReadFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserReadFavoriteColor) UnmarshalText ¶
func (s *UserReadFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserReadFavoriteColor) Validate ¶
func (s UserReadFavoriteColor) Validate() error
type UserReadFavoriteDogBreed ¶
type UserReadFavoriteDogBreed string
const (
UserReadFavoriteDogBreedKuro UserReadFavoriteDogBreed = "Kuro"
)
func (*UserReadFavoriteDogBreed) Decode ¶
func (s *UserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteDogBreed from json.
func (UserReadFavoriteDogBreed) Encode ¶
func (s UserReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteDogBreed as json.
func (UserReadFavoriteDogBreed) MarshalJSON ¶
func (s UserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserReadFavoriteDogBreed) MarshalText ¶
func (s UserReadFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserReadFavoriteDogBreed) UnmarshalText ¶
func (s *UserReadFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserReadFavoriteDogBreed) Validate ¶
func (s UserReadFavoriteDogBreed) Validate() error
type UserReadFavoriteFishBreed ¶
type UserReadFavoriteFishBreed string
const ( UserReadFavoriteFishBreedGold UserReadFavoriteFishBreed = "gold" UserReadFavoriteFishBreedKoi UserReadFavoriteFishBreed = "koi" UserReadFavoriteFishBreedShark UserReadFavoriteFishBreed = "shark" )
func (*UserReadFavoriteFishBreed) Decode ¶
func (s *UserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteFishBreed from json.
func (UserReadFavoriteFishBreed) Encode ¶
func (s UserReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteFishBreed as json.
func (UserReadFavoriteFishBreed) MarshalJSON ¶
func (s UserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserReadFavoriteFishBreed) MarshalText ¶
func (s UserReadFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserReadFavoriteFishBreed) UnmarshalText ¶
func (s *UserReadFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserReadFavoriteFishBreed) Validate ¶
func (s UserReadFavoriteFishBreed) Validate() error
type UserUpdate ¶
type UserUpdate struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserUpdateFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteColor UserUpdateFavoriteColor `json:"favorite_color"` FavoriteDogBreed OptUserUpdateFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserUpdateFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserUpdate
func NewUserUpdate ¶
func NewUserUpdate(e *ent.User) *UserUpdate
func NewUserUpdates ¶
func NewUserUpdates(es []*ent.User) []UserUpdate
func (*UserUpdate) Decode ¶
func (s *UserUpdate) Decode(d *jx.Decoder) error
Decode decodes UserUpdate from json.
func (*UserUpdate) Elem ¶
func (u *UserUpdate) Elem() UserUpdate
func (*UserUpdate) Encode ¶
func (s *UserUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserUpdate) GetFavoriteCatBreed ¶
func (s *UserUpdate) GetFavoriteCatBreed() UserUpdateFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (*UserUpdate) GetFavoriteColor ¶
func (s *UserUpdate) GetFavoriteColor() UserUpdateFavoriteColor
GetFavoriteColor returns the value of FavoriteColor.
func (*UserUpdate) GetFavoriteDogBreed ¶
func (s *UserUpdate) GetFavoriteDogBreed() OptUserUpdateFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (*UserUpdate) GetFavoriteFishBreed ¶
func (s *UserUpdate) GetFavoriteFishBreed() OptUserUpdateFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (*UserUpdate) GetHeight ¶
func (s *UserUpdate) GetHeight() OptInt64
GetHeight returns the value of Height.
func (*UserUpdate) GetName ¶
func (s *UserUpdate) GetName() string
GetName returns the value of Name.
func (*UserUpdate) MarshalJSON ¶
func (s *UserUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserUpdate) SetFavoriteCatBreed ¶
func (s *UserUpdate) SetFavoriteCatBreed(val UserUpdateFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserUpdate) SetFavoriteColor ¶
func (s *UserUpdate) SetFavoriteColor(val UserUpdateFavoriteColor)
SetFavoriteColor sets the value of FavoriteColor.
func (*UserUpdate) SetFavoriteDogBreed ¶
func (s *UserUpdate) SetFavoriteDogBreed(val OptUserUpdateFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserUpdate) SetFavoriteFishBreed ¶
func (s *UserUpdate) SetFavoriteFishBreed(val OptUserUpdateFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserUpdate) SetHeight ¶
func (s *UserUpdate) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserUpdate) SetName ¶
func (s *UserUpdate) SetName(val string)
SetName sets the value of Name.
func (*UserUpdate) UnmarshalJSON ¶
func (s *UserUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserUpdate) Validate ¶
func (s *UserUpdate) Validate() error
type UserUpdateFavoriteCatBreed ¶
type UserUpdateFavoriteCatBreed string
const ( UserUpdateFavoriteCatBreedSiamese UserUpdateFavoriteCatBreed = "siamese" UserUpdateFavoriteCatBreedBengal UserUpdateFavoriteCatBreed = "bengal" UserUpdateFavoriteCatBreedLion UserUpdateFavoriteCatBreed = "lion" UserUpdateFavoriteCatBreedTiger UserUpdateFavoriteCatBreed = "tiger" UserUpdateFavoriteCatBreedLeopard UserUpdateFavoriteCatBreed = "leopard" UserUpdateFavoriteCatBreedOther UserUpdateFavoriteCatBreed = "other" )
func (*UserUpdateFavoriteCatBreed) Decode ¶
func (s *UserUpdateFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteCatBreed from json.
func (UserUpdateFavoriteCatBreed) Encode ¶
func (s UserUpdateFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteCatBreed as json.
func (UserUpdateFavoriteCatBreed) MarshalJSON ¶
func (s UserUpdateFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserUpdateFavoriteCatBreed) MarshalText ¶
func (s UserUpdateFavoriteCatBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserUpdateFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserUpdateFavoriteCatBreed) UnmarshalText ¶
func (s *UserUpdateFavoriteCatBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserUpdateFavoriteCatBreed) Validate ¶
func (s UserUpdateFavoriteCatBreed) Validate() error
type UserUpdateFavoriteColor ¶
type UserUpdateFavoriteColor string
const ( UserUpdateFavoriteColorRed UserUpdateFavoriteColor = "red" UserUpdateFavoriteColorGreen UserUpdateFavoriteColor = "green" UserUpdateFavoriteColorBlue UserUpdateFavoriteColor = "blue" )
func (*UserUpdateFavoriteColor) Decode ¶
func (s *UserUpdateFavoriteColor) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteColor from json.
func (UserUpdateFavoriteColor) Encode ¶
func (s UserUpdateFavoriteColor) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteColor as json.
func (UserUpdateFavoriteColor) MarshalJSON ¶
func (s UserUpdateFavoriteColor) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserUpdateFavoriteColor) MarshalText ¶
func (s UserUpdateFavoriteColor) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserUpdateFavoriteColor) UnmarshalJSON ¶
func (s *UserUpdateFavoriteColor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserUpdateFavoriteColor) UnmarshalText ¶
func (s *UserUpdateFavoriteColor) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserUpdateFavoriteColor) Validate ¶
func (s UserUpdateFavoriteColor) Validate() error
type UserUpdateFavoriteDogBreed ¶
type UserUpdateFavoriteDogBreed string
const (
UserUpdateFavoriteDogBreedKuro UserUpdateFavoriteDogBreed = "Kuro"
)
func (*UserUpdateFavoriteDogBreed) Decode ¶
func (s *UserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteDogBreed from json.
func (UserUpdateFavoriteDogBreed) Encode ¶
func (s UserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteDogBreed as json.
func (UserUpdateFavoriteDogBreed) MarshalJSON ¶
func (s UserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserUpdateFavoriteDogBreed) MarshalText ¶
func (s UserUpdateFavoriteDogBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserUpdateFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserUpdateFavoriteDogBreed) UnmarshalText ¶
func (s *UserUpdateFavoriteDogBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserUpdateFavoriteDogBreed) Validate ¶
func (s UserUpdateFavoriteDogBreed) Validate() error
type UserUpdateFavoriteFishBreed ¶
type UserUpdateFavoriteFishBreed string
const ( UserUpdateFavoriteFishBreedGold UserUpdateFavoriteFishBreed = "gold" UserUpdateFavoriteFishBreedKoi UserUpdateFavoriteFishBreed = "koi" UserUpdateFavoriteFishBreedShark UserUpdateFavoriteFishBreed = "shark" )
func (*UserUpdateFavoriteFishBreed) Decode ¶
func (s *UserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteFishBreed from json.
func (UserUpdateFavoriteFishBreed) Encode ¶
func (s UserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteFishBreed as json.
func (UserUpdateFavoriteFishBreed) MarshalJSON ¶
func (s UserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserUpdateFavoriteFishBreed) MarshalText ¶
func (s UserUpdateFavoriteFishBreed) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserUpdateFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserUpdateFavoriteFishBreed) UnmarshalText ¶
func (s *UserUpdateFavoriteFishBreed) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserUpdateFavoriteFishBreed) Validate ¶
func (s UserUpdateFavoriteFishBreed) Validate() error
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go
- ogent.go
- responses.go