ocpp/v2_1/datatype/limit_max_discharge_get
OCPP 2.1 LimitMaxDischargeGet data type (schema LimitMaxDischargeGetType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
id | String | ✓ | Id of setting (max 36 chars) |
is_default | Bool | ✓ | True if setting is a default control. |
is_superseded | Bool | ✓ | True if this setting is superseded by a higher priority setting (i.e. lower value of priority) |
limit_max_discharge | LimitMaxDischarge | ✓ |
Schema: LimitMaxDischargeGetType
pub type LimitMaxDischargeGet {
LimitMaxDischargeGet(
custom_data: option.Option(custom_data.CustomData),
id: String,
is_default: Bool,
is_superseded: Bool,
limit_max_discharge: limit_max_discharge.LimitMaxDischarge,
)
}
Constructors
-
LimitMaxDischargeGet( custom_data: option.Option(custom_data.CustomData), id: String, is_default: Bool, is_superseded: Bool, limit_max_discharge: limit_max_discharge.LimitMaxDischarge, )
Values
pub fn decoder() -> decode.Decoder(LimitMaxDischargeGet)
Decode a LimitMaxDischargeGet from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
id id: String,
is_default is_default: Bool,
is_superseded is_superseded: Bool,
limit_max_discharge limit_max_discharge: limit_max_discharge.LimitMaxDischarge,
) -> LimitMaxDischargeGet
Construct a LimitMaxDischargeGet from its required fields, with every optional field set to None.
pub fn to_json(value: LimitMaxDischargeGet) -> json.Json
Encode a LimitMaxDischargeGet to its OCPP-J JSON object.