pub enum JmapMailboxRole {
Inbox,
Archive,
Drafts,
Flagged,
Important,
Junk,
Sent,
Subscribed,
Trash,
Other(String),
}Expand description
Mailbox role per the IANA JMAP Mailbox Roles registry (RFC 8621 §2.1).
Any unknown or server-defined role is held by JmapMailboxRole::Other.
Variants§
Inbox
Primary inbox.
Archive
Archived messages.
Drafts
Draft messages.
Flagged
Flagged / starred messages.
Important
Messages marked as important.
Junk
Spam / junk messages.
Sent
Sent messages.
Subscribed
Virtual mailbox of all subscribed mailboxes.
Trash
Deleted messages.
Other(String)
A server-defined or unrecognised role.
Trait Implementations§
Source§impl Clone for JmapMailboxRole
impl Clone for JmapMailboxRole
Source§fn clone(&self) -> JmapMailboxRole
fn clone(&self) -> JmapMailboxRole
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 JmapMailboxRole
impl Debug for JmapMailboxRole
Source§impl<'de> Deserialize<'de> for JmapMailboxRole
impl<'de> Deserialize<'de> for JmapMailboxRole
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for JmapMailboxRole
impl Display for JmapMailboxRole
impl Eq for JmapMailboxRole
Source§impl PartialEq for JmapMailboxRole
impl PartialEq for JmapMailboxRole
Source§impl Serialize for JmapMailboxRole
impl Serialize for JmapMailboxRole
impl StructuralPartialEq for JmapMailboxRole
Auto Trait Implementations§
impl Freeze for JmapMailboxRole
impl RefUnwindSafe for JmapMailboxRole
impl Send for JmapMailboxRole
impl Sync for JmapMailboxRole
impl Unpin for JmapMailboxRole
impl UnsafeUnpin for JmapMailboxRole
impl UnwindSafe for JmapMailboxRole
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