ocpp/v2_1/datatype/freq_droop_get

OCPP 2.1 FreqDroopGet data type (schema FreqDroopGetType).

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
freq_droopFreqDroop
idStringId of setting (max 36 chars)
is_defaultBoolTrue if setting is a default control.
is_supersededBoolTrue if this setting is superseded by a higher priority setting (i.e. lower value of priority)

Schema: FreqDroopGetType

pub type FreqDroopGet {
  FreqDroopGet(
    custom_data: option.Option(custom_data.CustomData),
    freq_droop: freq_droop.FreqDroop,
    id: String,
    is_default: Bool,
    is_superseded: Bool,
  )
}

Constructors

Values

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

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

pub fn new(
  freq_droop freq_droop: freq_droop.FreqDroop,
  id id: String,
  is_default is_default: Bool,
  is_superseded is_superseded: Bool,
) -> FreqDroopGet

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

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

Encode a FreqDroopGet to its OCPP-J JSON object.

Search Document