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<PrivateKeyValue> for PrivateKeyValue
impl PartialEq<PrivateKeyValue> 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 StructuralEq for PrivateKeyValue
impl StructuralPartialEq for PrivateKeyValue
Auto Trait Implementations§
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