pub struct EmbeddedVerificationMethod {
pub id: String,
pub vm_type: String,
pub controller: String,
pub public_key_multibase: String,
}Expand description
The current device’s verification method — the key that’s about to sign the JWT. Slim form (just the key + identity), no extra DID-document metadata. Must appear in the head roster of the chain.
Fields§
§id: StringFully-qualified ID, e.g. "did:mata:abc...#dev-laptop".
vm_type: StringAlways "EcdsaSecp256r1VerificationKey2019" in v1.
controller: StringThe DID that controls this verification method.
public_key_multibase: StringMultibase-encoded public key.
Trait Implementations§
Source§impl Clone for EmbeddedVerificationMethod
impl Clone for EmbeddedVerificationMethod
Source§fn clone(&self) -> EmbeddedVerificationMethod
fn clone(&self) -> EmbeddedVerificationMethod
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 EmbeddedVerificationMethod
impl Debug for EmbeddedVerificationMethod
Source§impl<'de> Deserialize<'de> for EmbeddedVerificationMethod
impl<'de> Deserialize<'de> for EmbeddedVerificationMethod
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbeddedVerificationMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbeddedVerificationMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EmbeddedVerificationMethod
impl Serialize for EmbeddedVerificationMethod
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EmbeddedVerificationMethod
impl RefUnwindSafe for EmbeddedVerificationMethod
impl Send for EmbeddedVerificationMethod
impl Sync for EmbeddedVerificationMethod
impl Unpin for EmbeddedVerificationMethod
impl UnsafeUnpin for EmbeddedVerificationMethod
impl UnwindSafe for EmbeddedVerificationMethod
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