pub enum JmapMethodError {
Show 17 variants
ServerFail {
description: Option<String>,
},
ServerPartialFail,
ServerUnavailable {
description: Option<String>,
},
UnknownCapability {
description: Option<String>,
},
NotJson {
description: Option<String>,
},
NotRequest {
description: Option<String>,
},
Limit {
description: Option<String>,
limit: String,
},
InvalidArguments {
description: Option<String>,
},
RequestTooLarge,
NotFound,
InvalidPatch {
description: Option<String>,
},
WillDestroy {
description: Option<String>,
},
InvalidProperties {
description: Option<String>,
properties: Vec<String>,
},
Singleton,
UnknownMethod {
description: Option<String>,
},
CannotCalculateChanges {
description: Option<String>,
},
Unknown,
}Expand description
A JMAP method-level error (RFC 8620 §3.6.1).
Variants§
ServerFail
ServerPartialFail
UnknownCapability
NotJson
NotRequest
Limit
InvalidArguments
RequestTooLarge
NotFound
InvalidPatch
WillDestroy
InvalidProperties
Singleton
UnknownMethod
CannotCalculateChanges
Server can no longer compute changes from sinceState (RFC 8620 §5.2):
callers MUST fall back to Foo/get and resume from the returned state.
Unknown
Trait Implementations§
Source§impl Clone for JmapMethodError
impl Clone for JmapMethodError
Source§fn clone(&self) -> JmapMethodError
fn clone(&self) -> JmapMethodError
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 JmapMethodError
impl Debug for JmapMethodError
Source§impl<'de> Deserialize<'de> for JmapMethodError
impl<'de> Deserialize<'de> for JmapMethodError
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 Display for JmapMethodError
impl Display for JmapMethodError
Source§impl Error for JmapMethodError
impl Error for JmapMethodError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<JmapMethodError> for JmapChangesError
impl From<JmapMethodError> for JmapChangesError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapEmailCopyError
impl From<JmapMethodError> for JmapEmailCopyError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapEmailImportError
impl From<JmapMethodError> for JmapEmailImportError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapEmailParseError
impl From<JmapMethodError> for JmapEmailParseError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapEmailSubmissionCancelError
impl From<JmapMethodError> for JmapEmailSubmissionCancelError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapEmailSubmissionSetError
impl From<JmapMethodError> for JmapEmailSubmissionSetError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapGetError
impl From<JmapMethodError> for JmapGetError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapIdentitySetError
impl From<JmapMethodError> for JmapIdentitySetError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapQueryChangesError
impl From<JmapMethodError> for JmapQueryChangesError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapQueryError
impl From<JmapMethodError> for JmapQueryError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapSetError
impl From<JmapMethodError> for JmapSetError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMethodError> for JmapVacationResponseSetError
impl From<JmapMethodError> for JmapVacationResponseSetError
Source§fn from(source: JmapMethodError) -> Self
fn from(source: JmapMethodError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JmapMethodError
impl RefUnwindSafe for JmapMethodError
impl Send for JmapMethodError
impl Sync for JmapMethodError
impl Unpin for JmapMethodError
impl UnsafeUnpin for JmapMethodError
impl UnwindSafe for JmapMethodError
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