StringOrBoolOrFloat64OrCustomVariableValue🔗
Definition🔗
type StringOrBoolOrFloat64OrCustomVariableValue struct {
String *string `json:"String,omitempty"`
Bool *bool `json:"Bool,omitempty"`
Float64 *float64 `json:"Float64,omitempty"`
CustomVariableValue *dashboardv2beta1.CustomVariableValue `json:"CustomVariableValue,omitempty"`
}
Methods🔗
MarshalJSON🔗
MarshalJSON implements a custom JSON marshalling logic to encode StringOrBoolOrFloat64OrCustomVariableValue as JSON.
func (stringOrBoolOrFloat64OrCustomVariableValue *StringOrBoolOrFloat64OrCustomVariableValue) MarshalJSON() ([]byte, error)
UnmarshalJSON🔗
UnmarshalJSON implements a custom JSON unmarshalling logic to decode StringOrBoolOrFloat64OrCustomVariableValue from JSON.
func (stringOrBoolOrFloat64OrCustomVariableValue *StringOrBoolOrFloat64OrCustomVariableValue) UnmarshalJSON(raw []byte) error
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode StringOrBoolOrFloat64OrCustomVariableValue 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 (stringOrBoolOrFloat64OrCustomVariableValue *StringOrBoolOrFloat64OrCustomVariableValue) UnmarshalJSONStrict(raw []byte) error
Equals🔗
Equals tests the equality of two StringOrBoolOrFloat64OrCustomVariableValue objects.
func (stringOrBoolOrFloat64OrCustomVariableValue *StringOrBoolOrFloat64OrCustomVariableValue) Equals(other StringOrBoolOrFloat64OrCustomVariableValue) bool
Validate🔗
Validate checks all the validation constraints that may be defined on StringOrBoolOrFloat64OrCustomVariableValue fields for violations and returns them.
func (stringOrBoolOrFloat64OrCustomVariableValue *StringOrBoolOrFloat64OrCustomVariableValue) Validate() error