pub enum PrivateKeyValue {
Rsa(OctetStringAsn1Container<RsaPrivateKey>),
EC(OctetStringAsn1Container<ECPrivateKey>),
ED(OctetStringAsn1Container<OctetStringAsn1>),
}
Variants§
Rsa(OctetStringAsn1Container<RsaPrivateKey>)
EC(OctetStringAsn1Container<ECPrivateKey>)
ED(OctetStringAsn1Container<OctetStringAsn1>)
Trait Implementations§
source§impl Clone for PrivateKeyValue
impl Clone for PrivateKeyValue
source§fn clone(&self) -> PrivateKeyValue
fn clone(&self) -> PrivateKeyValue
Returns a copy 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 moresource§impl Debug for PrivateKeyValue
impl Debug for PrivateKeyValue
source§impl PartialEq for PrivateKeyValue
impl PartialEq for PrivateKeyValue
source§fn eq(&self, other: &PrivateKeyValue) -> bool
fn eq(&self, other: &PrivateKeyValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PrivateKeyValue
impl Serialize for PrivateKeyValue
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PrivateKeyValue
impl StructuralPartialEq for PrivateKeyValue
Auto Trait Implementations§
impl Freeze for PrivateKeyValue
impl RefUnwindSafe for PrivateKeyValue
impl Send for PrivateKeyValue
impl Sync for PrivateKeyValue
impl Unpin for PrivateKeyValue
impl UnwindSafe for PrivateKeyValue
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)