pub struct JmapMailbox {
pub id: Option<String>,
pub name: Option<String>,
pub parent_id: Option<String>,
pub role: Option<JmapMailboxRole>,
pub sort_order: u32,
pub total_emails: u32,
pub unread_emails: u32,
pub total_threads: u32,
pub unread_threads: u32,
pub my_rights: JmapMailboxRights,
pub is_subscribed: bool,
}Expand description
A JMAP Mailbox object (RFC 8621 §2.1): a named container for emails.
Fields§
§id: Option<String>§name: Option<String>§parent_id: Option<String>None for a top-level mailbox.
role: Option<JmapMailboxRole>§sort_order: u32§total_emails: u32§unread_emails: u32§total_threads: u32§unread_threads: u32§my_rights: JmapMailboxRights§is_subscribed: boolTrait Implementations§
Source§impl Clone for JmapMailbox
impl Clone for JmapMailbox
Source§fn clone(&self) -> JmapMailbox
fn clone(&self) -> JmapMailbox
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 JmapMailbox
impl Debug for JmapMailbox
Source§impl Default for JmapMailbox
impl Default for JmapMailbox
Source§fn default() -> JmapMailbox
fn default() -> JmapMailbox
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JmapMailbox
impl<'de> Deserialize<'de> for JmapMailbox
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
Auto Trait Implementations§
impl Freeze for JmapMailbox
impl RefUnwindSafe for JmapMailbox
impl Send for JmapMailbox
impl Sync for JmapMailbox
impl Unpin for JmapMailbox
impl UnsafeUnpin for JmapMailbox
impl UnwindSafe for JmapMailbox
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