pub enum JmapMailboxSetItemError {
MailboxHasChild {
description: Option<String>,
},
MailboxHasEmail {
description: Option<String>,
},
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 Mailbox/set responses (RFC 8621 §2.6).
Covers the standard RFC 8620 §5.3 set errors plus the mailbox-specific errors defined in RFC 8621 §2.6.
Variants§
MailboxHasChild
The mailbox cannot be destroyed because it has child mailboxes.
MailboxHasEmail
The mailbox cannot be destroyed because it contains email.
NotFound
The referenced object does not exist.
InvalidPatch
The update patch is invalid.
WillDestroy
The object will be destroyed by this request, so it cannot be updated.
InvalidProperties
One or more object properties are invalid.
Fields
Singleton
The type is a singleton, objects cannot be created or destroyed.
Unknown
Any error type this library does not know about.
Trait Implementations§
Source§impl Clone for JmapMailboxSetItemError
impl Clone for JmapMailboxSetItemError
Source§fn clone(&self) -> JmapMailboxSetItemError
fn clone(&self) -> JmapMailboxSetItemError
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 JmapMailboxSetItemError
impl Debug for JmapMailboxSetItemError
Source§impl<'de> Deserialize<'de> for JmapMailboxSetItemError
impl<'de> Deserialize<'de> for JmapMailboxSetItemError
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 JmapMailboxSetItemError
impl RefUnwindSafe for JmapMailboxSetItemError
impl Send for JmapMailboxSetItemError
impl Sync for JmapMailboxSetItemError
impl Unpin for JmapMailboxSetItemError
impl UnsafeUnpin for JmapMailboxSetItemError
impl UnwindSafe for JmapMailboxSetItemError
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