models

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {

	// checkpoint
	Checkpoint string `json:"checkpoint,omitempty"`

	// creation time
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation-time,omitempty"`

	// ID of the image file.
	// Required: true
	ID *string `json:"id"`

	// negative prompt
	NegativePrompt string `json:"negative-prompt,omitempty"`

	// pixel
	Pixel int64 `json:"pixel,omitempty"`

	// prompt
	Prompt string `json:"prompt,omitempty"`

	// image additional properties
	ImageAdditionalProperties map[string]interface{} `json:"-"`
}

Image image

swagger:model Image

func (*Image) ContextValidate

func (m *Image) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image based on context it is used

func (*Image) MarshalBinary

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Image) MarshalJSON

func (m Image) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*Image) UnmarshalBinary

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) UnmarshalJSON

func (m *Image) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*Image) Validate

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type ImageList

type ImageList struct {

	// items
	Items []*Image `json:"items"`

	// metadata
	Metadata *Metadata `json:"metadata,omitempty"`
}

ImageList image list

swagger:model ImageList

func (*ImageList) ContextValidate

func (m *ImageList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image list based on the context it is used

func (*ImageList) MarshalBinary

func (m *ImageList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageList) UnmarshalBinary

func (m *ImageList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageList) Validate

func (m *ImageList) Validate(formats strfmt.Registry) error

Validate validates this image list

type Metadata

type Metadata struct {

	// The the current page you are at.
	// Example: 2
	// Required: true
	CurrentPage *int64 `json:"currentPage"`

	// The total number of items available.
	// Example: 46
	// Required: true
	TotalItems *int64 `json:"totalItems"`

	// The total number of pages.
	// Example: 16
	// Required: true
	TotalPages *int64 `json:"totalPages"`
}

Metadata metadata

swagger:model Metadata

func (*Metadata) ContextValidate

func (m *Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metadata based on context it is used

func (*Metadata) MarshalBinary

func (m *Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

func (m *Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metadata) Validate

func (m *Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

type StandardError

type StandardError struct {

	// The error message.
	// Required: true
	Message *string `json:"message"`
}

StandardError standard error

swagger:model StandardError

func (*StandardError) ContextValidate

func (m *StandardError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this standard error based on context it is used

func (*StandardError) MarshalBinary

func (m *StandardError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StandardError) UnmarshalBinary

func (m *StandardError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StandardError) Validate

func (m *StandardError) Validate(formats strfmt.Registry) error

Validate validates this standard error

Jump to

Keyboard shortcuts

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