ocpp/v2_1/datatype/limit_at_soc
OCPP 2.1 LimitAtSoc data type (schema LimitAtSoCType).
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 | — | |
limit | Float | ✓ | Charging rate limit beyond the SoC value. The unit is defined by chargingSchedule.chargingRateUnit. |
soc | Int | ✓ | The SoC value beyond which the charging rate limit should be applied. (0–100) |
Schema: LimitAtSoCType
pub type LimitAtSoc {
LimitAtSoc(
custom_data: option.Option(custom_data.CustomData),
limit: Float,
soc: Int,
)
}
Constructors
-
LimitAtSoc( custom_data: option.Option(custom_data.CustomData), limit: Float, soc: Int, )
Values
pub fn decoder() -> decode.Decoder(LimitAtSoc)
Decode a LimitAtSoc from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(limit limit: Float, soc soc: Int) -> LimitAtSoc
Construct a LimitAtSoc from its required fields, with every optional field set to None.
pub fn to_json(value: LimitAtSoc) -> json.Json
Encode a LimitAtSoc to its OCPP-J JSON object.