pub struct DidDocument {
pub context: Vec<String>,
pub id: String,
pub verification_method: Vec<KeyPair>,
pub authentication: Vec<String>,
pub assertion_method: Vec<String>,
pub capability_delegation: Vec<String>,
pub capability_invocation: Vec<String>,
pub key_agreement: Vec<KeyPair>,
}Fields§
§context: Vec<String>§id: String§verification_method: Vec<KeyPair>§authentication: Vec<String>§assertion_method: Vec<String>§capability_delegation: Vec<String>§capability_invocation: Vec<String>§key_agreement: Vec<KeyPair>Implementations§
Source§impl DidDocument
impl DidDocument
pub fn key_pair_to_did_doc( key_pair: &Box<dyn VerificationKey>, fingerprint: &str, ) -> Result<DidDocument, Error>
pub fn get_key(&self, key_id_fragment: &str) -> Result<KeyPair, Error>
Trait Implementations§
Source§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 UnwindSafe for DidDocument
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more