Enum imap_proto::types::MailboxDatum
source · #[non_exhaustive]pub enum MailboxDatum<'a> {
Exists(u32),
Flags(Vec<Cow<'a, str>>),
List {
name_attributes: Vec<NameAttribute<'a>>,
delimiter: Option<Cow<'a, str>>,
name: Cow<'a, str>,
},
Search(Vec<u32>),
Sort(Vec<u32>),
Status {
mailbox: Cow<'a, str>,
status: Vec<StatusAttribute>,
},
Recent(u32),
MetadataSolicited {
mailbox: Cow<'a, str>,
values: Vec<Metadata>,
},
MetadataUnsolicited {
mailbox: Cow<'a, str>,
values: Vec<Cow<'a, str>>,
},
GmailLabels(Vec<Cow<'a, str>>),
GmailMsgId(u64),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exists(u32)
Flags(Vec<Cow<'a, str>>)
List
Search(Vec<u32>)
Sort(Vec<u32>)
Status
Recent(u32)
MetadataSolicited
MetadataUnsolicited
GmailLabels(Vec<Cow<'a, str>>)
GmailMsgId(u64)
Implementations§
source§impl<'a> MailboxDatum<'a>
impl<'a> MailboxDatum<'a>
pub fn into_owned(self) -> MailboxDatum<'static>
Trait Implementations§
source§impl<'a> Clone for MailboxDatum<'a>
impl<'a> Clone for MailboxDatum<'a>
source§fn clone(&self) -> MailboxDatum<'a>
fn clone(&self) -> MailboxDatum<'a>
Returns a copy 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<'a> Debug for MailboxDatum<'a>
impl<'a> Debug for MailboxDatum<'a>
source§impl<'a> PartialEq for MailboxDatum<'a>
impl<'a> PartialEq for MailboxDatum<'a>
source§fn eq(&self, other: &MailboxDatum<'a>) -> bool
fn eq(&self, other: &MailboxDatum<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for MailboxDatum<'a>
impl<'a> StructuralPartialEq for MailboxDatum<'a>
Auto Trait Implementations§
impl<'a> Freeze for MailboxDatum<'a>
impl<'a> RefUnwindSafe for MailboxDatum<'a>
impl<'a> Send for MailboxDatum<'a>
impl<'a> Sync for MailboxDatum<'a>
impl<'a> Unpin for MailboxDatum<'a>
impl<'a> UnwindSafe for MailboxDatum<'a>
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