rust_ocpp/v2_0_1/messages/firmware_status_notification.rs
1//! FirmwareStatusNotification
2use crate::v2_0_1::enumerations::firmware_status_enum_type::FirmwareStatusEnumType;
3
4/// FirmwareStatusNotifitacionRequest, sent by the Charging Station to the CSMS.
5#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
6#[serde(rename_all = "camelCase")]
7pub struct FirmwareStatusNotificationRequest {
8 /// This contains the progress status of the firmware installation.
9 pub status: FirmwareStatusEnumType,
10 /// The request id that was provided in the UpdateFirmwareRequest that started this firmware update.
11 /// This field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no firmware update ongoing.
12 #[serde(skip_serializing_if = "Option::is_none")]
13 pub request_id: Option<i32>,
14}
15
16/// FirmwareStatusNotificationResponse, sent by the CSMS to the Charging Station in response to a FirmwareStatusNotificationRequest.
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct FirmwareStatusNotificationResponse {
20 // No fields are defined.
21}