ocpp/v2_1/datatype/charging_station

OCPP 2.1 ChargingStation data type (schema ChargingStationType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

The physical system where an Electrical Vehicle (EV) can be charged.

FieldTypeReqDescription
custom_dataCustomData
firmware_versionStringThis contains the firmware version of the Charging Station. (max 50 chars)
modelStringDefines the model of the device. (max 20 chars)
modemModem
serial_numberStringVendor-specific device identifier. (max 25 chars)
vendor_nameStringIdentifies the vendor (not necessarily in a unique manner). (max 50 chars)

Schema: ChargingStationType

pub type ChargingStation {
  ChargingStation(
    custom_data: option.Option(custom_data.CustomData),
    firmware_version: option.Option(String),
    model: String,
    modem: option.Option(modem.Modem),
    serial_number: option.Option(String),
    vendor_name: String,
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(ChargingStation)

Decode a ChargingStation from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  model model: String,
  vendor_name vendor_name: String,
) -> ChargingStation

Construct a ChargingStation from its required fields, with every optional field set to None.

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

Encode a ChargingStation to its OCPP-J JSON object.

Search Document