pub enum JmapIdentitySetItemError {
NotFound {
description: Option<String>,
},
InvalidPatch {
description: Option<String>,
},
WillDestroy {
description: Option<String>,
},
InvalidProperties {
description: Option<String>,
properties: Vec<String>,
},
Singleton {
description: Option<String>,
},
Unknown,
}Expand description
Per-object error returned in Identity/set responses (RFC 8621 §6.4).
Variants§
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
Singleton
Standard set error (RFC 8620 §5.3): tried to create/destroy a server-managed singleton.
Unknown
Catch-all for set errors not modelled above.
Trait Implementations§
Source§impl Clone for JmapIdentitySetItemError
impl Clone for JmapIdentitySetItemError
Source§fn clone(&self) -> JmapIdentitySetItemError
fn clone(&self) -> JmapIdentitySetItemError
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 JmapIdentitySetItemError
impl Debug for JmapIdentitySetItemError
Source§impl<'de> Deserialize<'de> for JmapIdentitySetItemError
impl<'de> Deserialize<'de> for JmapIdentitySetItemError
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 JmapIdentitySetItemError
impl RefUnwindSafe for JmapIdentitySetItemError
impl Send for JmapIdentitySetItemError
impl Sync for JmapIdentitySetItemError
impl Unpin for JmapIdentitySetItemError
impl UnsafeUnpin for JmapIdentitySetItemError
impl UnwindSafe for JmapIdentitySetItemError
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