pub struct DidDocument {
pub id: String,
pub verification_key: String,
pub kind: String,
pub parent: Option<String>,
}Expand description
Minimal DID document fragment for the handshake.
Fields§
§id: StringCanonical DID (e.g. did:oas:l1fe:agent:my-bot).
verification_key: StringMultibase-encoded Ed25519 verification key.
kind: StringEntity kind (agent, tool, service, etc.).
parent: Option<String>Optional parent DID for lineage.
Trait Implementations§
Source§impl Clone for DidDocument
impl Clone for DidDocument
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 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