pub struct ExpiringCertificate {
pub order_id: String,
pub account_id: String,
pub cert_serial: String,
pub identifiers: Vec<String>,
pub not_after: i64,
pub days_remaining: i64,
pub superseded_by: Option<SupersededBy>,
}Expand description
One certificate in a NotifyEvent::CertificatesExpiring digest.
days_remaining is derived here rather than left to a template: it is what
the message is actually about, every backend wants it, and computing it in
Jinja from two epoch seconds is arithmetic no template should carry.
superseded_by is the member that makes the digest readable — an operator
scans for the entries where it is absent. It is None both when nothing
has replaced this certificate and when this server cannot be sure
something has: the annotation is deliberately conservative, since a wrong
“already renewed” is an operator ignoring a certificate that really is
about to lapse, where a missing one is only noise.
Fields§
§order_id: String§account_id: String§cert_serial: String§identifiers: Vec<String>§not_after: i64The leaf’s own notAfter, epoch seconds.
days_remaining: i64Whole days from the sweep to not_after, floored, never negative.
superseded_by: Option<SupersededBy>Trait Implementations§
Source§impl Clone for ExpiringCertificate
impl Clone for ExpiringCertificate
Source§fn clone(&self) -> ExpiringCertificate
fn clone(&self) -> ExpiringCertificate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExpiringCertificate
impl Debug for ExpiringCertificate
Source§impl<'de> Deserialize<'de> for ExpiringCertificate
impl<'de> Deserialize<'de> for ExpiringCertificate
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>,
Auto Trait Implementations§
impl Freeze for ExpiringCertificate
impl RefUnwindSafe for ExpiringCertificate
impl Send for ExpiringCertificate
impl Sync for ExpiringCertificate
impl Unpin for ExpiringCertificate
impl UnsafeUnpin for ExpiringCertificate
impl UnwindSafe for ExpiringCertificate
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more