pub struct DIDDoc {
pub id: String,
pub verification_method: Vec<VerificationMethod>,
pub authentication: Vec<String>,
pub key_agreement: Vec<String>,
pub assertion_method: Vec<String>,
pub capability_invocation: Vec<String>,
pub capability_delegation: Vec<String>,
pub service: Vec<Service>,
}Expand description
DID Document
Fields§
§id: StringDID that this document describes
verification_method: Vec<VerificationMethod>List of verification methods
authentication: Vec<String>List of authentication verification method references (id strings)
key_agreement: Vec<String>List of key agreement verification method references (id strings)
assertion_method: Vec<String>List of assertion method verification method references (id strings)
capability_invocation: Vec<String>List of capability invocation verification method references (id strings)
capability_delegation: Vec<String>List of capability delegation verification method references (id strings)
service: Vec<Service>List of services
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DIDDoc
impl<'de> Deserialize<'de> for DIDDoc
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 StructuralPartialEq for DIDDoc
Auto Trait Implementations§
impl Freeze for DIDDoc
impl RefUnwindSafe for DIDDoc
impl Send for DIDDoc
impl Sync for DIDDoc
impl Unpin for DIDDoc
impl UnwindSafe for DIDDoc
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