ogent

package
v0.0.0-...-1223d49 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 41 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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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 ...Option) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) CreateAllTypes

func (c *Client) CreateAllTypes(ctx context.Context, request CreateAllTypesReq) (res CreateAllTypesRes, err 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) (res CreateCategoryRes, err error)

CreateCategory invokes createCategory operation.

Creates a new Category and persists it to storage.

POST /categories

func (*Client) CreatePet

func (c *Client) CreatePet(ctx context.Context, request CreatePetReq) (res CreatePetRes, err 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) (res CreateUserRes, err 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) (res DeleteAllTypesRes, err 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) (res DeleteCategoryRes, err error)

DeleteCategory invokes deleteCategory operation.

Deletes the Category with the requested ID.

DELETE /categories/{id}

func (*Client) DeletePet

func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (res DeletePetRes, err 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) (res DeleteUserRes, err 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) (res ListAllTypesRes, err error)

ListAllTypes invokes listAllTypes operation.

List AllTypes.

GET /all-types

func (*Client) ListCategory

func (c *Client) ListCategory(ctx context.Context, params ListCategoryParams) (res ListCategoryRes, err error)

ListCategory invokes listCategory operation.

List Categories.

GET /categories

func (*Client) ListCategoryPets

func (c *Client) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (res ListCategoryPetsRes, err error)

ListCategoryPets invokes listCategoryPets operation.

List attached Pets.

GET /categories/{id}/pets

func (*Client) ListPet

func (c *Client) ListPet(ctx context.Context, params ListPetParams) (res ListPetRes, err error)

ListPet invokes listPet operation.

List Pets.

GET /pets

func (*Client) ListPetCategories

func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (res ListPetCategoriesRes, err error)

ListPetCategories invokes listPetCategories operation.

List attached Categories.

GET /pets/{id}/categories

func (*Client) ListPetFriends

func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (res ListPetFriendsRes, err error)

ListPetFriends invokes listPetFriends operation.

List attached Friends.

GET /pets/{id}/friends

func (*Client) ListUser

func (c *Client) ListUser(ctx context.Context, params ListUserParams) (res ListUserRes, err error)

ListUser invokes listUser operation.

List Users.

GET /users

func (*Client) ListUserPets

func (c *Client) ListUserPets(ctx context.Context, params ListUserPetsParams) (res ListUserPetsRes, err error)

ListUserPets invokes listUserPets operation.

List attached Pets.

GET /users/{id}/pets

func (*Client) ReadAllTypes

func (c *Client) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (res ReadAllTypesRes, err 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) (res ReadCategoryRes, err error)

ReadCategory invokes readCategory operation.

Finds the Category with the requested ID and returns it.

GET /categories/{id}

func (*Client) ReadPet

func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (res ReadPetRes, err 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) (res ReadPetOwnerRes, err 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) (res ReadUserRes, err 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) (res ReadUserBestFriendRes, err error)

ReadUserBestFriend invokes readUserBestFriend operation.

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

GET /users/{id}/best-friend

func (*Client) UpdateAllTypes

func (c *Client) UpdateAllTypes(ctx context.Context, request UpdateAllTypesReq, params UpdateAllTypesParams) (res UpdateAllTypesRes, err 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) (res UpdateCategoryRes, err error)

UpdateCategory invokes updateCategory operation.

Updates a Category and persists changes to storage.

PATCH /categories/{id}

func (*Client) UpdatePet

func (c *Client) UpdatePet(ctx context.Context, request UpdatePetReq, params UpdatePetParams) (res UpdatePetRes, err 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) (res UpdateUserRes, err error)

UpdateUser invokes updateUser operation.

Updates a User and persists changes to storage.

PATCH /users/{id}

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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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 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"`
	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) 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) 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"`
	FavoriteDogBreed  OptCreateUserReqFavoriteDogBreed  `json:"favorite_dog_breed"`
	FavoriteFishBreed OptCreateUserReqFavoriteFishBreed `json:"favorite_fish_breed"`
	Pets              []int                             `json:"pets"`
	BestFriend        OptInt                            `json:"best_friend"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateUserReqFavoriteCatBreed) Validate

func (s CreateUserReqFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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
}

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
}

type DeleteCategoryRes

type DeleteCategoryRes 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
}

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
}

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)
	// 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)
	// 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)
	// 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)
	// ListUser implements listUser operation.
	//
	// List Users.
	//
	// GET /users
	ListUser(ctx context.Context, params ListUserParams) (ListUserRes, 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)
	// 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)
	// 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)
	// 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 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
}

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
}

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
}

type ListCategoryPetsRes

type ListCategoryPetsRes interface {
	// contains filtered or unexported methods
}

type ListCategoryRes

type ListCategoryRes 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
}

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
}

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
}

type ListPetRes

type ListPetRes 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
}

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
}

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

func (h *OgentHandler) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)

ListUser handles GET /users 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) 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) UpdateAllTypes

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

func (*OgentHandler) UpdateCategory

UpdateCategory handles PATCH /categories/{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 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 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 {
	// contains filtered or unexported methods
}

func WithClient

func WithClient(client ht.Client) Option

WithClient specifies http client to use.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) Option

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) Option

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 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 WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) Option

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) Option

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) Option

WithPathPrefix specifies server path prefix.

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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (PetCreateOwnerFavoriteCatBreed) Validate

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (PetOwnerReadFavoriteCatBreed) Validate

func (s PetOwnerReadFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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 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
}

type ReadAllTypesRes

type ReadAllTypesRes interface {
	// contains filtered or unexported methods
}

type ReadCategoryParams

type ReadCategoryParams struct {
	// ID of the Category.
	ID int
}

type ReadCategoryRes

type ReadCategoryRes interface {
	// contains filtered or unexported methods
}

type ReadPetOwnerParams

type ReadPetOwnerParams struct {
	// ID of the Pet.
	ID int
}

type ReadPetOwnerRes

type ReadPetOwnerRes interface {
	// contains filtered or unexported methods
}

type ReadPetParams

type ReadPetParams struct {
	// ID of the Pet.
	ID int
}

type ReadPetRes

type ReadPetRes interface {
	// contains filtered or unexported methods
}

type ReadUserBestFriendParams

type ReadUserBestFriendParams struct {
	// ID of the User.
	ID int
}

type ReadUserBestFriendRes

type ReadUserBestFriendRes interface {
	// contains filtered or unexported methods
}

type ReadUserParams

type ReadUserParams struct {
	// ID of the User.
	ID int
}

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.

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 ...Option) (*Server, error)

NewServer creates new Server.

func (*Server) FindRoute

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

FindRoute finds Route for given method and path.

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

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

func (UnimplementedHandler) ListUser(ctx context.Context, params ListUserParams) (r ListUserRes, _ error)

ListUser implements listUser operation.

List Users.

GET /users

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

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"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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
}

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 UpdatePetParams

type UpdatePetParams struct {
	// ID of the Pet.
	ID int
}

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"`
	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) 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) 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
}

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"`
	BestFriend        OptInt                            `json:"best_friend"`
}

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UpdateUserReqFavoriteFishBreed) Validate

type UpdateUserRes

type UpdateUserRes interface {
	// contains filtered or unexported methods
}

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"`
	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

GetFavoriteCatBreed returns the value of FavoriteCatBreed.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserBestFriendReadFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserCreateFavoriteCatBreed) Validate

func (s UserCreateFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserCreateFavoriteFishBreed) Validate

func (s UserCreateFavoriteFishBreed) 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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserListFavoriteCatBreed) Validate

func (s UserListFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserReadFavoriteCatBreed) Validate

func (s UserReadFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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"`
	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) 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) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserUpdateFavoriteCatBreed) Validate

func (s UserUpdateFavoriteCatBreed) 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) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

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

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

UnmarshalJSON implements stdjson.Unmarshaler.

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