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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more