ocpp/v2_1/datatype/overstay_rule_list

OCPP 2.1 OverstayRuleList data type (schema OverstayRuleListType).

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

Types

Part of ISO 15118-20 price schedule.

FieldTypeReqDescription
custom_dataCustomData
overstay_power_thresholdRationalNumber
overstay_ruleList(OverstayRule)
overstay_time_thresholdIntTime till overstay is applied in seconds.

Schema: OverstayRuleListType

pub type OverstayRuleList {
  OverstayRuleList(
    custom_data: option.Option(custom_data.CustomData),
    overstay_power_threshold: option.Option(
      rational_number.RationalNumber,
    ),
    overstay_rule: List(overstay_rule.OverstayRule),
    overstay_time_threshold: option.Option(Int),
  )
}

Constructors

Values

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

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

pub fn new(
  overstay_rule overstay_rule: List(overstay_rule.OverstayRule),
) -> OverstayRuleList

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

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

Encode a OverstayRuleList to its OCPP-J JSON object.

Search Document