pub struct MessageInfo {
pub custom_data: Option<CustomData>,
pub display: Option<Component>,
pub id: i64,
pub priority: MessagePriorityEnum,
pub state: Option<MessageStateEnum>,
pub start_date_time: Option<DateTime>,
pub end_date_time: Option<DateTime>,
pub transaction_id: Option<String>,
pub message: MessageContent,
}Expand description
Message_ Info Contains message details, for a message to be displayed on a Charging Station.
Fields§
§custom_data: Option<CustomData>§display: Option<Component>§id: i64Identified_ Object. MRID. Numeric_ Identifier 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).
priority: MessagePriorityEnum§state: Option<MessageStateEnum>§start_date_time: Option<DateTime>Message_ Info. Start. Date_ Time From what date-time should this message be shown. If omitted: directly.
end_date_time: Option<DateTime>Message_ Info. End. Date_ Time Until what date-time should this message be shown, after this date/time this message SHALL be removed.
transaction_id: Option<String>During which transaction shall this message be shown. Message SHALL be removed by the Charging Station after transaction has ended.
message: MessageContentTrait Implementations§
Source§impl Clone for MessageInfo
impl Clone for MessageInfo
Source§impl Debug for MessageInfo
impl Debug for MessageInfo
Source§impl<'de> Deserialize<'de> for MessageInfo
impl<'de> Deserialize<'de> for MessageInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageInfo
impl PartialEq for MessageInfo
Source§impl Serialize for MessageInfo
impl Serialize for MessageInfo
impl StructuralPartialEq for MessageInfo
Auto Trait Implementations§
impl Freeze for MessageInfo
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnsafeUnpin for MessageInfo
impl UnwindSafe for MessageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more