pub struct CertInfo {Show 14 fields
pub is_ca: bool,
pub common_name: String,
pub organization: Vec<String>,
pub key_usage: u32,
pub max_path_len: i32,
pub max_path_len_zero: bool,
pub permitted_dns_domains: Vec<String>,
pub permitted_dns_domains_critical: bool,
pub not_before: Option<SystemTime>,
pub not_after: Option<SystemTime>,
pub serial_number: Vec<u8>,
pub raw_subject: Vec<u8>,
pub subject_key_id: Vec<u8>,
pub dns_names: Vec<String>,
}Expand description
A minimal stand-in for the fields of *x509.Certificate these tests
inspect. Not a real X.509 parser or encoder — that’s Phase 4 work.
Fields§
§is_ca: bool§common_name: String§organization: Vec<String>§key_usage: u32§max_path_len: i32§max_path_len_zero: bool§permitted_dns_domains: Vec<String>§permitted_dns_domains_critical: bool§not_before: Option<SystemTime>§not_after: Option<SystemTime>§serial_number: Vec<u8>§raw_subject: Vec<u8>§subject_key_id: Vec<u8>§dns_names: Vec<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CertInfo
impl RefUnwindSafe for CertInfo
impl Send for CertInfo
impl Sync for CertInfo
impl Unpin for CertInfo
impl UnsafeUnpin for CertInfo
impl UnwindSafe for CertInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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