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>The server-assigned mailbox id.
name: Option<String>The user-visible mailbox name.
parent_id: Option<String>None for a top-level mailbox.
role: Option<JmapMailboxRole>The special-use role of the mailbox, when any.
sort_order: u32Position hint for display ordering (lower first).
total_emails: u32The number of emails in the mailbox.
unread_emails: u32The number of unread emails in the mailbox.
total_threads: u32The number of threads with at least one email in the mailbox.
unread_threads: u32The number of threads with at least one unread email in the mailbox.
my_rights: JmapMailboxRightsThe user’s rights on the mailbox.
is_subscribed: boolWhether the user is subscribed to the mailbox.
Trait 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