ocpp/v2_0_1/datatype/charging_station
OCPP 2.0.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.
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
firmware_version | String | — | This contains the firmware version of the Charging Station. (max 50 chars) |
model | String | ✓ | Defines the model of the device. (max 20 chars) |
modem | Modem | — | |
serial_number | String | — | Vendor-specific device identifier. (max 25 chars) |
vendor_name | String | ✓ | Identifies the vendor (not necessarily in a unique manner). (max 50 chars) |
Schema: ChargingStationType · Charge_Point · urn:x-oca:ocpp:uid:2:233122
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
-
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, )
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.