pub struct X509Certificate {
pub raw: Vec<u8>,
pub subject_cn: Vec<u8>,
pub issuer_cn: Vec<u8>,
pub public_key: Vec<u8>,
pub not_before: u64,
pub not_after: u64,
pub is_ca: bool,
}Expand description
Simplified X.509 certificate representation
Fields§
§raw: Vec<u8>Raw DER-encoded certificate bytes
subject_cn: Vec<u8>Subject common name (extracted from DER)
issuer_cn: Vec<u8>Issuer common name (extracted from DER)
public_key: Vec<u8>Subject public key bytes (raw)
not_before: u64Not-before timestamp (Unix epoch seconds, 0 if unparsed)
not_after: u64Not-after timestamp (Unix epoch seconds, 0 if unparsed)
is_ca: boolIs this a CA certificate?
Implementations§
Trait Implementations§
Source§impl Clone for X509Certificate
impl Clone for X509Certificate
Source§fn clone(&self) -> X509Certificate
fn clone(&self) -> X509Certificate
Returns a duplicate of the value. Read more
1.0.0§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 X509Certificate
impl RefUnwindSafe for X509Certificate
impl Send for X509Certificate
impl Sync for X509Certificate
impl Unpin for X509Certificate
impl UnwindSafe for X509Certificate
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)