pub enum DidResolutionError {
InvalidDid,
NotFound,
RepresentationNotSupported,
MethodNotSupported,
InvalidDidDocument,
InternalError,
}Expand description
Standardized DID resolution error codes per W3C DID Core §7.1.2.
Variants§
InvalidDid
The DID string is not a valid DID.
NotFound
The DID was not found by the resolver.
RepresentationNotSupported
The requested representation (content type) is not supported.
MethodNotSupported
The resolver does not support the requested DID method.
InvalidDidDocument
The resolved DID Document is not valid.
InternalError
An unexpected error occurred during resolution.
Trait Implementations§
Source§impl Clone for DidResolutionError
impl Clone for DidResolutionError
Source§fn clone(&self) -> DidResolutionError
fn clone(&self) -> DidResolutionError
Returns a duplicate of the value. Read more
1.0.0 · 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 DidResolutionError
impl Debug for DidResolutionError
Source§impl<'de> Deserialize<'de> for DidResolutionError
impl<'de> Deserialize<'de> for DidResolutionError
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 DidResolutionError
impl Display for DidResolutionError
Source§impl PartialEq for DidResolutionError
impl PartialEq for DidResolutionError
Source§impl Serialize for DidResolutionError
impl Serialize for DidResolutionError
impl Eq for DidResolutionError
impl StructuralPartialEq for DidResolutionError
Auto Trait Implementations§
impl Freeze for DidResolutionError
impl RefUnwindSafe for DidResolutionError
impl Send for DidResolutionError
impl Sync for DidResolutionError
impl Unpin for DidResolutionError
impl UnwindSafe for DidResolutionError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more