#[non_exhaustive]pub struct AppendMessage {
pub flags: Vec<Flag>,
pub date: Option<String>,
pub data: Vec<u8>,
}Expand description
A message to be appended via MULTIAPPEND (RFC 3502).
Each message carries its own flags, optional internal date, and raw message data.
Multiple AppendMessage values are sent in a single APPEND command per
RFC 3502 Section 3.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.flags: Vec<Flag>Flags to set on the appended message (RFC 3501 Section 6.3.11).
date: Option<String>Optional INTERNALDATE in IMAP date-time format (RFC 3501 Section 6.3.11).
data: Vec<u8>Raw RFC 5322 message data.
Implementations§
Trait Implementations§
Source§impl Clone for AppendMessage
impl Clone for AppendMessage
Source§fn clone(&self) -> AppendMessage
fn clone(&self) -> AppendMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 AppendMessage
impl Debug for AppendMessage
Source§impl Hash for AppendMessage
impl Hash for AppendMessage
Source§impl PartialEq for AppendMessage
impl PartialEq for AppendMessage
impl Eq for AppendMessage
impl StructuralPartialEq for AppendMessage
Auto Trait Implementations§
impl Freeze for AppendMessage
impl RefUnwindSafe for AppendMessage
impl Send for AppendMessage
impl Sync for AppendMessage
impl Unpin for AppendMessage
impl UnsafeUnpin for AppendMessage
impl UnwindSafe for AppendMessage
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