Skip to content

StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle🔗

Definition🔗

type StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle struct {
    String *string `json:"String,omitempty"`
    Bool *bool `json:"Bool,omitempty"`
    Float64 *float64 `json:"Float64,omitempty"`
    CustomVariableValue *dashboardv2beta1.CustomVariableValue `json:"CustomVariableValue,omitempty"`
    ArrayOfVariableValueSingle []dashboardv2beta1.VariableValueSingle `json:"ArrayOfVariableValueSingle,omitempty"`
}

Methods🔗

MarshalJSON🔗

MarshalJSON implements a custom JSON marshalling logic to encode StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle as JSON.

func (stringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle *StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle) MarshalJSON() ([]byte, error)

UnmarshalJSON🔗

UnmarshalJSON implements a custom JSON unmarshalling logic to decode StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle from JSON.

func (stringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle *StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle) UnmarshalJSON(raw []byte) error

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle objects.

func (stringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle *StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle) Equals(other StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle) bool

Validate🔗

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

func (stringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle *StringOrBoolOrFloat64OrCustomVariableValueOrArrayOfVariableValueSingle) Validate() error

See also🔗