ocpp/v2_0_1/datatype/firmware
OCPP 2.0.1 Firmware data type (schema FirmwareType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
Represents a copy of the firmware that can be loaded/updated on the Charging Station.
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
install_date_time | DateTime | — | Date and time at which the firmware shall be installed. |
location | String | ✓ | URI defining the origin of the firmware. (max 512 chars) |
retrieve_date_time | DateTime | ✓ | Date and time at which the firmware shall be retrieved. |
signature | String | — | Base64 encoded firmware signature. (max 800 chars) |
signing_certificate | String | — | Certificate with which the firmware was signed. PEM encoded X.509 certificate. (max 5500 chars) |
Schema: FirmwareType · Firmware · urn:x-enexis:ecdm:uid:2:233291
pub type Firmware {
Firmware(
custom_data: option.Option(custom_data.CustomData),
install_date_time: option.Option(timestamp.Timestamp),
location: String,
retrieve_date_time: timestamp.Timestamp,
signature: option.Option(String),
signing_certificate: option.Option(String),
)
}
Constructors
-
Firmware( custom_data: option.Option(custom_data.CustomData), install_date_time: option.Option(timestamp.Timestamp), location: String, retrieve_date_time: timestamp.Timestamp, signature: option.Option(String), signing_certificate: option.Option(String), )
Values
pub fn decoder() -> decode.Decoder(Firmware)
Decode a Firmware from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
location location: String,
retrieve_date_time retrieve_date_time: timestamp.Timestamp,
) -> Firmware
Construct a Firmware from its required fields, with every optional field set to None.