ocpp/v2_0_1/datatype/charging_limit
OCPP 2.0.1 ChargingLimit data type (schema ChargingLimitType).
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 |
|---|---|---|---|
charging_limit_source | ChargingLimitSource | ✓ | |
custom_data | CustomData | — | |
is_grid_critical | Bool | — | Indicates whether the charging limit is critical for the grid. |
Schema: ChargingLimitType · Charging_Limit · urn:x-enexis:ecdm:uid:2:234489
pub type ChargingLimit {
ChargingLimit(
charging_limit_source: charging_limit_source.ChargingLimitSource,
custom_data: option.Option(custom_data.CustomData),
is_grid_critical: option.Option(Bool),
)
}
Constructors
-
ChargingLimit( charging_limit_source: charging_limit_source.ChargingLimitSource, custom_data: option.Option(custom_data.CustomData), is_grid_critical: option.Option(Bool), )
Values
pub fn decoder() -> decode.Decoder(ChargingLimit)
Decode a ChargingLimit from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
charging_limit_source charging_limit_source: charging_limit_source.ChargingLimitSource,
) -> ChargingLimit
Construct a ChargingLimit from its required fields, with every optional field set to None.
pub fn to_json(value: ChargingLimit) -> json.Json
Encode a ChargingLimit to its OCPP-J JSON object.