pub enum NameAttribute<'a> {
NoInferiors,
NoSelect,
Marked,
Unmarked,
Custom(Cow<'a, str>),
}
Expand description
An attribute set for an IMAP name.
Variants§
NoInferiors
It is not possible for any child levels of hierarchy to exist under this name; no child levels exist now and none can be created in the future.
NoSelect
It is not possible to use this name as a selectable mailbox.
Marked
The mailbox has been marked “interesting” by the server; the mailbox probably contains messages that have been added since the last time the mailbox was selected.
Unmarked
The mailbox does not contain any additional messages since the last time the mailbox was selected.
Custom(Cow<'a, str>)
A non-standard user- or server-defined name attribute.
Trait Implementations§
Source§impl<'a> Clone for NameAttribute<'a>
impl<'a> Clone for NameAttribute<'a>
Source§fn clone(&self) -> NameAttribute<'a>
fn clone(&self) -> NameAttribute<'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 NameAttribute<'a>
impl<'a> Debug for NameAttribute<'a>
Source§impl<'a> From<&'a str> for NameAttribute<'a>
impl<'a> From<&'a str> for NameAttribute<'a>
Source§impl<'a> From<String> for NameAttribute<'a>
impl<'a> From<String> for NameAttribute<'a>
Source§impl<'a> Hash for NameAttribute<'a>
impl<'a> Hash for NameAttribute<'a>
Source§impl<'a> PartialEq for NameAttribute<'a>
impl<'a> PartialEq for NameAttribute<'a>
impl<'a> Eq for NameAttribute<'a>
impl<'a> StructuralPartialEq for NameAttribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for NameAttribute<'a>
impl<'a> RefUnwindSafe for NameAttribute<'a>
impl<'a> Send for NameAttribute<'a>
impl<'a> Sync for NameAttribute<'a>
impl<'a> Unpin for NameAttribute<'a>
impl<'a> UnwindSafe for NameAttribute<'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