rust_ocpp/v2_0_1/messages/
clear_display_message.rs

1//! ClearDisplayMessage
2use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
3use crate::v2_0_1::enumerations::clear_message_status_enum_type::ClearMessageStatusEnumType;
4
5/// ClearDisplayMessageRequest, sent by the CSMS to the Charging Station.
6///
7/// The CSMS asks the Charging Station to clear a display message that has been
8/// configured in the Charging Station to be cleared/removed.
9#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
10#[serde(rename_all = "camelCase")]
11pub struct ClearDisplayMessageRequest {
12    /// Id of the message that SHALL be removed from the Charging Station
13    pub id: i32,
14}
15
16/// ClearDisplayMessageResponse, sent by the Charging Station to the CSMS in a response to a [`ClearDisplayMessageRequest`].
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct ClearDisplayMessageResponse {
20    /// Returns whether the Charging Station has been able to remove the message.
21    pub status: ClearMessageStatusEnumType,
22    /// Detailed status information.
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub status_info: Option<StatusInfoType>,
25}