pub struct NewIdentity {
pub certificate: Vec<u8>,
pub private_key: Vec<u8>,
pub label: Option<String>,
pub trusted_applications: Vec<TrustedApplication>,
}Expand description
An identity to store: a certificate and the private key that matches it.
Fields§
§certificate: Vec<u8>The certificate, DER-encoded.
private_key: Vec<u8>The private key as a PKCS#8 PrivateKeyInfo, DER-encoded.
label: Option<String>Label for both records. Defaults to the certificate’s common name.
trusted_applications: Vec<TrustedApplication>Applications allowed to use the private key. Empty means any.
Trait Implementations§
Source§impl Clone for NewIdentity
impl Clone for NewIdentity
Source§fn clone(&self) -> NewIdentity
fn clone(&self) -> NewIdentity
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 NewIdentity
impl RefUnwindSafe for NewIdentity
impl Send for NewIdentity
impl Sync for NewIdentity
impl Unpin for NewIdentity
impl UnsafeUnpin for NewIdentity
impl UnwindSafe for NewIdentity
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