ocpp/v2_1/datatype/evse

OCPP 2.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

FieldTypeReqDescription
connector_idIntAn id to designate a specific connector (on an EVSE) by connector index number. (≥ 0)
custom_dataCustomData
idIntEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. (≥ 0)

Schema: EVSEType

pub type Evse {
  Evse(
    connector_id: option.Option(Int),
    custom_data: option.Option(custom_data.CustomData),
    id: Int,
  )
}

Constructors

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.

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

Encode a Evse to its OCPP-J JSON object.

Search Document