#[non_exhaustive]pub enum Dereferenced {
Document(Box<DidDocument>),
VerificationMethod(Box<VerificationMethod>),
Service(Box<Service>),
}Expand description
The resource a DID URL names, as Resolver::dereference returns it.
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.
Document(Box<DidDocument>)
The DID document: the URL had no fragment.
VerificationMethod(Box<VerificationMethod>)
The verification method with the id of the URL, listed under verificationMethod or
embedded in a relationship.
Service(Box<Service>)
The service with the id of the URL.
Implementations§
Source§impl Dereferenced
impl Dereferenced
Sourcepub fn as_document(&self) -> Option<&DidDocument>
pub fn as_document(&self) -> Option<&DidDocument>
The document, when that is what was dereferenced.
Sourcepub fn as_verification_method(&self) -> Option<&VerificationMethod>
pub fn as_verification_method(&self) -> Option<&VerificationMethod>
The verification method, when that is what was dereferenced.
Sourcepub fn as_service(&self) -> Option<&Service>
pub fn as_service(&self) -> Option<&Service>
The service, when that is what was dereferenced.
Trait Implementations§
Source§impl Clone for Dereferenced
impl Clone for Dereferenced
Source§impl Debug for Dereferenced
impl Debug for Dereferenced
impl Eq for Dereferenced
Source§impl PartialEq for Dereferenced
impl PartialEq for Dereferenced
impl StructuralPartialEq for Dereferenced
Auto Trait Implementations§
impl Freeze for Dereferenced
impl RefUnwindSafe for Dereferenced
impl Send for Dereferenced
impl Sync for Dereferenced
impl Unpin for Dereferenced
impl UnsafeUnpin for Dereferenced
impl UnwindSafe for Dereferenced
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.