Enum tss_esapi::abstraction::public::DecodedKey
source · pub enum DecodedKey {
RsaPublicKey(RsaPublicKey),
EcPoint(EcPoint),
}
Expand description
Can be converted from crate::structures::Public
when not a fully constructed
picky_asn1_x509::SubjectPublicKeyInfo
is required.
§Details
Holds either picky_asn1_x509::RsaPublicKey
for crate::structures::Public::Rsa
or
picky_asn1_x509::EcPoint
for crate::structures::Public::Ecc
.
Variants§
RsaPublicKey(RsaPublicKey)
EcPoint(EcPoint)
Trait Implementations§
source§impl Clone for DecodedKey
impl Clone for DecodedKey
source§fn clone(&self) -> DecodedKey
fn clone(&self) -> DecodedKey
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 DecodedKey
impl Debug for DecodedKey
source§impl<'de> Deserialize<'de> for DecodedKey
impl<'de> Deserialize<'de> for DecodedKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DecodedKey
impl PartialEq for DecodedKey
source§fn eq(&self, other: &DecodedKey) -> bool
fn eq(&self, other: &DecodedKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DecodedKey
impl Serialize for DecodedKey
source§impl TryFrom<Public> for DecodedKey
impl TryFrom<Public> for DecodedKey
impl Eq for DecodedKey
impl StructuralPartialEq for DecodedKey
Auto Trait Implementations§
impl Freeze for DecodedKey
impl RefUnwindSafe for DecodedKey
impl Send for DecodedKey
impl Sync for DecodedKey
impl Unpin for DecodedKey
impl UnwindSafe for DecodedKey
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