pub struct DidDocument {
pub context: Vec<String>,
pub id: Did,
pub controller: Did,
pub verification_method: Vec<VerificationMethod>,
pub authentication: Vec<String>,
pub assertion_method: Vec<String>,
pub service: Vec<ServiceEndpoint>,
pub created: DateTime<Utc>,
pub updated: DateTime<Utc>,
}Expand description
A DID Document containing the agent’s public keys and service endpoints.
Follows the W3C DID Core specification. The document is resolvable via
the did:web method (HTTPS GET to /.well-known/did.json).
Fields§
§context: Vec<String>JSON-LD context URIs
id: DidThe DID this document describes
controller: DidThe DID of the controller (typically the tenant)
verification_method: Vec<VerificationMethod>Public keys and verification methods
authentication: Vec<String>DIDs or key IDs that can authenticate as this DID subject
assertion_method: Vec<String>DIDs or key IDs that can issue assertions (sign credentials)
service: Vec<ServiceEndpoint>Service endpoints (API URLs, messaging endpoints, etc.)
created: DateTime<Utc>When this document was created
updated: DateTime<Utc>When this document was last updated
Implementations§
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 · 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 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