#[non_exhaustive]pub enum ResolutionErrorKind {
InvalidDid,
NotFound,
MethodNotSupported,
RepresentationNotSupported,
InvalidDidDocument,
InternalError,
Other(String),
}Expand description
The error keywords of DID resolution (DID Core §7.1.2, DID Resolution).
ResolutionError::kind returns it; it is what the error serializes as and what callers
match on. A keyword this crate does not know is kept in Other.
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.
InvalidDid
invalidDid: the DID does not conform to the DID syntax.
NotFound
notFound: no DID document exists for the DID.
MethodNotSupported
methodNotSupported: the resolver has no implementation of the DID method.
RepresentationNotSupported
representationNotSupported: the resolver cannot produce the requested media type.
InvalidDidDocument
invalidDidDocument: the method returned a document that is malformed or not the
document of the DID (DID Resolution “Errors”).
InternalError
internalError: the resolver failed unexpectedly (DID Resolution “Errors”).
Other(String)
Any other keyword.
Implementations§
Trait Implementations§
Source§impl Clone for ResolutionErrorKind
impl Clone for ResolutionErrorKind
Source§impl Debug for ResolutionErrorKind
impl Debug for ResolutionErrorKind
Source§impl Display for ResolutionErrorKind
impl Display for ResolutionErrorKind
impl Eq for ResolutionErrorKind
Source§impl From<ResolutionErrorKind> for ResolutionError
impl From<ResolutionErrorKind> for ResolutionError
Source§fn from(kind: ResolutionErrorKind) -> Self
fn from(kind: ResolutionErrorKind) -> Self
Converts to this type from the input type.
Source§impl FromStr for ResolutionErrorKind
impl FromStr for ResolutionErrorKind
Source§impl Hash for ResolutionErrorKind
impl Hash for ResolutionErrorKind
Source§impl PartialEq for ResolutionErrorKind
impl PartialEq for ResolutionErrorKind
impl StructuralPartialEq for ResolutionErrorKind
Auto Trait Implementations§
impl Freeze for ResolutionErrorKind
impl RefUnwindSafe for ResolutionErrorKind
impl Send for ResolutionErrorKind
impl Sync for ResolutionErrorKind
impl Unpin for ResolutionErrorKind
impl UnsafeUnpin for ResolutionErrorKind
impl UnwindSafe for ResolutionErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.