pub enum PublicKeyBytes {
RSA(RsaPublic),
EC(EcPublic),
}Expand description
Public key bits.
For export of public keys this structure is used with one variant per one supported asymmetric algorithm.
Variants§
Trait Implementations§
Source§impl Debug for PublicKeyBytes
impl Debug for PublicKeyBytes
Source§impl<'de> Deserialize<'de> for PublicKeyBytes
impl<'de> Deserialize<'de> for PublicKeyBytes
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
Auto Trait Implementations§
impl Freeze for PublicKeyBytes
impl RefUnwindSafe for PublicKeyBytes
impl Send for PublicKeyBytes
impl Sync for PublicKeyBytes
impl Unpin for PublicKeyBytes
impl UnwindSafe for PublicKeyBytes
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