#[non_exhaustive]pub enum SignerPublicKey<'a> {
X509(&'a CertificateDer<'a>),
RawPublicKey(&'a SubjectPublicKeyInfoDer<'a>),
}
Expand description
Public key used to verify a signature.
Used as part of SignatureVerificationInput
.
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.
X509(&'a CertificateDer<'a>)
An X.509 certificate for the signing peer.
RawPublicKey(&'a SubjectPublicKeyInfoDer<'a>)
A raw public key, as defined in RFC 7250.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SignerPublicKey<'a>
impl<'a> RefUnwindSafe for SignerPublicKey<'a>
impl<'a> Send for SignerPublicKey<'a>
impl<'a> Sync for SignerPublicKey<'a>
impl<'a> Unpin for SignerPublicKey<'a>
impl<'a> UnwindSafe for SignerPublicKey<'a>
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