pub struct Certificate<'a> {
pub serial_number: &'a [u8],
pub issuer: &'a [u8],
pub subject: &'a [u8],
pub subject_public_key: &'a [u8],
pub subject_key_identifier: Option<&'a [u8]>,
pub common_name: Option<String>,
}Expand description
The parts of a certificate a keychain record stores.
Every field borrows the certificate’s own bytes; nothing is re-encoded.
Fields§
§serial_number: &'a [u8]serialNumber, the INTEGER’s content bytes — leading zero included, the
way the keychain stores it.
issuer: &'a [u8]issuer, the whole Name element including its SEQUENCE header.
subject: &'a [u8]subject, likewise.
subject_public_key: &'a [u8]The subjectPublicKey BIT STRING contents: what PublicKeyHash hashes.
subject_key_identifier: Option<&'a [u8]>The subjectKeyIdentifier extension’s OCTET STRING contents, when present.
common_name: Option<String>The first commonName in the subject, for a default label.
Implementations§
Source§impl<'a> Certificate<'a>
impl<'a> Certificate<'a>
Trait Implementations§
Source§impl<'a> Clone for Certificate<'a>
impl<'a> Clone for Certificate<'a>
Source§fn clone(&self) -> Certificate<'a>
fn clone(&self) -> Certificate<'a>
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<'a> Freeze for Certificate<'a>
impl<'a> RefUnwindSafe for Certificate<'a>
impl<'a> Send for Certificate<'a>
impl<'a> Sync for Certificate<'a>
impl<'a> Unpin for Certificate<'a>
impl<'a> UnsafeUnpin for Certificate<'a>
impl<'a> UnwindSafe for Certificate<'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