pub enum VerificationMethod {
DidKey(Did),
DidUrl(Did),
}Expand description
A verification method most typically is a public key (via did:key), or a Did Url
that links to a verification method in a different Did Document.
Variants§
DidKey(Did)
A did:key. This does not include the fragment suffix, to save space.
DidUrl(Did)
A reference to a verification method in a remote Did Document. Any method other
than did:key can be used.
DidUrls allow the use of verification methods that are controlled by third parties or with alternative did methods such as did:web. By referencing external Dids, users can use more convenient third party services while retaining their ability for credible exit.
Implementations§
Trait Implementations§
Source§impl Clone for VerificationMethod
impl Clone for VerificationMethod
Source§fn clone(&self) -> VerificationMethod
fn clone(&self) -> VerificationMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerificationMethod
impl Debug for VerificationMethod
Source§impl Display for VerificationMethod
impl Display for VerificationMethod
impl Eq for VerificationMethod
Source§impl From<Did> for VerificationMethod
impl From<Did> for VerificationMethod
Source§impl FromStr for VerificationMethod
impl FromStr for VerificationMethod
Source§impl PartialEq for VerificationMethod
impl PartialEq for VerificationMethod
impl StructuralPartialEq for VerificationMethod
Auto Trait Implementations§
impl Freeze for VerificationMethod
impl RefUnwindSafe for VerificationMethod
impl Send for VerificationMethod
impl Sync for VerificationMethod
impl Unpin for VerificationMethod
impl UnsafeUnpin for VerificationMethod
impl UnwindSafe for VerificationMethod
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