models

package
v0.0.0-...-0f3cf9a Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

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

Error error

swagger:model error

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type Face

type Face struct {

	// bounds
	Bounds *Rect `json:"bounds,omitempty"`

	// left eye
	LeftEye *Point `json:"left_eye,omitempty"`

	// mouth
	Mouth *Point `json:"mouth,omitempty"`

	// right eye
	RightEye *Point `json:"right_eye,omitempty"`
}

Face face

swagger:model Face

func (*Face) MarshalBinary

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

MarshalBinary interface implementation

func (*Face) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Face) Validate

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

Validate validates this face

type Point

type Point struct {

	// x
	X int64 `json:"x,omitempty"`

	// y
	Y int64 `json:"y,omitempty"`
}

Point point

swagger:model Point

func (*Point) MarshalBinary

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

MarshalBinary interface implementation

func (*Point) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Point) Validate

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

Validate validates this point

type Rect

type Rect struct {

	// height
	Height int64 `json:"height,omitempty"`

	// width
	Width int64 `json:"width,omitempty"`

	// x
	X int64 `json:"x,omitempty"`

	// y
	Y int64 `json:"y,omitempty"`
}

Rect rect

swagger:model Rect

func (*Rect) MarshalBinary

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

MarshalBinary interface implementation

func (*Rect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rect) Validate

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

Validate validates this rect

Jump to

Keyboard shortcuts

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