#[non_exhaustive]pub struct PkixPublicKey {
pub public_key_pem: String,
pub signature_algorithm: SignatureAlgorithm,
/* private fields */
}
Expand description
A public key in the PkixPublicKey format (see https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.public_key_pem: String
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
signature_algorithm: SignatureAlgorithm
The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem
(i.e. this algorithm must match
that of the public key).
Implementations§
Source§impl PkixPublicKey
impl PkixPublicKey
pub fn new() -> Self
Sourcepub fn set_public_key_pem<T: Into<String>>(self, v: T) -> Self
pub fn set_public_key_pem<T: Into<String>>(self, v: T) -> Self
Sets the value of public_key_pem.
Sourcepub fn set_signature_algorithm<T: Into<SignatureAlgorithm>>(self, v: T) -> Self
pub fn set_signature_algorithm<T: Into<SignatureAlgorithm>>(self, v: T) -> Self
Sets the value of signature_algorithm.
Trait Implementations§
Source§impl Clone for PkixPublicKey
impl Clone for PkixPublicKey
Source§fn clone(&self) -> PkixPublicKey
fn clone(&self) -> PkixPublicKey
Returns a duplicate 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 PkixPublicKey
impl Debug for PkixPublicKey
Source§impl Default for PkixPublicKey
impl Default for PkixPublicKey
Source§fn default() -> PkixPublicKey
fn default() -> PkixPublicKey
Returns the “default value” for a type. Read more
Source§impl Message for PkixPublicKey
impl Message for PkixPublicKey
Source§impl PartialEq for PkixPublicKey
impl PartialEq for PkixPublicKey
impl StructuralPartialEq for PkixPublicKey
Auto Trait Implementations§
impl Freeze for PkixPublicKey
impl RefUnwindSafe for PkixPublicKey
impl Send for PkixPublicKey
impl Sync for PkixPublicKey
impl Unpin for PkixPublicKey
impl UnwindSafe for PkixPublicKey
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