pub struct MessageInfo<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub display: Option<Component<CustomDataType>>,
pub end_date_time: Option<OcppTimestamp>,
pub id: i64,
pub message: MessageContent<CustomDataType>,
pub priority: MessagePriorityEnum,
pub start_date_time: Option<OcppTimestamp>,
pub state: Option<MessageStateEnum>,
pub transaction_id: Option<String<36usize>>,
}Expand description
Message_ Info urn:x-enexis:ecdm:uid:2:233264 Contains message details, for a message to be displayed on a Charging Station.
Fields§
§custom_data: Option<CustomDataType>§display: Option<Component<CustomDataType>>§end_date_time: Option<OcppTimestamp>Message_ Info. End. Date_ Time urn:x-enexis:ecdm:uid:1:569257 Until what date-time should this message be shown, after this date/time this message SHALL be removed.
id: i64Identified_ Object. MRID. Numeric_ Identifier urn:x-enexis:ecdm:uid:1:569198 Master resource identifier, unique within an exchange context. It is defined within the OCPP context as a positive Integer value (greater or equal to zero).
message: MessageContent<CustomDataType>§priority: MessagePriorityEnum§start_date_time: Option<OcppTimestamp>Message_ Info. Start. Date_ Time urn:x-enexis:ecdm:uid:1:569256 From what date-time should this message be shown. If omitted: directly.
state: Option<MessageStateEnum>§transaction_id: Option<String<36usize>>During which transaction shall this message be shown. Message SHALL be removed by the Charging Station after transaction has ended.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for MessageInfo<CustomDataType>
impl<CustomDataType: Clone> Clone for MessageInfo<CustomDataType>
Source§fn clone(&self) -> MessageInfo<CustomDataType>
fn clone(&self) -> MessageInfo<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for MessageInfo<CustomDataType>
impl<CustomDataType: Debug> Debug for MessageInfo<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for MessageInfo<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for MessageInfo<CustomDataType>where
CustomDataType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<CustomDataType: Eq> Eq for MessageInfo<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for MessageInfo<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for MessageInfo<CustomDataType>
Source§impl<CustomDataType> Serialize for MessageInfo<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for MessageInfo<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for MessageInfo<CustomDataType>
Source§impl<CustomDataType> Validate for MessageInfo<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for MessageInfo<CustomDataType>
validate only.