Skip to content

ValueMappingResult🔗

Result used as replacement with text and color when the value matches

Definition🔗

type ValueMappingResult struct {
    // Text to display when the value matches
    Text *string `json:"text,omitempty"`
    // Text to use when the value matches
    Color *string `json:"color,omitempty"`
    // Icon to display when the value matches. Only specific visualizations.
    Icon *string `json:"icon,omitempty"`
    // Position in the mapping array. Only used internally.
    Index *int32 `json:"index,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two ValueMappingResult objects.

func (valueMappingResult *ValueMappingResult) Equals(other ValueMappingResult) bool

Validate🔗

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

func (valueMappingResult *ValueMappingResult) Validate() error

See also🔗