rust_ocpp/v2_0_1/messages/
log_status_notification.rs

1//! LogStatusNotification
2use crate::v2_0_1::enumerations::upload_log_status_enum_type::UploadLogStatusEnumType;
3
4/// LogStatusNotificationRequest, 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 LogStatusNotificationRequest {
8    /// This contains the status of the log upload.
9    pub status: UploadLogStatusEnumType,
10    /// The request id that was provided in GetLogRequest that started this log upload. This field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no log upload ongoing.
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub request_id: Option<i32>,
13}
14
15/// LogStatusNotificationResponse, sent by the CSMS to the Charging Station in response to LogStatusNotificationRequest. No fields are defined.
16#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
17#[serde(rename_all = "camelCase")]
18pub struct LogStatusNotificationResponse {
19    // No fields are defined.
20}