pub struct DidDocumentMetadata {
pub created: Option<String>,
pub updated: Option<String>,
pub deactivated: Option<bool>,
pub next_update: Option<String>,
pub version_id: Option<String>,
pub equivalent_id: Vec<String>,
pub canonical_id: Option<String>,
}Expand description
Metadata about the DID Document itself (not the DID or resolution process).
Per W3C DID Core §7.1.3, this is returned alongside every resolved document. Values here reflect the current state of the document as of resolution.
Fields§
§created: Option<String>When the DID was first created (RFC 3339 / ISO 8601 datetime string).
updated: Option<String>When the DID Document was last updated (RFC 3339 datetime). Absent if the document has never been updated since creation.
deactivated: Option<bool>true if the DID has been deactivated (revoked / succeeded).
Resolvers MUST include this field when the DID is deactivated.
next_update: Option<String>When the next version of the document is expected (RFC 3339 datetime).
version_id: Option<String>Version identifier of this specific document revision.
equivalent_id: Vec<String>DIDs that are equivalent to this DID per the resolution method. Used to express zone succession: the old DID’s metadata lists the new zone’s DID here.
canonical_id: Option<String>The canonical DID for this subject if different from the requested DID.
Implementations§
Source§impl DidDocumentMetadata
impl DidDocumentMetadata
Sourcepub fn deactivated_with_successor(successor_did: impl Into<String>) -> Self
pub fn deactivated_with_successor(successor_did: impl Into<String>) -> Self
Construct metadata indicating a deactivated DID.
Used for zone succession: the old zone is deactivated; successor_did
is listed in equivalent_id so resolvers can follow the chain.
Trait Implementations§
Source§impl Clone for DidDocumentMetadata
impl Clone for DidDocumentMetadata
Source§fn clone(&self) -> DidDocumentMetadata
fn clone(&self) -> DidDocumentMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more