pub struct EmailNotifyConfig {
pub smtp_host: String,
pub smtp_port: u16,
pub smtp_username: String,
pub smtp_password: String,
pub smtp_security: String,
pub from: String,
pub to: Vec<String>,
pub events: Vec<String>,
pub timeout_ms: u64,
}Expand description
Configuration for the email notify backend (SMTP via lettre).
Fields§
§smtp_host: String§smtp_port: u16§smtp_username: String§smtp_password: String§smtp_security: String"starttls" (default) | "tls" | "none".
from: String§to: Vec<String>§events: Vec<String>Which lifecycle events this backend reacts to. Defaults to all of
them, listed explicitly rather than relying on “empty means all”: every
other list field in this codebase treats empty as off, so reusing
that convention here would silently mean “no events” the moment an
operator writes events = [] expecting “all”.
timeout_ms: u64Trait Implementations§
Source§impl Clone for EmailNotifyConfig
impl Clone for EmailNotifyConfig
Source§fn clone(&self) -> EmailNotifyConfig
fn clone(&self) -> EmailNotifyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailNotifyConfig
impl Debug for EmailNotifyConfig
Source§impl Default for EmailNotifyConfig
impl Default for EmailNotifyConfig
Source§impl<'de> Deserialize<'de> for EmailNotifyConfigwhere
EmailNotifyConfig: Default,
impl<'de> Deserialize<'de> for EmailNotifyConfigwhere
EmailNotifyConfig: 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmailNotifyConfig
impl RefUnwindSafe for EmailNotifyConfig
impl Send for EmailNotifyConfig
impl Sync for EmailNotifyConfig
impl Unpin for EmailNotifyConfig
impl UnsafeUnpin for EmailNotifyConfig
impl UnwindSafe for EmailNotifyConfig
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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