#[non_exhaustive]pub struct MailAccountCapability {
pub max_mailboxes_per_email: Option<u64>,
pub max_mailbox_depth: Option<u64>,
pub max_size_mailbox_name: u64,
pub max_size_attachments_per_email: u64,
pub email_query_sort_options: Vec<String>,
pub may_create_top_level_mailbox: bool,
}Expand description
Account-level Mail capability (RFC 8621 §1.3.1).
The value of accountCapabilities["urn:ietf:params:jmap:mail"] for a
given account. Describes server capabilities and account-level
permissions for the Mail extension.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_mailboxes_per_email: Option<u64>Maximum number of Mailboxes that may be assigned to a single Email,
or null for no limit (RFC 8621 §1.3.1). MUST be >= 1 when set.
max_mailbox_depth: Option<u64>Maximum depth of the Mailbox hierarchy (one more than the maximum
number of ancestors a Mailbox may have), or null for no limit
(RFC 8621 §1.3.1).
max_size_mailbox_name: u64Maximum length, in UTF-8 octets, allowed for a Mailbox name (RFC 8621 §1.3.1). MUST be at least 100.
max_size_attachments_per_email: u64Maximum total size, in octets, of attachments allowed for a single Email object (RFC 8621 §1.3.1). This is the unencoded attachment total; servers may enforce a separate limit on encoded message size.
email_query_sort_options: Vec<String>List of values the server supports for the property field of the
Comparator object in an Email/query sort (RFC 8621 §1.3.1 / §4.4.2).
May include vendor-specific extensions; clients MUST ignore unknown
entries.
may_create_top_level_mailbox: boolIf true, the user may create a Mailbox in this account with a
null parentId (RFC 8621 §1.3.1). Permission to create a child of
an existing Mailbox is governed by Mailbox.myRights instead.
Trait Implementations§
Source§impl Clone for MailAccountCapability
impl Clone for MailAccountCapability
Source§fn clone(&self) -> MailAccountCapability
fn clone(&self) -> MailAccountCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MailAccountCapability
impl Debug for MailAccountCapability
Source§impl<'de> Deserialize<'de> for MailAccountCapability
impl<'de> Deserialize<'de> for MailAccountCapability
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>,
impl Eq for MailAccountCapability
Source§impl PartialEq for MailAccountCapability
impl PartialEq for MailAccountCapability
Source§fn eq(&self, other: &MailAccountCapability) -> bool
fn eq(&self, other: &MailAccountCapability) -> bool
self and other values to be equal, and is used by ==.