ocpp/v2_0_1/datatype/evse
OCPP 2.0.1 Evse data type (schema EVSEType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
Electric Vehicle Supply Equipment
| Field | Type | Req | Description |
|---|---|---|---|
connector_id | Int | — | An id to designate a specific connector (on an EVSE) by connector index number. |
custom_data | CustomData | — | |
id | Int | ✓ | EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. |
Schema: EVSEType · EVSE · urn:x-oca:ocpp:uid:2:233123
pub type Evse {
Evse(
connector_id: option.Option(Int),
custom_data: option.Option(custom_data.CustomData),
id: Int,
)
}
Constructors
-
Evse( connector_id: option.Option(Int), custom_data: option.Option(custom_data.CustomData), id: Int, )
Values
pub fn decoder() -> decode.Decoder(Evse)
Decode a Evse from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(id id: Int) -> Evse
Construct a Evse from its required fields, with every optional field set to None.