pub struct DidDocument {
pub context: Vec<String>,
pub id: String,
pub verification_method: Vec<VerificationMethod>,
pub authentication: Vec<String>,
pub capabilities: Option<Vec<String>>,
pub service: Option<Vec<Service>>,
pub created: String,
pub updated: Option<String>,
}Expand description
DID Document — W3C DID Core spec compliant
Fields§
§context: Vec<String>§id: String§verification_method: Vec<VerificationMethod>§authentication: Vec<String>§capabilities: Option<Vec<String>>§service: Option<Vec<Service>>§created: String§updated: Option<String>Implementations§
Source§impl DidDocument
impl DidDocument
Sourcepub fn from_keypair(keypair: &DidKeyPair) -> Self
pub fn from_keypair(keypair: &DidKeyPair) -> Self
Create a DID Document from a keypair
Trait Implementations§
Source§impl Clone for DidDocument
impl Clone for DidDocument
Source§fn clone(&self) -> DidDocument
fn clone(&self) -> DidDocument
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 DidDocument
impl Debug for DidDocument
Source§impl<'de> Deserialize<'de> for DidDocument
impl<'de> Deserialize<'de> for DidDocument
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 DidDocument
impl RefUnwindSafe for DidDocument
impl Send for DidDocument
impl Sync for DidDocument
impl Unpin for DidDocument
impl UnsafeUnpin for DidDocument
impl UnwindSafe for DidDocument
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