#[non_exhaustive]pub struct ContactsAccountCapability {
pub max_address_books_per_card: Option<u32>,
pub may_create_address_book: bool,
}Expand description
Account-level contacts capability (RFC 9610 §1.4.1).
The value of urn:ietf:params:jmap:contacts in an account’s
accountCapabilities object. Contains server limits and permissions for
the account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_address_books_per_card: Option<u32>Maximum number of AddressBooks that can be assigned to a single
ContactCard. null means no limit.
may_create_address_book: booltrue if the user may create an AddressBook in this account.
Trait Implementations§
Source§impl Clone for ContactsAccountCapability
impl Clone for ContactsAccountCapability
Source§fn clone(&self) -> ContactsAccountCapability
fn clone(&self) -> ContactsAccountCapability
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 ContactsAccountCapability
impl Debug for ContactsAccountCapability
Source§impl<'de> Deserialize<'de> for ContactsAccountCapability
impl<'de> Deserialize<'de> for ContactsAccountCapability
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
Source§impl PartialEq for ContactsAccountCapability
impl PartialEq for ContactsAccountCapability
Source§fn eq(&self, other: &ContactsAccountCapability) -> bool
fn eq(&self, other: &ContactsAccountCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContactsAccountCapability
impl StructuralPartialEq for ContactsAccountCapability
Auto Trait Implementations§
impl Freeze for ContactsAccountCapability
impl RefUnwindSafe for ContactsAccountCapability
impl Send for ContactsAccountCapability
impl Sync for ContactsAccountCapability
impl Unpin for ContactsAccountCapability
impl UnsafeUnpin for ContactsAccountCapability
impl UnwindSafe for ContactsAccountCapability
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