#[non_exhaustive]pub enum SomePublicKey {
Rsa(RsaPublicKey),
}Expand description
An RSA, EC or Ed25519 public key.
Use this if you just want to load SOME public key from an external pem file or JWK.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rsa(RsaPublicKey)
Trait Implementations§
Source§impl Debug for SomePublicKey
impl Debug for SomePublicKey
Source§impl From<RsaPublicKey> for SomePublicKey
Available on crate features openssl or aws-lc only.
impl From<RsaPublicKey> for SomePublicKey
Available on crate features
openssl or aws-lc only.Source§fn from(k: RsaPublicKey) -> SomePublicKey
fn from(k: RsaPublicKey) -> SomePublicKey
Converts to this type from the input type.
Source§impl PublicKeyToJwk for SomePublicKey
impl PublicKeyToJwk for SomePublicKey
fn public_key_to_jwk(&self) -> Result<Jwk>
Auto Trait Implementations§
impl Freeze for SomePublicKey
impl RefUnwindSafe for SomePublicKey
impl Send for SomePublicKey
impl Sync for SomePublicKey
impl Unpin for SomePublicKey
impl UnsafeUnpin for SomePublicKey
impl UnwindSafe for SomePublicKey
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