#[non_exhaustive]pub enum DereferenceError {
Resolution {
did: Did,
error: ResolutionError,
},
InvalidDidUrl {
url: DidUrl,
reason: String,
},
MethodSpecific(DidUrl),
Deactivated(Did),
NotFound(DidUrl),
NotVerificationMethod(DidUrl),
NotInRelationship {
id: DidUrl,
relationship: VerificationRelationship,
},
NoJwk {
id: DidUrl,
method_type: MethodType,
source: Box<JwkError>,
},
}Expand description
Why a DID URL could not be dereferenced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Resolution
Resolving the DID of the URL failed.
InvalidDidUrl
The URL is syntactically valid but not usable: a DID parameter is given twice.
MethodSpecific(DidUrl)
The URL has a path or query parameter whose meaning only its DID method defines; this
crate dereferences none of them (the service and relativeRef parameters included).
Deactivated(Did)
The DID has been deactivated, so none of its resources may be used.
NotFound(DidUrl)
No verification method or service of the document has the id of the URL.
NotVerificationMethod(DidUrl)
The URL names the document or a service, not a verification method.
NotInRelationship
The verification method exists but is not usable for the required relationship.
Fields
relationship: VerificationRelationshipThe relationship that was required.
NoJwk
The verification method has no publicKeyJwk and its publicKeyMultibase is not a
Multikey this crate can decode (see Jwk::from_multikey).
Trait Implementations§
Source§impl Clone for DereferenceError
impl Clone for DereferenceError
Source§impl Debug for DereferenceError
impl Debug for DereferenceError
Source§impl Display for DereferenceError
impl Display for DereferenceError
impl Eq for DereferenceError
Source§impl Error for DereferenceError
impl Error for DereferenceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DereferenceError> for KeyResolutionError
impl From<DereferenceError> for KeyResolutionError
Source§fn from(error: DereferenceError) -> Self
fn from(error: DereferenceError) -> Self
Source§impl PartialEq for DereferenceError
impl PartialEq for DereferenceError
impl StructuralPartialEq for DereferenceError
Auto Trait Implementations§
impl !RefUnwindSafe for DereferenceError
impl !UnwindSafe for DereferenceError
impl Freeze for DereferenceError
impl Send for DereferenceError
impl Sync for DereferenceError
impl Unpin for DereferenceError
impl UnsafeUnpin for DereferenceError
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
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
key and return true if they are equal.