pub struct DidKeyPair {
pub did: String,
pub method: DidMethod,
pub public_key: String,
pub private_key: Option<String>,
pub created: i64,
}Expand description
A DID keypair used for identity
Fields§
§did: StringThe DID string (e.g., did:lit:z6Mk…)
method: DidMethodThe key type
public_key: StringPublic key bytes (hex-encoded)
private_key: Option<String>Private key bytes (hex-encoded) — stored encrypted at rest
created: i64Creation timestamp
Implementations§
Trait Implementations§
Source§impl Clone for DidKeyPair
impl Clone for DidKeyPair
Source§fn clone(&self) -> DidKeyPair
fn clone(&self) -> DidKeyPair
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 DidKeyPair
impl Debug for DidKeyPair
Source§impl<'de> Deserialize<'de> for DidKeyPair
impl<'de> Deserialize<'de> for DidKeyPair
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 DidKeyPair
impl RefUnwindSafe for DidKeyPair
impl Send for DidKeyPair
impl Sync for DidKeyPair
impl Unpin for DidKeyPair
impl UnsafeUnpin for DidKeyPair
impl UnwindSafe for DidKeyPair
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