#[non_exhaustive]pub struct ContactsAccountCapability {
pub max_address_books_per_card: Option<u64>,
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<u64>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§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
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