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
Auto Trait Implementations§
impl Forget for GeneratedIdentity
impl Freeze for GeneratedIdentitywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<VerificationMethod>: Freeze,
PhantomData<Ipld>: Freeze,
*const LeafNode<String, Ipld> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Ipld)>>: Freeze,
impl Move for GeneratedIdentity
impl RefUnwindSafe for GeneratedIdentity
impl Send for GeneratedIdentity
impl Sync for GeneratedIdentity
impl Unpin for GeneratedIdentity
impl UnsafeUnpin for GeneratedIdentitywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<VerificationMethod>: UnsafeUnpin,
PhantomData<Ipld>: UnsafeUnpin,
*const LeafNode<String, Ipld> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Ipld)>>: UnsafeUnpin,
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