Struct mbedtls_sys::x509_crt

source ·
#[repr(C)]
pub struct x509_crt {
Show 30 fields pub own_buffer: c_int, pub raw: x509_buf, pub tbs: x509_buf, pub version: c_int, pub serial: x509_buf, pub sig_oid: x509_buf, pub issuer_raw: x509_buf, pub subject_raw: x509_buf, pub issuer: x509_name, pub subject: x509_name, pub valid_from: x509_time, pub valid_to: x509_time, pub pk_raw: x509_buf, pub pk: pk_context, pub issuer_id: x509_buf, pub subject_id: x509_buf, pub v3_ext: x509_buf, pub subject_alt_names: x509_sequence, pub certificate_policies: x509_sequence, pub ext_types: c_int, pub ca_istrue: c_int, pub max_pathlen: c_int, pub key_usage: c_uint, pub ext_key_usage: x509_sequence, pub ns_cert_type: c_uchar, pub sig: x509_buf, pub sig_md: md_type_t, pub sig_pk: pk_type_t, pub sig_opts: *mut c_void, pub next: *mut x509_crt,
}

Fields§

§own_buffer: c_int§raw: x509_buf§tbs: x509_buf§version: c_int§serial: x509_buf§sig_oid: x509_buf§issuer_raw: x509_buf§subject_raw: x509_buf§issuer: x509_name§subject: x509_name§valid_from: x509_time§valid_to: x509_time§pk_raw: x509_buf§pk: pk_context§issuer_id: x509_buf§subject_id: x509_buf§v3_ext: x509_buf§subject_alt_names: x509_sequence§certificate_policies: x509_sequence§ext_types: c_int§ca_istrue: c_int§max_pathlen: c_int§key_usage: c_uint§ext_key_usage: x509_sequence§ns_cert_type: c_uchar§sig: x509_buf§sig_md: md_type_t§sig_pk: pk_type_t§sig_opts: *mut c_void§next: *mut x509_crt

Trait Implementations§

source§

impl Clone for x509_crt

source§

fn clone(&self) -> x509_crt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for x509_crt

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for x509_crt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.