pub struct ExpiryNotifyConfig {
pub lead_days: u64,
pub interval_days: u64,
pub max_entries: usize,
}Expand description
[notify.expiry] — the periodic digest of certificates approaching expiry
(see crate::notify::expiry).
One message per profile per interval_days, listing what lapses inside
lead_days, and not one message per certificate: a renewal is a new
order, so the certificate it replaced still expires on schedule and a
per-certificate reminder would tell an operator about every certificate the
CA has ever issued. The digest carries the superseded ones annotated
instead, so the un-renewed rows are what stands out.
Fields§
§lead_days: u64How far ahead to look, in days. 0 (the default) is off — the job
is never registered at all, the shape audit.retention_days and
jobs.retention_days already use for “do not schedule this sweep”.
interval_days: u64How often the digest is sent, in days. There is deliberately no per-certificate rate limit beside it: the digest is the rate limit, which is what the per-certificate shape needed a stored “last reminded” timestamp for.
max_entries: usizeThe most certificates one message lists. The count of matches is carried whole regardless, so a truncated digest still says how many it did not name — a per-certificate message was self-limiting and this is not, and ten thousand expiring at once is an unreadable mail and a webhook body a provider refuses.
Trait Implementations§
Source§impl Clone for ExpiryNotifyConfig
impl Clone for ExpiryNotifyConfig
Source§fn clone(&self) -> ExpiryNotifyConfig
fn clone(&self) -> ExpiryNotifyConfig
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 ExpiryNotifyConfig
impl Debug for ExpiryNotifyConfig
Source§impl Default for ExpiryNotifyConfig
impl Default for ExpiryNotifyConfig
Source§impl<'de> Deserialize<'de> for ExpiryNotifyConfigwhere
ExpiryNotifyConfig: Default,
impl<'de> Deserialize<'de> for ExpiryNotifyConfigwhere
ExpiryNotifyConfig: Default,
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 ExpiryNotifyConfig
impl RefUnwindSafe for ExpiryNotifyConfig
impl Send for ExpiryNotifyConfig
impl Sync for ExpiryNotifyConfig
impl Unpin for ExpiryNotifyConfig
impl UnsafeUnpin for ExpiryNotifyConfig
impl UnwindSafe for ExpiryNotifyConfig
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