pub enum JmapAddressBookSetItemError {
AddressBookHasContents {
description: Option<String>,
},
Forbidden {
description: Option<String>,
},
NotFound {
description: Option<String>,
},
InvalidPatch {
description: Option<String>,
},
WillDestroy {
description: Option<String>,
},
InvalidProperties {
description: Option<String>,
properties: Vec<String>,
},
Unknown,
}Expand description
Per-object error returned in AddressBook/set responses (RFC 9610 §2.3).
Covers the standard RFC 8620 §5.3 set errors plus the AddressBook-specific error defined in RFC 9610 §2.3.
Variants§
AddressBookHasContents
The AddressBook still has ContactCards and onDestroyRemoveContents
was false (RFC 9610 §2.3).
Forbidden
Standard set error (RFC 8620 §5.3): the change is not allowed, e.g.
a shareWith or isSubscribed change rejected by the server.
NotFound
Standard set error (RFC 8620 §5.3): target id not found.
InvalidPatch
Standard set error (RFC 8620 §5.3): patch could not be applied.
WillDestroy
Standard set error (RFC 8620 §5.3): would destroy an object already queued for destruction in the same request.
InvalidProperties
Standard set error (RFC 8620 §5.3): one or more properties were invalid.
Fields
Unknown
Catch-all for set errors not modelled above.
Trait Implementations§
Source§impl Clone for JmapAddressBookSetItemError
impl Clone for JmapAddressBookSetItemError
Source§fn clone(&self) -> JmapAddressBookSetItemError
fn clone(&self) -> JmapAddressBookSetItemError
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 JmapAddressBookSetItemError
impl Debug for JmapAddressBookSetItemError
Source§impl<'de> Deserialize<'de> for JmapAddressBookSetItemError
impl<'de> Deserialize<'de> for JmapAddressBookSetItemError
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 JmapAddressBookSetItemError
impl RefUnwindSafe for JmapAddressBookSetItemError
impl Send for JmapAddressBookSetItemError
impl Sync for JmapAddressBookSetItemError
impl Unpin for JmapAddressBookSetItemError
impl UnsafeUnpin for JmapAddressBookSetItemError
impl UnwindSafe for JmapAddressBookSetItemError
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