pub enum MailboxRole {
Inbox,
Archive,
Drafts,
Flagged,
Important,
Junk,
Sent,
Trash,
Other(String),
}Expand description
Special-use role of a mailbox.
Mirrors the IANA JMAP mailbox roles and the IMAP SPECIAL-USE
attributes (RFC 6154). MailboxRole::Other holds any value that
does not match a known role.
Not part of the shared Mailbox shape — only IMAP and JMAP
expose roles natively. Protocol-specific commands consume this
enum directly when they need to render or filter by role.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for MailboxRole
impl Clone for MailboxRole
Source§fn clone(&self) -> MailboxRole
fn clone(&self) -> MailboxRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MailboxRole
impl Debug for MailboxRole
Source§impl<'de> Deserialize<'de> for MailboxRole
impl<'de> Deserialize<'de> for MailboxRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MailboxRole
Source§impl Hash for MailboxRole
impl Hash for MailboxRole
Source§impl PartialEq for MailboxRole
impl PartialEq for MailboxRole
Source§fn eq(&self, other: &MailboxRole) -> bool
fn eq(&self, other: &MailboxRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MailboxRole
impl Serialize for MailboxRole
impl StructuralPartialEq for MailboxRole
Auto Trait Implementations§
impl Freeze for MailboxRole
impl RefUnwindSafe for MailboxRole
impl Send for MailboxRole
impl Sync for MailboxRole
impl Unpin for MailboxRole
impl UnsafeUnpin for MailboxRole
impl UnwindSafe for MailboxRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.