pub struct RawPublicKey {
pub public_key: Cow<'static, [u8]>,
pub scheme: SignatureScheme,
}Expand description
A raw public key pinned as a trust anchor (RFC 7250).
Used with DefaultCertificateVerifier::with_raw_keys to validate
raw-public-key connections. Each entry holds the raw key bytes and
the SignatureScheme the key belongs to.
Fields§
§public_key: Cow<'static, [u8]>§scheme: SignatureSchemeImplementations§
Source§impl RawPublicKey
impl RawPublicKey
Trait Implementations§
Source§impl Clone for RawPublicKey
impl Clone for RawPublicKey
Source§fn clone(&self) -> RawPublicKey
fn clone(&self) -> RawPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RawPublicKey
impl RefUnwindSafe for RawPublicKey
impl Send for RawPublicKey
impl Sync for RawPublicKey
impl Unpin for RawPublicKey
impl UnsafeUnpin for RawPublicKey
impl UnwindSafe for RawPublicKey
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