#[non_exhaustive]pub enum JmapUriError {
NotJmapScheme,
InvalidDataType,
InvalidAccountId(Option<ValidationError>),
MissingObjectId,
InvalidObjectId(ValidationError),
}Expand description
Why a string or set of parts is not a valid JmapUri.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotJmapScheme
The URI scheme is not jmap.
InvalidDataType
The <type> segment is empty or not lowercase ASCII alphanumeric.
InvalidAccountId(Option<ValidationError>)
The <accountId> segment is missing or not a valid Id.
MissingObjectId
No <objectId> segment follows the account.
InvalidObjectId(ValidationError)
The <objectId> segment is not a valid Id, including when
further : segments follow it.
Trait Implementations§
Source§impl Clone for JmapUriError
impl Clone for JmapUriError
Source§impl Debug for JmapUriError
impl Debug for JmapUriError
Source§impl Display for JmapUriError
impl Display for JmapUriError
impl Eq for JmapUriError
Source§impl Error for JmapUriError
impl Error for JmapUriError
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 PartialEq for JmapUriError
impl PartialEq for JmapUriError
impl StructuralPartialEq for JmapUriError
Auto Trait Implementations§
impl Freeze for JmapUriError
impl RefUnwindSafe for JmapUriError
impl Send for JmapUriError
impl Sync for JmapUriError
impl Unpin for JmapUriError
impl UnsafeUnpin for JmapUriError
impl UnwindSafe for JmapUriError
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