pub struct CertificatesExpiringData {
pub profile: String,
pub generated_at: i64,
pub lead_days: u64,
pub total: i64,
pub certificates: Vec<ExpiringCertificate>,
}Expand description
Payload of NotifyEvent::CertificatesExpiring: the periodic digest of
what is about to lapse on one profile.
The one event carrying a list, and the only one with no request, no
account and no single certificate behind it — it is generated by
crate::notify::expiry, on a schedule, about however many certificates
happen to qualify.
total is the number that matched, which certificates may be shorter
than: notify.expiry.max_entries bounds the list, so a template renders
“and total - certificates|length more”. The count is honest even when the
list is truncated, which is the whole reason it is a separate member.
Fields§
§profile: String§generated_at: i64When the sweep ran, epoch seconds — the point days_remaining counts
from, so a message read days later is still self-describing.
lead_days: u64The window this digest covers, notify.expiry.lead_days.
total: i64How many certificates matched, before max_entries truncated the list.
certificates: Vec<ExpiringCertificate>Trait Implementations§
Source§impl Clone for CertificatesExpiringData
impl Clone for CertificatesExpiringData
Source§fn clone(&self) -> CertificatesExpiringData
fn clone(&self) -> CertificatesExpiringData
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 CertificatesExpiringData
impl Debug for CertificatesExpiringData
Source§impl<'de> Deserialize<'de> for CertificatesExpiringData
impl<'de> Deserialize<'de> for CertificatesExpiringData
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 CertificatesExpiringData
impl RefUnwindSafe for CertificatesExpiringData
impl Send for CertificatesExpiringData
impl Sync for CertificatesExpiringData
impl Unpin for CertificatesExpiringData
impl UnsafeUnpin for CertificatesExpiringData
impl UnwindSafe for CertificatesExpiringData
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