Skip to content

Max🔗

Definition🔗

type Max struct {
    Type string `json:"type"`
    Field *string `json:"field,omitempty"`
    Id string `json:"id"`
    Settings *elasticsearch.ElasticsearchMaxSettings `json:"settings,omitempty"`
    Hide *bool `json:"hide,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Max from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (max *Max) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two Max objects.

func (max *Max) Equals(other Max) bool

Validate🔗

Validate checks all the validation constraints that may be defined on Max fields for violations and returns them.

func (max *Max) Validate() error

See also🔗