ogent

package
v0.0.0-...-ed3e5d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

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) GetID

func (s *AllTypesList) GetID() int64

GetID returns the value of ID.

func (*AllTypesList) GetInt

func (s *AllTypesList) GetInt() int

GetInt returns the value of Int.

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) SetID

func (s *AllTypesList) SetID(val int64)

SetID sets the value of ID.

func (*AllTypesList) SetInt

func (s *AllTypesList) SetInt(val int)

SetInt sets the value of Int.

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) GetID

func (s *AllTypesRead) GetID() int64

GetID returns the value of ID.

func (*AllTypesRead) GetInt

func (s *AllTypesRead) GetInt() int

GetInt returns the value of Int.

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) SetID

func (s *AllTypesRead) SetID(val int64)

SetID sets the value of ID.

func (*AllTypesRead) SetInt

func (s *AllTypesRead) SetInt(val int)

SetInt sets the value of Int.

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) GetID

func (s *CategoryCreate) GetID() int

GetID returns the value of ID.

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) SetID

func (s *CategoryCreate) SetID(val int)

SetID sets the value of ID.

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) GetID

func (s *CategoryList) GetID() int

GetID returns the value of ID.

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) SetID

func (s *CategoryList) SetID(val int)

SetID sets the value of ID.

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 (*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) GetID

func (s *CategoryRead) GetID() int

GetID returns the value of ID.

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) SetID

func (s *CategoryRead) SetID(val int)

SetID sets the value of ID.

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) GetID

func (s *CategoryUpdate) GetID() int

GetID returns the value of ID.

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) SetID

func (s *CategoryUpdate) SetID(val int)

SetID sets the value of ID.

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

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

type CreateCategoryReq struct {
	Name string `json:"name"`
	Pets []int  `json:"pets"`
}

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

Decode decodes CreateUserReqFavoriteCatBreed from json.

func (CreateUserReqFavoriteCatBreed) Encode

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

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

Decode decodes CreateUserReqFavoriteDogBreed from json.

func (CreateUserReqFavoriteDogBreed) Encode

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

Decode decodes CreateUserReqFavoriteFishBreed from json.

func (CreateUserReqFavoriteFishBreed) Encode

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

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

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 NewHatCreate(e *ent.Hat) *HatCreate

func NewHatCreates

func NewHatCreates(es []*ent.Hat) []HatCreate

func (*HatCreate) Decode

func (s *HatCreate) Decode(d *jx.Decoder) error

Decode decodes HatCreate from json.

func (*HatCreate) Elem

func (h *HatCreate) Elem() HatCreate

func (*HatCreate) Encode

func (s *HatCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HatCreate) GetID

func (s *HatCreate) GetID() int

GetID returns the value of ID.

func (*HatCreate) GetName

func (s *HatCreate) GetName() string

GetName returns the value of Name.

func (*HatCreate) GetType

func (s *HatCreate) GetType() HatCreateType

GetType returns the value of Type.

func (*HatCreate) MarshalJSON

func (s *HatCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HatCreate) SetID

func (s *HatCreate) SetID(val int)

SetID sets the value of ID.

func (*HatCreate) SetName

func (s *HatCreate) SetName(val string)

SetName sets the value of Name.

func (*HatCreate) SetType

func (s *HatCreate) SetType(val HatCreateType)

SetType sets the value of Type.

func (*HatCreate) UnmarshalJSON

func (s *HatCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HatCreate) Validate

func (s *HatCreate) Validate() error

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 NewHatList(e *ent.Hat) *HatList

func NewHatLists

func NewHatLists(es []*ent.Hat) []HatList

func (*HatList) Decode

func (s *HatList) Decode(d *jx.Decoder) error

Decode decodes HatList from json.

func (*HatList) Elem

func (h *HatList) Elem() HatList

func (*HatList) Encode

func (s *HatList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HatList) GetID

func (s *HatList) GetID() int

GetID returns the value of ID.

func (*HatList) GetName

func (s *HatList) GetName() string

GetName returns the value of Name.

func (*HatList) GetType

func (s *HatList) GetType() HatListType

GetType returns the value of Type.

func (*HatList) MarshalJSON

func (s *HatList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HatList) SetID

func (s *HatList) SetID(val int)

SetID sets the value of ID.

func (*HatList) SetName

func (s *HatList) SetName(val string)

SetName sets the value of Name.

func (*HatList) SetType

func (s *HatList) SetType(val HatListType)

SetType sets the value of Type.

func (*HatList) UnmarshalJSON

func (s *HatList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HatList) Validate

func (s *HatList) Validate() error

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 NewHatRead(e *ent.Hat) *HatRead

func NewHatReads

func NewHatReads(es []*ent.Hat) []HatRead

func (*HatRead) Decode

func (s *HatRead) Decode(d *jx.Decoder) error

Decode decodes HatRead from json.

func (*HatRead) Elem

func (h *HatRead) Elem() HatRead

func (*HatRead) Encode

func (s *HatRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HatRead) GetID

func (s *HatRead) GetID() int

GetID returns the value of ID.

func (*HatRead) GetName

func (s *HatRead) GetName() string

GetName returns the value of Name.

func (*HatRead) GetType

func (s *HatRead) GetType() HatReadType

GetType returns the value of Type.

func (*HatRead) MarshalJSON

func (s *HatRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HatRead) SetID

func (s *HatRead) SetID(val int)

SetID sets the value of ID.

func (*HatRead) SetName

func (s *HatRead) SetName(val string)

SetName sets the value of Name.

func (*HatRead) SetType

func (s *HatRead) SetType(val HatReadType)

SetType sets the value of Type.

func (*HatRead) UnmarshalJSON

func (s *HatRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HatRead) Validate

func (s *HatRead) Validate() error

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 NewHatUpdate(e *ent.Hat) *HatUpdate

func NewHatUpdates

func NewHatUpdates(es []*ent.Hat) []HatUpdate

func (*HatUpdate) Decode

func (s *HatUpdate) Decode(d *jx.Decoder) error

Decode decodes HatUpdate from json.

func (*HatUpdate) Elem

func (h *HatUpdate) Elem() HatUpdate

func (*HatUpdate) Encode

func (s *HatUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HatUpdate) GetID

func (s *HatUpdate) GetID() int

GetID returns the value of ID.

func (*HatUpdate) GetName

func (s *HatUpdate) GetName() string

GetName returns the value of Name.

func (*HatUpdate) GetType

func (s *HatUpdate) GetType() HatUpdateType

GetType returns the value of Type.

func (*HatUpdate) MarshalJSON

func (s *HatUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HatUpdate) SetID

func (s *HatUpdate) SetID(val int)

SetID sets the value of ID.

func (*HatUpdate) SetName

func (s *HatUpdate) SetName(val string)

SetName sets the value of Name.

func (*HatUpdate) SetType

func (s *HatUpdate) SetType(val HatUpdateType)

SetType sets the value of Type.

func (*HatUpdate) UnmarshalJSON

func (s *HatUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HatUpdate) Validate

func (s *HatUpdate) Validate() error

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) GetID

func (s *HatWearerRead) GetID() int

GetID returns the value of ID.

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) SetID

func (s *HatWearerRead) SetID(val int)

SetID sets the value of ID.

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

Decode decodes HatWearerReadFavoriteCatBreed from json.

func (HatWearerReadFavoriteCatBreed) Encode

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

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

Decode decodes HatWearerReadFavoriteDogBreed from json.

func (HatWearerReadFavoriteDogBreed) Encode

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

Decode decodes HatWearerReadFavoriteFishBreed from json.

func (HatWearerReadFavoriteFishBreed) Encode

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

type ListAllTypesOKApplicationJSON

type ListAllTypesOKApplicationJSON []AllTypesList

func (*ListAllTypesOKApplicationJSON) Decode

Decode decodes ListAllTypesOKApplicationJSON from json.

func (ListAllTypesOKApplicationJSON) Encode

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

Decode decodes ListCategoryOKApplicationJSON from json.

func (ListCategoryOKApplicationJSON) Encode

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

Decode decodes ListCategoryPetsOKApplicationJSON from json.

func (ListCategoryPetsOKApplicationJSON) Encode

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

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

Decode decodes ListPetCategoriesOKApplicationJSON from json.

func (ListPetCategoriesOKApplicationJSON) Encode

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

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

Decode decodes ListPetFriendsOKApplicationJSON from json.

func (ListPetFriendsOKApplicationJSON) Encode

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

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

Decode decodes ListPetRescuerOKApplicationJSON from json.

func (ListPetRescuerOKApplicationJSON) Encode

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

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

Decode decodes ListUserAnimalsSavedOKApplicationJSON from json.

func (ListUserAnimalsSavedOKApplicationJSON) Encode

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

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

Decode decodes ListUserPetsOKApplicationJSON from json.

func (ListUserPetsOKApplicationJSON) Encode

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 Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

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

UpdateAllTypes handles PATCH /all-types-slice/{id} requests.

func (*OgentHandler) UpdateCategory

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

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

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

Decode decodes CreateUserReqFavoriteDogBreed from json.

func (OptCreateUserReqFavoriteDogBreed) Encode

Encode encodes CreateUserReqFavoriteDogBreed as json.

func (OptCreateUserReqFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateUserReqFavoriteDogBreed) IsSet

IsSet returns true if OptCreateUserReqFavoriteDogBreed was set.

func (OptCreateUserReqFavoriteDogBreed) MarshalJSON

func (s OptCreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateUserReqFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateUserReqFavoriteDogBreed) Reset

Reset unsets value.

func (*OptCreateUserReqFavoriteDogBreed) SetTo

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

Decode decodes CreateUserReqFavoriteFishBreed from json.

func (OptCreateUserReqFavoriteFishBreed) Encode

Encode encodes CreateUserReqFavoriteFishBreed as json.

func (OptCreateUserReqFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateUserReqFavoriteFishBreed) IsSet

IsSet returns true if OptCreateUserReqFavoriteFishBreed was set.

func (OptCreateUserReqFavoriteFishBreed) MarshalJSON

func (s OptCreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateUserReqFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateUserReqFavoriteFishBreed) Reset

Reset unsets value.

func (*OptCreateUserReqFavoriteFishBreed) SetTo

SetTo sets value to v.

func (*OptCreateUserReqFavoriteFishBreed) UnmarshalJSON

func (s *OptCreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

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) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat32

type OptFloat32 struct {
	Value float32
	Set   bool
}

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) Reset

func (o *OptFloat32) Reset()

Reset unsets value.

func (*OptFloat32) SetTo

func (o *OptFloat32) SetTo(v float32)

SetTo sets value to v.

func (*OptFloat32) UnmarshalJSON

func (s *OptFloat32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

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) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

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

Decode decodes HatWearerReadFavoriteDogBreed from json.

func (OptHatWearerReadFavoriteDogBreed) Encode

Encode encodes HatWearerReadFavoriteDogBreed as json.

func (OptHatWearerReadFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptHatWearerReadFavoriteDogBreed) IsSet

IsSet returns true if OptHatWearerReadFavoriteDogBreed was set.

func (OptHatWearerReadFavoriteDogBreed) MarshalJSON

func (s OptHatWearerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHatWearerReadFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptHatWearerReadFavoriteDogBreed) Reset

Reset unsets value.

func (*OptHatWearerReadFavoriteDogBreed) SetTo

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

Decode decodes HatWearerReadFavoriteFishBreed from json.

func (OptHatWearerReadFavoriteFishBreed) Encode

Encode encodes HatWearerReadFavoriteFishBreed as json.

func (OptHatWearerReadFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptHatWearerReadFavoriteFishBreed) IsSet

IsSet returns true if OptHatWearerReadFavoriteFishBreed was set.

func (OptHatWearerReadFavoriteFishBreed) MarshalJSON

func (s OptHatWearerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHatWearerReadFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptHatWearerReadFavoriteFishBreed) Reset

Reset unsets value.

func (*OptHatWearerReadFavoriteFishBreed) SetTo

SetTo sets value to v.

func (*OptHatWearerReadFavoriteFishBreed) UnmarshalJSON

func (s *OptHatWearerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

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

Decode decodes PetCreateOwnerFavoriteDogBreed from json.

func (OptPetCreateOwnerFavoriteDogBreed) Encode

Encode encodes PetCreateOwnerFavoriteDogBreed as json.

func (OptPetCreateOwnerFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetCreateOwnerFavoriteDogBreed) IsSet

IsSet returns true if OptPetCreateOwnerFavoriteDogBreed was set.

func (OptPetCreateOwnerFavoriteDogBreed) MarshalJSON

func (s OptPetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetCreateOwnerFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetCreateOwnerFavoriteDogBreed) Reset

Reset unsets value.

func (*OptPetCreateOwnerFavoriteDogBreed) SetTo

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

Decode decodes PetCreateOwnerFavoriteFishBreed from json.

func (OptPetCreateOwnerFavoriteFishBreed) Encode

Encode encodes PetCreateOwnerFavoriteFishBreed as json.

func (OptPetCreateOwnerFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetCreateOwnerFavoriteFishBreed) IsSet

IsSet returns true if OptPetCreateOwnerFavoriteFishBreed was set.

func (OptPetCreateOwnerFavoriteFishBreed) MarshalJSON

func (s OptPetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetCreateOwnerFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetCreateOwnerFavoriteFishBreed) Reset

Reset unsets value.

func (*OptPetCreateOwnerFavoriteFishBreed) SetTo

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

Decode decodes PetOwnerReadFavoriteDogBreed from json.

func (OptPetOwnerReadFavoriteDogBreed) Encode

Encode encodes PetOwnerReadFavoriteDogBreed as json.

func (OptPetOwnerReadFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetOwnerReadFavoriteDogBreed) IsSet

IsSet returns true if OptPetOwnerReadFavoriteDogBreed was set.

func (OptPetOwnerReadFavoriteDogBreed) MarshalJSON

func (s OptPetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetOwnerReadFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetOwnerReadFavoriteDogBreed) Reset

Reset unsets value.

func (*OptPetOwnerReadFavoriteDogBreed) SetTo

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

Decode decodes PetOwnerReadFavoriteFishBreed from json.

func (OptPetOwnerReadFavoriteFishBreed) Encode

Encode encodes PetOwnerReadFavoriteFishBreed as json.

func (OptPetOwnerReadFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetOwnerReadFavoriteFishBreed) IsSet

IsSet returns true if OptPetOwnerReadFavoriteFishBreed was set.

func (OptPetOwnerReadFavoriteFishBreed) MarshalJSON

func (s OptPetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetOwnerReadFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetOwnerReadFavoriteFishBreed) Reset

Reset unsets value.

func (*OptPetOwnerReadFavoriteFishBreed) SetTo

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

Decode decodes PetRescuerListFavoriteDogBreed from json.

func (OptPetRescuerListFavoriteDogBreed) Encode

Encode encodes PetRescuerListFavoriteDogBreed as json.

func (OptPetRescuerListFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetRescuerListFavoriteDogBreed) IsSet

IsSet returns true if OptPetRescuerListFavoriteDogBreed was set.

func (OptPetRescuerListFavoriteDogBreed) MarshalJSON

func (s OptPetRescuerListFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetRescuerListFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetRescuerListFavoriteDogBreed) Reset

Reset unsets value.

func (*OptPetRescuerListFavoriteDogBreed) SetTo

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

Decode decodes PetRescuerListFavoriteFishBreed from json.

func (OptPetRescuerListFavoriteFishBreed) Encode

Encode encodes PetRescuerListFavoriteFishBreed as json.

func (OptPetRescuerListFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPetRescuerListFavoriteFishBreed) IsSet

IsSet returns true if OptPetRescuerListFavoriteFishBreed was set.

func (OptPetRescuerListFavoriteFishBreed) MarshalJSON

func (s OptPetRescuerListFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetRescuerListFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptPetRescuerListFavoriteFishBreed) Reset

Reset unsets value.

func (*OptPetRescuerListFavoriteFishBreed) SetTo

SetTo sets value to v.

func (*OptPetRescuerListFavoriteFishBreed) UnmarshalJSON

func (s *OptPetRescuerListFavoriteFishBreed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUUID

type OptUUID struct {
	Value uuid.UUID
	Set   bool
}

OptUUID is optional uuid.UUID.

func NewOptUUID

func NewOptUUID(v uuid.UUID) OptUUID

NewOptUUID returns new OptUUID with value set to v.

func (*OptUUID) Decode

func (o *OptUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptUUID) Encode

func (o OptUUID) Encode(e *jx.Encoder)

Encode encodes uuid.UUID as json.

func (OptUUID) Get

func (o OptUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUUID) IsSet

func (o OptUUID) IsSet() bool

IsSet returns true if OptUUID was set.

func (OptUUID) MarshalJSON

func (s OptUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUUID) Or

func (o OptUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptUUID) Reset

func (o *OptUUID) Reset()

Reset unsets value.

func (*OptUUID) SetTo

func (o *OptUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

func (*OptUUID) UnmarshalJSON

func (s *OptUUID) UnmarshalJSON(data []byte) error

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

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) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateAllTypesReqState) Reset

func (o *OptUpdateAllTypesReqState) Reset()

Reset unsets value.

func (*OptUpdateAllTypesReqState) SetTo

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

Decode decodes UpdateUserReqFavoriteCatBreed from json.

func (OptUpdateUserReqFavoriteCatBreed) Encode

Encode encodes UpdateUserReqFavoriteCatBreed as json.

func (OptUpdateUserReqFavoriteCatBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateUserReqFavoriteCatBreed) IsSet

IsSet returns true if OptUpdateUserReqFavoriteCatBreed was set.

func (OptUpdateUserReqFavoriteCatBreed) MarshalJSON

func (s OptUpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateUserReqFavoriteCatBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateUserReqFavoriteCatBreed) Reset

Reset unsets value.

func (*OptUpdateUserReqFavoriteCatBreed) SetTo

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

Decode decodes UpdateUserReqFavoriteDogBreed from json.

func (OptUpdateUserReqFavoriteDogBreed) Encode

Encode encodes UpdateUserReqFavoriteDogBreed as json.

func (OptUpdateUserReqFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateUserReqFavoriteDogBreed) IsSet

IsSet returns true if OptUpdateUserReqFavoriteDogBreed was set.

func (OptUpdateUserReqFavoriteDogBreed) MarshalJSON

func (s OptUpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateUserReqFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateUserReqFavoriteDogBreed) Reset

Reset unsets value.

func (*OptUpdateUserReqFavoriteDogBreed) SetTo

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

Decode decodes UpdateUserReqFavoriteFishBreed from json.

func (OptUpdateUserReqFavoriteFishBreed) Encode

Encode encodes UpdateUserReqFavoriteFishBreed as json.

func (OptUpdateUserReqFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateUserReqFavoriteFishBreed) IsSet

IsSet returns true if OptUpdateUserReqFavoriteFishBreed was set.

func (OptUpdateUserReqFavoriteFishBreed) MarshalJSON

func (s OptUpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateUserReqFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateUserReqFavoriteFishBreed) Reset

Reset unsets value.

func (*OptUpdateUserReqFavoriteFishBreed) SetTo

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

Decode decodes UserBestFriendReadFavoriteDogBreed from json.

func (OptUserBestFriendReadFavoriteDogBreed) Encode

Encode encodes UserBestFriendReadFavoriteDogBreed as json.

func (OptUserBestFriendReadFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserBestFriendReadFavoriteDogBreed) IsSet

IsSet returns true if OptUserBestFriendReadFavoriteDogBreed was set.

func (OptUserBestFriendReadFavoriteDogBreed) MarshalJSON

func (s OptUserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserBestFriendReadFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserBestFriendReadFavoriteDogBreed) Reset

Reset unsets value.

func (*OptUserBestFriendReadFavoriteDogBreed) SetTo

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

Decode decodes UserBestFriendReadFavoriteFishBreed from json.

func (OptUserBestFriendReadFavoriteFishBreed) Encode

Encode encodes UserBestFriendReadFavoriteFishBreed as json.

func (OptUserBestFriendReadFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserBestFriendReadFavoriteFishBreed) IsSet

IsSet returns true if OptUserBestFriendReadFavoriteFishBreed was set.

func (OptUserBestFriendReadFavoriteFishBreed) MarshalJSON

func (s OptUserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserBestFriendReadFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserBestFriendReadFavoriteFishBreed) Reset

Reset unsets value.

func (*OptUserBestFriendReadFavoriteFishBreed) SetTo

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

Decode decodes UserCreateFavoriteDogBreed from json.

func (OptUserCreateFavoriteDogBreed) Encode

Encode encodes UserCreateFavoriteDogBreed as json.

func (OptUserCreateFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserCreateFavoriteDogBreed) IsSet

IsSet returns true if OptUserCreateFavoriteDogBreed was set.

func (OptUserCreateFavoriteDogBreed) MarshalJSON

func (s OptUserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserCreateFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserCreateFavoriteDogBreed) Reset

func (o *OptUserCreateFavoriteDogBreed) Reset()

Reset unsets value.

func (*OptUserCreateFavoriteDogBreed) SetTo

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

Decode decodes UserCreateFavoriteFishBreed from json.

func (OptUserCreateFavoriteFishBreed) Encode

Encode encodes UserCreateFavoriteFishBreed as json.

func (OptUserCreateFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserCreateFavoriteFishBreed) IsSet

IsSet returns true if OptUserCreateFavoriteFishBreed was set.

func (OptUserCreateFavoriteFishBreed) MarshalJSON

func (s OptUserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserCreateFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserCreateFavoriteFishBreed) Reset

func (o *OptUserCreateFavoriteFishBreed) Reset()

Reset unsets value.

func (*OptUserCreateFavoriteFishBreed) SetTo

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

Decode decodes UserListFavoriteDogBreed from json.

func (OptUserListFavoriteDogBreed) Encode

func (o OptUserListFavoriteDogBreed) Encode(e *jx.Encoder)

Encode encodes UserListFavoriteDogBreed as json.

func (OptUserListFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserListFavoriteDogBreed) IsSet

IsSet returns true if OptUserListFavoriteDogBreed was set.

func (OptUserListFavoriteDogBreed) MarshalJSON

func (s OptUserListFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserListFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserListFavoriteDogBreed) Reset

func (o *OptUserListFavoriteDogBreed) Reset()

Reset unsets value.

func (*OptUserListFavoriteDogBreed) SetTo

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

Decode decodes UserListFavoriteFishBreed from json.

func (OptUserListFavoriteFishBreed) Encode

Encode encodes UserListFavoriteFishBreed as json.

func (OptUserListFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserListFavoriteFishBreed) IsSet

IsSet returns true if OptUserListFavoriteFishBreed was set.

func (OptUserListFavoriteFishBreed) MarshalJSON

func (s OptUserListFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserListFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserListFavoriteFishBreed) Reset

func (o *OptUserListFavoriteFishBreed) Reset()

Reset unsets value.

func (*OptUserListFavoriteFishBreed) SetTo

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

Decode decodes UserReadFavoriteDogBreed from json.

func (OptUserReadFavoriteDogBreed) Encode

func (o OptUserReadFavoriteDogBreed) Encode(e *jx.Encoder)

Encode encodes UserReadFavoriteDogBreed as json.

func (OptUserReadFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserReadFavoriteDogBreed) IsSet

IsSet returns true if OptUserReadFavoriteDogBreed was set.

func (OptUserReadFavoriteDogBreed) MarshalJSON

func (s OptUserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserReadFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserReadFavoriteDogBreed) Reset

func (o *OptUserReadFavoriteDogBreed) Reset()

Reset unsets value.

func (*OptUserReadFavoriteDogBreed) SetTo

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

Decode decodes UserReadFavoriteFishBreed from json.

func (OptUserReadFavoriteFishBreed) Encode

Encode encodes UserReadFavoriteFishBreed as json.

func (OptUserReadFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserReadFavoriteFishBreed) IsSet

IsSet returns true if OptUserReadFavoriteFishBreed was set.

func (OptUserReadFavoriteFishBreed) MarshalJSON

func (s OptUserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserReadFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserReadFavoriteFishBreed) Reset

func (o *OptUserReadFavoriteFishBreed) Reset()

Reset unsets value.

func (*OptUserReadFavoriteFishBreed) SetTo

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

Decode decodes UserUpdateFavoriteDogBreed from json.

func (OptUserUpdateFavoriteDogBreed) Encode

Encode encodes UserUpdateFavoriteDogBreed as json.

func (OptUserUpdateFavoriteDogBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserUpdateFavoriteDogBreed) IsSet

IsSet returns true if OptUserUpdateFavoriteDogBreed was set.

func (OptUserUpdateFavoriteDogBreed) MarshalJSON

func (s OptUserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserUpdateFavoriteDogBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserUpdateFavoriteDogBreed) Reset

func (o *OptUserUpdateFavoriteDogBreed) Reset()

Reset unsets value.

func (*OptUserUpdateFavoriteDogBreed) SetTo

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

Decode decodes UserUpdateFavoriteFishBreed from json.

func (OptUserUpdateFavoriteFishBreed) Encode

Encode encodes UserUpdateFavoriteFishBreed as json.

func (OptUserUpdateFavoriteFishBreed) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserUpdateFavoriteFishBreed) IsSet

IsSet returns true if OptUserUpdateFavoriteFishBreed was set.

func (OptUserUpdateFavoriteFishBreed) MarshalJSON

func (s OptUserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserUpdateFavoriteFishBreed) Or

Or returns value if set, or given parameter if does not.

func (*OptUserUpdateFavoriteFishBreed) Reset

func (o *OptUserUpdateFavoriteFishBreed) Reset()

Reset unsets value.

func (*OptUserUpdateFavoriteFishBreed) SetTo

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 (*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 NewPetCreate(e *ent.Pet) *PetCreate

func NewPetCreates

func NewPetCreates(es []*ent.Pet) []PetCreate

func (*PetCreate) Decode

func (s *PetCreate) Decode(d *jx.Decoder) error

Decode decodes PetCreate from json.

func (*PetCreate) Elem

func (pe *PetCreate) Elem() PetCreate

func (*PetCreate) Encode

func (s *PetCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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) GetHeight

func (s *PetCreate) GetHeight() OptInt

GetHeight returns the value of Height.

func (*PetCreate) GetID

func (s *PetCreate) GetID() int

GetID returns the value of ID.

func (*PetCreate) GetName

func (s *PetCreate) GetName() string

GetName returns the value of Name.

func (*PetCreate) GetOwner

func (s *PetCreate) GetOwner() PetCreateOwner

GetOwner returns the value of Owner.

func (*PetCreate) GetTagID

func (s *PetCreate) GetTagID() []byte

GetTagID returns the value of TagID.

func (*PetCreate) GetWeight

func (s *PetCreate) GetWeight() OptInt

GetWeight returns the value of Weight.

func (*PetCreate) MarshalJSON

func (s *PetCreate) MarshalJSON() ([]byte, error)

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) SetHeight

func (s *PetCreate) SetHeight(val OptInt)

SetHeight sets the value of Height.

func (*PetCreate) SetID

func (s *PetCreate) SetID(val int)

SetID sets the value of ID.

func (*PetCreate) SetName

func (s *PetCreate) SetName(val string)

SetName sets the value of Name.

func (*PetCreate) SetOwner

func (s *PetCreate) SetOwner(val PetCreateOwner)

SetOwner sets the value of Owner.

func (*PetCreate) SetTagID

func (s *PetCreate) SetTagID(val []byte)

SetTagID sets the value of TagID.

func (*PetCreate) SetWeight

func (s *PetCreate) SetWeight(val OptInt)

SetWeight sets the value of Weight.

func (*PetCreate) UnmarshalJSON

func (s *PetCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PetCreate) Validate

func (s *PetCreate) Validate() error

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 (*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) GetID

func (s *PetCreateOwner) GetID() int

GetID returns the value of ID.

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) SetID

func (s *PetCreateOwner) SetID(val int)

SetID sets the value of ID.

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

Decode decodes PetCreateOwnerFavoriteCatBreed from json.

func (PetCreateOwnerFavoriteCatBreed) Encode

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

type PetCreateOwnerFavoriteColor

type PetCreateOwnerFavoriteColor string
const (
	PetCreateOwnerFavoriteColorRed   PetCreateOwnerFavoriteColor = "red"
	PetCreateOwnerFavoriteColorGreen PetCreateOwnerFavoriteColor = "green"
	PetCreateOwnerFavoriteColorBlue  PetCreateOwnerFavoriteColor = "blue"
)

func (*PetCreateOwnerFavoriteColor) Decode

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

Decode decodes PetCreateOwnerFavoriteDogBreed from json.

func (PetCreateOwnerFavoriteDogBreed) Encode

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

type PetCreateOwnerFavoriteFishBreed

type PetCreateOwnerFavoriteFishBreed string
const (
	PetCreateOwnerFavoriteFishBreedGold  PetCreateOwnerFavoriteFishBreed = "gold"
	PetCreateOwnerFavoriteFishBreedKoi   PetCreateOwnerFavoriteFishBreed = "koi"
	PetCreateOwnerFavoriteFishBreedShark PetCreateOwnerFavoriteFishBreed = "shark"
)

func (*PetCreateOwnerFavoriteFishBreed) Decode

Decode decodes PetCreateOwnerFavoriteFishBreed from json.

func (PetCreateOwnerFavoriteFishBreed) Encode

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

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) GetID

func (s *PetFriendsList) GetID() int

GetID returns the value of ID.

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) SetID

func (s *PetFriendsList) SetID(val int)

SetID sets the value of ID.

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 NewPetList(e *ent.Pet) *PetList

func NewPetLists

func NewPetLists(es []*ent.Pet) []PetList

func (*PetList) Decode

func (s *PetList) Decode(d *jx.Decoder) error

Decode decodes PetList from json.

func (*PetList) Elem

func (pe *PetList) Elem() PetList

func (*PetList) Encode

func (s *PetList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PetList) GetBirthday

func (s *PetList) GetBirthday() OptDateTime

GetBirthday returns the value of Birthday.

func (*PetList) GetHeight

func (s *PetList) GetHeight() OptInt

GetHeight returns the value of Height.

func (*PetList) GetID

func (s *PetList) GetID() int

GetID returns the value of ID.

func (*PetList) GetName

func (s *PetList) GetName() string

GetName returns the value of Name.

func (*PetList) GetTagID

func (s *PetList) GetTagID() []byte

GetTagID returns the value of TagID.

func (*PetList) GetWeight

func (s *PetList) GetWeight() OptInt

GetWeight returns the value of Weight.

func (*PetList) MarshalJSON

func (s *PetList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetList) SetBirthday

func (s *PetList) SetBirthday(val OptDateTime)

SetBirthday sets the value of Birthday.

func (*PetList) SetHeight

func (s *PetList) SetHeight(val OptInt)

SetHeight sets the value of Height.

func (*PetList) SetID

func (s *PetList) SetID(val int)

SetID sets the value of ID.

func (*PetList) SetName

func (s *PetList) SetName(val string)

SetName sets the value of Name.

func (*PetList) SetTagID

func (s *PetList) SetTagID(val []byte)

SetTagID sets the value of TagID.

func (*PetList) SetWeight

func (s *PetList) SetWeight(val OptInt)

SetWeight sets the value of Weight.

func (*PetList) UnmarshalJSON

func (s *PetList) UnmarshalJSON(data []byte) error

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) GetID

func (s *PetOwnerRead) GetID() int

GetID returns the value of ID.

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) SetID

func (s *PetOwnerRead) SetID(val int)

SetID sets the value of ID.

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

Decode decodes PetOwnerReadFavoriteCatBreed from json.

func (PetOwnerReadFavoriteCatBreed) Encode

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

Decode decodes PetOwnerReadFavoriteDogBreed from json.

func (PetOwnerReadFavoriteDogBreed) Encode

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

Decode decodes PetOwnerReadFavoriteFishBreed from json.

func (PetOwnerReadFavoriteFishBreed) Encode

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 NewPetRead(e *ent.Pet) *PetRead

func NewPetReads

func NewPetReads(es []*ent.Pet) []PetRead

func (*PetRead) Decode

func (s *PetRead) Decode(d *jx.Decoder) error

Decode decodes PetRead from json.

func (*PetRead) Elem

func (pe *PetRead) Elem() PetRead

func (*PetRead) Encode

func (s *PetRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PetRead) GetBirthday

func (s *PetRead) GetBirthday() OptDateTime

GetBirthday returns the value of Birthday.

func (*PetRead) GetHeight

func (s *PetRead) GetHeight() OptInt

GetHeight returns the value of Height.

func (*PetRead) GetID

func (s *PetRead) GetID() int

GetID returns the value of ID.

func (*PetRead) GetName

func (s *PetRead) GetName() string

GetName returns the value of Name.

func (*PetRead) GetTagID

func (s *PetRead) GetTagID() []byte

GetTagID returns the value of TagID.

func (*PetRead) GetWeight

func (s *PetRead) GetWeight() OptInt

GetWeight returns the value of Weight.

func (*PetRead) MarshalJSON

func (s *PetRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetRead) SetBirthday

func (s *PetRead) SetBirthday(val OptDateTime)

SetBirthday sets the value of Birthday.

func (*PetRead) SetHeight

func (s *PetRead) SetHeight(val OptInt)

SetHeight sets the value of Height.

func (*PetRead) SetID

func (s *PetRead) SetID(val int)

SetID sets the value of ID.

func (*PetRead) SetName

func (s *PetRead) SetName(val string)

SetName sets the value of Name.

func (*PetRead) SetTagID

func (s *PetRead) SetTagID(val []byte)

SetTagID sets the value of TagID.

func (*PetRead) SetWeight

func (s *PetRead) SetWeight(val OptInt)

SetWeight sets the value of Weight.

func (*PetRead) UnmarshalJSON

func (s *PetRead) UnmarshalJSON(data []byte) error

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) GetID

func (s *PetRescuerList) GetID() int

GetID returns the value of ID.

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) SetID

func (s *PetRescuerList) SetID(val int)

SetID sets the value of ID.

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

Decode decodes PetRescuerListFavoriteCatBreed from json.

func (PetRescuerListFavoriteCatBreed) Encode

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

type PetRescuerListFavoriteColor

type PetRescuerListFavoriteColor string
const (
	PetRescuerListFavoriteColorRed   PetRescuerListFavoriteColor = "red"
	PetRescuerListFavoriteColorGreen PetRescuerListFavoriteColor = "green"
	PetRescuerListFavoriteColorBlue  PetRescuerListFavoriteColor = "blue"
)

func (*PetRescuerListFavoriteColor) Decode

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

Decode decodes PetRescuerListFavoriteDogBreed from json.

func (PetRescuerListFavoriteDogBreed) Encode

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

type PetRescuerListFavoriteFishBreed

type PetRescuerListFavoriteFishBreed string
const (
	PetRescuerListFavoriteFishBreedGold  PetRescuerListFavoriteFishBreed = "gold"
	PetRescuerListFavoriteFishBreedKoi   PetRescuerListFavoriteFishBreed = "koi"
	PetRescuerListFavoriteFishBreedShark PetRescuerListFavoriteFishBreed = "shark"
)

func (*PetRescuerListFavoriteFishBreed) Decode

Decode decodes PetRescuerListFavoriteFishBreed from json.

func (PetRescuerListFavoriteFishBreed) Encode

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

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 NewPetUpdate(e *ent.Pet) *PetUpdate

func NewPetUpdates

func NewPetUpdates(es []*ent.Pet) []PetUpdate

func (*PetUpdate) Decode

func (s *PetUpdate) Decode(d *jx.Decoder) error

Decode decodes PetUpdate from json.

func (*PetUpdate) Elem

func (pe *PetUpdate) Elem() PetUpdate

func (*PetUpdate) Encode

func (s *PetUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PetUpdate) GetBirthday

func (s *PetUpdate) GetBirthday() OptDateTime

GetBirthday returns the value of Birthday.

func (*PetUpdate) GetHeight

func (s *PetUpdate) GetHeight() OptInt

GetHeight returns the value of Height.

func (*PetUpdate) GetID

func (s *PetUpdate) GetID() int

GetID returns the value of ID.

func (*PetUpdate) GetName

func (s *PetUpdate) GetName() string

GetName returns the value of Name.

func (*PetUpdate) GetTagID

func (s *PetUpdate) GetTagID() []byte

GetTagID returns the value of TagID.

func (*PetUpdate) GetWeight

func (s *PetUpdate) GetWeight() OptInt

GetWeight returns the value of Weight.

func (*PetUpdate) MarshalJSON

func (s *PetUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetUpdate) SetBirthday

func (s *PetUpdate) SetBirthday(val OptDateTime)

SetBirthday sets the value of Birthday.

func (*PetUpdate) SetHeight

func (s *PetUpdate) SetHeight(val OptInt)

SetHeight sets the value of Height.

func (*PetUpdate) SetID

func (s *PetUpdate) SetID(val int)

SetID sets the value of ID.

func (*PetUpdate) SetName

func (s *PetUpdate) SetName(val string)

SetName sets the value of Name.

func (*PetUpdate) SetTagID

func (s *PetUpdate) SetTagID(val []byte)

SetTagID sets the value of TagID.

func (*PetUpdate) SetWeight

func (s *PetUpdate) SetWeight(val OptInt)

SetWeight sets the value of Weight.

func (*PetUpdate) UnmarshalJSON

func (s *PetUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R400

type R400 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R400) Decode

func (s *R400) Decode(d *jx.Decoder) error

Decode decodes R400 from json.

func (*R400) Encode

func (s *R400) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R400) GetCode

func (s *R400) GetCode() int

GetCode returns the value of Code.

func (*R400) GetErrors

func (s *R400) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R400) GetStatus

func (s *R400) GetStatus() string

GetStatus returns the value of Status.

func (*R400) MarshalJSON

func (s *R400) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R400) SetCode

func (s *R400) SetCode(val int)

SetCode sets the value of Code.

func (*R400) SetErrors

func (s *R400) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R400) SetStatus

func (s *R400) SetStatus(val string)

SetStatus sets the value of Status.

func (*R400) UnmarshalJSON

func (s *R400) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R404

type R404 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R404) Decode

func (s *R404) Decode(d *jx.Decoder) error

Decode decodes R404 from json.

func (*R404) Encode

func (s *R404) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R404) GetCode

func (s *R404) GetCode() int

GetCode returns the value of Code.

func (*R404) GetErrors

func (s *R404) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R404) GetStatus

func (s *R404) GetStatus() string

GetStatus returns the value of Status.

func (*R404) MarshalJSON

func (s *R404) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R404) SetCode

func (s *R404) SetCode(val int)

SetCode sets the value of Code.

func (*R404) SetErrors

func (s *R404) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R404) SetStatus

func (s *R404) SetStatus(val string)

SetStatus sets the value of Status.

func (*R404) UnmarshalJSON

func (s *R404) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R409

type R409 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R409) Decode

func (s *R409) Decode(d *jx.Decoder) error

Decode decodes R409 from json.

func (*R409) Encode

func (s *R409) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R409) GetCode

func (s *R409) GetCode() int

GetCode returns the value of Code.

func (*R409) GetErrors

func (s *R409) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R409) GetStatus

func (s *R409) GetStatus() string

GetStatus returns the value of Status.

func (*R409) MarshalJSON

func (s *R409) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R409) SetCode

func (s *R409) SetCode(val int)

SetCode sets the value of Code.

func (*R409) SetErrors

func (s *R409) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R409) SetStatus

func (s *R409) SetStatus(val string)

SetStatus sets the value of Status.

func (*R409) UnmarshalJSON

func (s *R409) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R500

type R500 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R500) Decode

func (s *R500) Decode(d *jx.Decoder) error

Decode decodes R500 from json.

func (*R500) Encode

func (s *R500) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R500) GetCode

func (s *R500) GetCode() int

GetCode returns the value of Code.

func (*R500) GetErrors

func (s *R500) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R500) GetStatus

func (s *R500) GetStatus() string

GetStatus returns the value of Status.

func (*R500) MarshalJSON

func (s *R500) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R500) SetCode

func (s *R500) SetCode(val int)

SetCode sets the value of Code.

func (*R500) SetErrors

func (s *R500) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R500) SetStatus

func (s *R500) SetStatus(val string)

SetStatus sets the value of Status.

func (*R500) UnmarshalJSON

func (s *R500) UnmarshalJSON(data []byte) error

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) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

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

CreateAllTypes implements createAllTypes operation.

Creates a new AllTypes and persists it to storage.

POST /all-types

func (UnimplementedHandler) CreateCategory

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

CreateUser implements createUser operation.

Creates a new User and persists it to storage.

POST /users

func (UnimplementedHandler) DeleteAllTypes

DeleteAllTypes implements deleteAllTypes operation.

Deletes the AllTypes with the requested ID.

DELETE /all-types/{id}

func (UnimplementedHandler) DeleteCategory

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

DeleteUser implements deleteUser operation.

Deletes the User with the requested ID.

DELETE /users/{id}

func (UnimplementedHandler) ListAllTypes

ListAllTypes implements listAllTypes operation.

List AllTypes.

GET /all-types

func (UnimplementedHandler) ListCategory

ListCategory implements listCategory operation.

List Categories.

GET /categories

func (UnimplementedHandler) ListCategoryPets

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

ListPetCategories implements listPetCategories operation.

List attached Categories.

GET /pets/{id}/categories

func (UnimplementedHandler) ListPetFriends

ListPetFriends implements listPetFriends operation.

List attached Friends.

GET /pets/{id}/friends

func (UnimplementedHandler) ListPetRescuer

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

ListUserAnimalsSaved implements listUserAnimalsSaved operation.

List attached AnimalsSaveds.

GET /users/{id}/animals-saved

func (UnimplementedHandler) ListUserPets

ListUserPets implements listUserPets operation.

List attached Pets.

GET /users/{id}/pets

func (UnimplementedHandler) ReadAllTypes

ReadAllTypes implements readAllTypes operation.

Finds the AllTypes with the requested ID and returns it.

GET /all-types/{id}

func (UnimplementedHandler) ReadCategory

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

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

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

ReadUserBestFriend implements readUserBestFriend operation.

Find the attached User of the User with the given ID.

GET /users/{id}/best-friend

func (UnimplementedHandler) ReadUserFavoriteHat

ReadUserFavoriteHat implements readUserFavoriteHat operation.

Find the attached Hat of the User with the given ID.

GET /users/{id}/favorite-hat

func (UnimplementedHandler) UpdateAllTypes

UpdateAllTypes implements updateAllTypes operation.

Updates a AllTypes and persists changes to storage.

PATCH /all-types/{id}

func (UnimplementedHandler) UpdateCategory

UpdateCategory implements updateCategory operation.

Updates a Category and persists changes to storage.

PATCH /categories/{id}

func (UnimplementedHandler) UpdateHat

UpdateHat implements updateHat operation.

Updates a Hat and persists changes to storage.

PATCH /hats/{id}

func (UnimplementedHandler) UpdatePet

UpdatePet implements updatePet operation.

Updates a Pet and persists changes to storage.

PATCH /pets/{id}

func (UnimplementedHandler) UpdateUser

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

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

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

type UpdateCategoryReq struct {
	Name OptString `json:"name"`
	Pets []int     `json:"pets"`
}

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

type UpdateHatReq struct {
	Name   OptString `json:"name"`
	Wearer OptInt    `json:"wearer"`
}

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

Decode decodes UpdateUserReqFavoriteCatBreed from json.

func (UpdateUserReqFavoriteCatBreed) Encode

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

Decode decodes UpdateUserReqFavoriteDogBreed from json.

func (UpdateUserReqFavoriteDogBreed) Encode

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

Decode decodes UpdateUserReqFavoriteFishBreed from json.

func (UpdateUserReqFavoriteFishBreed) Encode

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

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 (*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 (*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

GetFavoriteColor returns the value of FavoriteColor.

func (*UserBestFriendRead) GetFavoriteDogBreed

GetFavoriteDogBreed returns the value of FavoriteDogBreed.

func (*UserBestFriendRead) GetFavoriteFishBreed

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

Decode decodes UserBestFriendReadFavoriteCatBreed from json.

func (UserBestFriendReadFavoriteCatBreed) Encode

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

type UserBestFriendReadFavoriteColor

type UserBestFriendReadFavoriteColor string
const (
	UserBestFriendReadFavoriteColorRed   UserBestFriendReadFavoriteColor = "red"
	UserBestFriendReadFavoriteColorGreen UserBestFriendReadFavoriteColor = "green"
	UserBestFriendReadFavoriteColorBlue  UserBestFriendReadFavoriteColor = "blue"
)

func (*UserBestFriendReadFavoriteColor) Decode

Decode decodes UserBestFriendReadFavoriteColor from json.

func (UserBestFriendReadFavoriteColor) Encode

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

type UserBestFriendReadFavoriteDogBreed

type UserBestFriendReadFavoriteDogBreed string
const (
	UserBestFriendReadFavoriteDogBreedKuro UserBestFriendReadFavoriteDogBreed = "Kuro"
)

func (*UserBestFriendReadFavoriteDogBreed) Decode

Decode decodes UserBestFriendReadFavoriteDogBreed from json.

func (UserBestFriendReadFavoriteDogBreed) Encode

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

type UserBestFriendReadFavoriteFishBreed

type UserBestFriendReadFavoriteFishBreed string
const (
	UserBestFriendReadFavoriteFishBreedGold  UserBestFriendReadFavoriteFishBreed = "gold"
	UserBestFriendReadFavoriteFishBreedKoi   UserBestFriendReadFavoriteFishBreed = "koi"
	UserBestFriendReadFavoriteFishBreedShark UserBestFriendReadFavoriteFishBreed = "shark"
)

func (*UserBestFriendReadFavoriteFishBreed) Decode

Decode decodes UserBestFriendReadFavoriteFishBreed from json.

func (UserBestFriendReadFavoriteFishBreed) Encode

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

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) GetAge

func (s *UserCreate) GetAge() int64

GetAge returns the value of Age.

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) GetID

func (s *UserCreate) GetID() int

GetID returns the value of ID.

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) SetAge

func (s *UserCreate) SetAge(val int64)

SetAge sets the value of Age.

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) SetID

func (s *UserCreate) SetID(val int)

SetID sets the value of ID.

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

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

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

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 (*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

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

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 NewUserList(e *ent.User) *UserList

func NewUserLists

func NewUserLists(es []*ent.User) []UserList

func (*UserList) Decode

func (s *UserList) Decode(d *jx.Decoder) error

Decode decodes UserList from json.

func (*UserList) Elem

func (u *UserList) Elem() UserList

func (*UserList) Encode

func (s *UserList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserList) GetAge

func (s *UserList) GetAge() int64

GetAge returns the value of Age.

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) GetHeight

func (s *UserList) GetHeight() OptInt64

GetHeight returns the value of Height.

func (*UserList) GetID

func (s *UserList) GetID() int

GetID returns the value of ID.

func (*UserList) GetName

func (s *UserList) GetName() string

GetName returns the value of Name.

func (*UserList) MarshalJSON

func (s *UserList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserList) SetAge

func (s *UserList) SetAge(val int64)

SetAge sets the value of Age.

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) SetHeight

func (s *UserList) SetHeight(val OptInt64)

SetHeight sets the value of Height.

func (*UserList) SetID

func (s *UserList) SetID(val int)

SetID sets the value of ID.

func (*UserList) SetName

func (s *UserList) SetName(val string)

SetName sets the value of Name.

func (*UserList) UnmarshalJSON

func (s *UserList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserList) Validate

func (s *UserList) Validate() error

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) GetID

func (s *UserPetsList) GetID() int

GetID returns the value of ID.

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) SetID

func (s *UserPetsList) SetID(val int)

SetID sets the value of ID.

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 NewUserRead(e *ent.User) *UserRead

func NewUserReads

func NewUserReads(es []*ent.User) []UserRead

func (*UserRead) Decode

func (s *UserRead) Decode(d *jx.Decoder) error

Decode decodes UserRead from json.

func (*UserRead) Elem

func (u *UserRead) Elem() UserRead

func (*UserRead) Encode

func (s *UserRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserRead) GetAge

func (s *UserRead) GetAge() int64

GetAge returns the value of Age.

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) GetHeight

func (s *UserRead) GetHeight() OptInt64

GetHeight returns the value of Height.

func (*UserRead) GetID

func (s *UserRead) GetID() int

GetID returns the value of ID.

func (*UserRead) GetName

func (s *UserRead) GetName() string

GetName returns the value of Name.

func (*UserRead) MarshalJSON

func (s *UserRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserRead) SetAge

func (s *UserRead) SetAge(val int64)

SetAge sets the value of Age.

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) SetHeight

func (s *UserRead) SetHeight(val OptInt64)

SetHeight sets the value of Height.

func (*UserRead) SetID

func (s *UserRead) SetID(val int)

SetID sets the value of ID.

func (*UserRead) SetName

func (s *UserRead) SetName(val string)

SetName sets the value of Name.

func (*UserRead) UnmarshalJSON

func (s *UserRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserRead) Validate

func (s *UserRead) Validate() error

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) GetAge

func (s *UserUpdate) GetAge() int64

GetAge returns the value of Age.

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) GetID

func (s *UserUpdate) GetID() int

GetID returns the value of ID.

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) SetAge

func (s *UserUpdate) SetAge(val int64)

SetAge sets the value of Age.

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) SetID

func (s *UserUpdate) SetID(val int)

SetID sets the value of ID.

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL