rust_ocpp/v2_0_1/messages/
set_display_message.rs

1use crate::v2_0_1::datatypes::message_info_type::MessageInfoType;
2use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
3use crate::v2_0_1::enumerations::display_message_status_enum_type::DisplayMessageStatusEnumType;
4
5/// This contains the field definition of the SetDisplayMessageRequest PDU sent by the CSMS to the Charging Station. The CSMS asks the Charging Station to configure a new display message that the Charging Station will display (in the future). See also O01 - Set Display Message, O02 - Set Display Message for Transaction and O06 - Replace Display Message
6#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
7#[serde(rename_all = "camelCase")]
8pub struct SetDisplayMessageRequest {
9    pub message: MessageInfoType,
10}
11
12/// This contains the field definition of the SetDisplayMessageResponse PDU sent by the Charging Station to the CSMS in a response to a SetDisplayMessageRequest. See also O01 - Set Display Message, O02 - Set Display Message for Transaction and O06 - Replace Display Message
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
14#[serde(rename_all = "camelCase")]
15pub struct SetDisplayMessageResponse {
16    pub status: DisplayMessageStatusEnumType,
17    #[serde(skip_serializing_if = "Option::is_none")]
18    pub status_info: Option<StatusInfoType>,
19}