ocpp/v2_1/datatype/fixed_var_get

OCPP 2.1 FixedVarGet data type (schema FixedVarGetType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

FieldTypeReqDescription
custom_dataCustomData
fixed_varFixedVar
idStringId of setting (max 36 chars)
is_defaultBoolTrue if setting is a default control.
is_supersededBoolTrue if this setting is superseded by a lower priority setting

Schema: FixedVarGetType

pub type FixedVarGet {
  FixedVarGet(
    custom_data: option.Option(custom_data.CustomData),
    fixed_var: fixed_var.FixedVar,
    id: String,
    is_default: Bool,
    is_superseded: Bool,
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(FixedVarGet)

Decode a FixedVarGet from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  fixed_var fixed_var: fixed_var.FixedVar,
  id id: String,
  is_default is_default: Bool,
  is_superseded is_superseded: Bool,
) -> FixedVarGet

Construct a FixedVarGet from its required fields, with every optional field set to None.

pub fn to_json(value: FixedVarGet) -> json.Json

Encode a FixedVarGet to its OCPP-J JSON object.

Search Document