Skip to content

ReduceDataOptions🔗

TODO docs

Definition🔗

type ReduceDataOptions struct {
    // If true show each row value
    Values *bool `json:"values,omitempty"`
    // if showing all values limit
    Limit *float64 `json:"limit,omitempty"`
    // When !values, pick one value for the whole field
    Calcs []string `json:"calcs"`
    // Which fields to show.  By default this is only numeric fields
    Fields *string `json:"fields,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode ReduceDataOptions 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 (reduceDataOptions *ReduceDataOptions) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two ReduceDataOptions objects.

func (reduceDataOptions *ReduceDataOptions) Equals(other ReduceDataOptions) bool

Validate🔗

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

func (reduceDataOptions *ReduceDataOptions) Validate() error

See also🔗