pub struct VerificationMethod {
pub id: String,
pub key_type: String,
pub controller: String,
pub revoked: Option<DateTime<Utc>>,
pub public_key: Option<KeyFormat>,
pub private_key: Option<KeyFormat>,
pub additional_properties: Option<HashMap<String, Value>>,
}Expand description
Represents a verification method in a DID Document.
Fields§
§id: String§key_type: String§controller: String§revoked: Option<DateTime<Utc>>§public_key: Option<KeyFormat>§private_key: Option<KeyFormat>§additional_properties: Option<HashMap<String, Value>>Implementations§
Source§impl VerificationMethod
impl VerificationMethod
Sourcepub fn deserialize_public_key_format<'de, D>(
deserializer: D,
) -> Result<Option<KeyFormat>, D::Error>where
D: Deserializer<'de>,
pub fn deserialize_public_key_format<'de, D>(
deserializer: D,
) -> Result<Option<KeyFormat>, D::Error>where
D: Deserializer<'de>,
Deserializes the private key format from a JSON map with the appropriate key format field.
Sourcepub fn deserialize_private_key_format<'de, D>(
deserializer: D,
) -> Result<Option<KeyFormat>, D::Error>where
D: Deserializer<'de>,
pub fn deserialize_private_key_format<'de, D>(
deserializer: D,
) -> Result<Option<KeyFormat>, D::Error>where
D: Deserializer<'de>,
Deserializes the private key format from a JSON map with the appropriate key format field.
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 · 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 Default for VerificationMethod
impl Default for VerificationMethod
Source§fn default() -> VerificationMethod
fn default() -> VerificationMethod
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for VerificationMethod
impl PartialEq for VerificationMethod
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 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