rust_ocpp/v2_0_1/messages/
get_display_message.rs

1//! GetDisplayMessages
2use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
3use crate::v2_0_1::enumerations::get_display_messages_status_enum_type::GetDisplayMessagesStatusEnumType;
4use crate::v2_0_1::enumerations::message_priority_enum_type::MessagePriorityEnumType;
5use crate::v2_0_1::enumerations::message_state_enum_type::MessageStateEnumType;
6
7/// GetCompositeScheduleRequest, sent by the CSMS to the Charging Station.
8#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
9#[serde(rename_all = "camelCase")]
10pub struct GetDisplayMessagesRequest {
11    /// If provided the Charging Station shall returnDisplay Messages of the given ids. This field SHALL NOTcontain more ids than set inNumberOfDisplayMessages.maxLimit
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub id: Option<Vec<i32>>,
14    /// The Id of this request
15    pub request_id: i32,
16    /// If provided the Charging Station shall returnDisplay Messages with the given priority only
17    #[serde(skip_serializing_if = "Option::is_none")]
18    pub priority: Option<MessagePriorityEnumType>,
19    /// If provided the Charging Station shall returnDisplay Messages with the given state only.
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub state: Option<MessageStateEnumType>,
22}
23
24/// GetCompositeScheduleResponse, sent by the Charging Station to the CSMS in response to a GetCompositeScheduleRequest.
25#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
26#[serde(rename_all = "camelCase")]
27pub struct GetDisplayMessagesResponse {
28    ///  Indicates if the Charging Station has DisplayMessages that match the request criteria in theGetDisplayMessagesRequest
29    pub status: GetDisplayMessagesStatusEnumType,
30    /// Detailed status information
31    #[serde(skip_serializing_if = "Option::is_none")]
32    pub status_info: Option<StatusInfoType>,
33}