pub struct CertificateInfo {
pub subject: String,
pub issuer: String,
pub expiry: String,
pub key_size: u32,
}Expand description
Parsed SSL/TLS certificate information.
Retrieved via Request::certificate_info
after a successful HTTPS response.
Fields§
§subject: StringSubject name (e.g. “CN=example.com”).
issuer: StringIssuer name (e.g. “CN=Let’s Encrypt Authority X3”).
expiry: StringCertificate expiration date as a formatted string.
key_size: u32The key size in bits (e.g. 2048, 4096).
Trait Implementations§
Source§impl Clone for CertificateInfo
impl Clone for CertificateInfo
Source§fn clone(&self) -> CertificateInfo
fn clone(&self) -> CertificateInfo
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 moreAuto Trait Implementations§
impl Freeze for CertificateInfo
impl RefUnwindSafe for CertificateInfo
impl Send for CertificateInfo
impl Sync for CertificateInfo
impl Unpin for CertificateInfo
impl UnwindSafe for CertificateInfo
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