pub struct NotifyConfig {
pub enabled: Vec<String>,
pub email: EmailNotifyConfig,
pub expiry: ExpiryNotifyConfig,
pub webhook_enabled: Vec<String>,
pub webhook: BTreeMap<String, WebhookNotifyConfig>,
pub custom_enabled: Vec<String>,
pub custom: BTreeMap<String, CustomNotifyConfig>,
pub template_dir: String,
}Expand description
Notification-subsystem configuration: which backends are active, and each
backend’s own settings. See crate::notify.
Fields§
§enabled: Vec<String>Which backends are active: "email", "webhook", "custom".
Empty (default) means no notifications are sent at all.
email: EmailNotifyConfig§expiry: ExpiryNotifyConfigThe periodic expiry digest — off until lead_days is non-zero.
webhook_enabled: Vec<String>Which of webhook’s entries to POST to, and in what order, when
webhook is listed in enabled — the same shape as custom_enabled
below, and resolved by the same resolve_named_entries.
webhook: BTreeMap<String, WebhookNotifyConfig>Named HTTP webhook targets, selected and ordered by webhook_enabled.
Each name must match ^[a-z0-9-]+$, same as custom’s entries and for
the same reason.
custom_enabled: Vec<String>Which of custom’s entries to run, and in what order, when custom
is listed in enabled — the same shape as webhook_enabled.
custom: BTreeMap<String, CustomNotifyConfig>Named external script/webhook configs, selected and ordered by
custom_enabled. Each name must match ^[a-z0-9-]+$, same as
filter.custom’s entries and for the same reason (see
valid_config_key_name).
template_dir: StringFilesystem directory to look for template overrides in, checked per-template-file before falling back to the compiled-in defaults. Empty (default) means compiled-in defaults only.
Trait Implementations§
Source§impl Clone for NotifyConfig
impl Clone for NotifyConfig
Source§fn clone(&self) -> NotifyConfig
fn clone(&self) -> NotifyConfig
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 NotifyConfig
impl Debug for NotifyConfig
Source§impl Default for NotifyConfig
impl Default for NotifyConfig
Source§fn default() -> NotifyConfig
fn default() -> NotifyConfig
Source§impl<'de> Deserialize<'de> for NotifyConfigwhere
NotifyConfig: Default,
impl<'de> Deserialize<'de> for NotifyConfigwhere
NotifyConfig: 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 NotifyConfig
impl RefUnwindSafe for NotifyConfig
impl Send for NotifyConfig
impl Sync for NotifyConfig
impl Unpin for NotifyConfig
impl UnsafeUnpin for NotifyConfig
impl UnwindSafe for NotifyConfig
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