pub enum Element {
SectionStart(String),
SectionEnd,
KeyValue(String, Vec<u8>),
ListStart(String),
ListItem(Vec<u8>),
ListEnd,
}Expand description
A single message element.
Variants§
SectionStart(String)
Begin a named section.
SectionEnd
End the most recently opened section.
KeyValue(String, Vec<u8>)
A key/value pair.
ListStart(String)
Begin a named list.
ListItem(Vec<u8>)
A list item value.
ListEnd
End the most recently opened list.
Trait Implementations§
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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