pub struct MessageContent {
pub content: String<1024usize>,
pub custom_data: Option<CustomData>,
pub format: MessageFormatEnum,
pub language: Option<String<8usize>>,
}Expand description
Contains message details, for a message to be displayed on a Charging Station.
Fields§
§content: String<1024usize>(2.1) Required. Message contents. + Maximum length supported by Charging Station is given in OCPPCommCtrlr.FieldLength[“MessageContentType.content”]. Maximum length defaults to 1024.
custom_data: Option<CustomData>§format: MessageFormatEnum§language: Option<String<8usize>>Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.
Trait Implementations§
Source§impl Clone for MessageContent
impl Clone for MessageContent
Source§fn clone(&self) -> MessageContent
fn clone(&self) -> MessageContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageContent
impl Debug for MessageContent
impl Eq for MessageContent
Source§impl PartialEq for MessageContent
impl PartialEq for MessageContent
impl StructuralPartialEq for MessageContent
Auto Trait Implementations§
impl Freeze for MessageContent
impl RefUnwindSafe for MessageContent
impl Send for MessageContent
impl Sync for MessageContent
impl Unpin for MessageContent
impl UnsafeUnpin for MessageContent
impl UnwindSafe for MessageContent
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