pub struct CertInfo {
pub domain: String,
pub not_before: Option<String>,
pub not_after: Option<String>,
pub fingerprint: Option<String>,
pub needs_renewal: bool,
}Expand description
Information about a loaded TLS certificate.
Fields§
§domain: StringDomain the certificate covers.
not_before: Option<String>Certificate validity start (ISO-8601), if metadata is available.
not_after: Option<String>Certificate expiry (ISO-8601), if metadata is available.
fingerprint: Option<String>SHA-256 fingerprint, if metadata is available.
needs_renewal: boolWhether the certificate needs renewal (within 30 days of expiry).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CertInfo
impl<'de> Deserialize<'de> for CertInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§
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