pub struct VerificationMethod {
pub id: String,
pub controller: String,
pub method_type: String,
pub public_key_multibase: Option<String>,
pub public_key_jwk: Option<Value>,
pub purposes: Vec<VerificationPurpose>,
}Expand description
A verification method in a DID Document
Fields§
§id: StringVerification method ID (e.g., “did:tenzro:human:abc#key-1”)
controller: StringThe DID this method belongs to
method_type: StringMethod type (e.g., “Ed25519VerificationKey2020”)
public_key_multibase: Option<String>Public key in multibase encoding
public_key_jwk: Option<Value>Public key in JWK format
purposes: Vec<VerificationPurpose>Purposes this key serves (not part of W3C spec, used internally)
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<'de> Deserialize<'de> for VerificationMethod
impl<'de> Deserialize<'de> for VerificationMethod
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
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