pub struct VerificationMethod {
pub id: String,
pub method_type: String,
pub controller: Did,
pub public_key_hex: String,
}Expand description
A verification method from a DID document.
Fields§
§id: StringDID URL for this key.
method_type: StringVerification method type.
controller: DidController DID.
public_key_hex: StringPublic key bytes encoded as hex for this local integration.
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<'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
impl Eq for VerificationMethod
Source§impl PartialEq for VerificationMethod
impl PartialEq for VerificationMethod
Source§fn eq(&self, other: &VerificationMethod) -> bool
fn eq(&self, other: &VerificationMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationMethod
impl Serialize 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