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>>),
}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>>)
Implementations
sourceimpl<'a> MailboxDatum<'a>
impl<'a> MailboxDatum<'a>
pub fn into_owned(self) -> MailboxDatum<'static>
Trait Implementations
sourceimpl<'a> Clone for MailboxDatum<'a>
impl<'a> Clone for MailboxDatum<'a>
sourcefn clone(&self) -> MailboxDatum<'a>
fn clone(&self) -> MailboxDatum<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for MailboxDatum<'a>
impl<'a> Debug for MailboxDatum<'a>
sourceimpl<'a> PartialEq<MailboxDatum<'a>> for MailboxDatum<'a>
impl<'a> PartialEq<MailboxDatum<'a>> for MailboxDatum<'a>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &MailboxDatum<'a>) -> bool
fn ne(&self, other: &MailboxDatum<'a>) -> bool
This method tests for !=.
impl<'a> Eq for MailboxDatum<'a>
impl<'a> StructuralEq for MailboxDatum<'a>
impl<'a> StructuralPartialEq for MailboxDatum<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more