pub struct GeneratedIdentity {
pub subject_url: Did,
pub document: Document,
pub signing_private_key_hex: String,
pub encryption_private_key_hex: String,
}Expand description
A generated DID identity with keys and a signed document.
Private keys are hex-encoded for storage. Use SigningKey::from_private_key_bytes
and EncryptionKey::from_private_key_bytes to reconstruct key objects.
Fields§
§subject_url: Did§document: Document§signing_private_key_hex: String§encryption_private_key_hex: StringTrait Implementations§
Source§impl Clone for GeneratedIdentity
impl Clone for GeneratedIdentity
Source§fn clone(&self) -> GeneratedIdentity
fn clone(&self) -> GeneratedIdentity
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 moreAuto Trait Implementations§
impl Freeze for GeneratedIdentity
impl RefUnwindSafe for GeneratedIdentity
impl Send for GeneratedIdentity
impl Sync for GeneratedIdentity
impl Unpin for GeneratedIdentity
impl UnsafeUnpin for GeneratedIdentity
impl UnwindSafe for GeneratedIdentity
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