pub struct SmtpSettings {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub encryption: SmtpEncryption,
pub from_address: String,
pub default_subject: Option<String>,
pub timeout_secs: u64,
}Expand description
SMTP client configuration for the email channel.
Fields§
§host: StringSMTP relay host.
port: u16SMTP relay port.
username: Option<String>Optional SMTP auth username.
password: Option<String>Optional SMTP auth password.
encryption: SmtpEncryptionTransport encryption mode.
from_address: StringDefault From: mailbox (RFC 5322). Required when email is enabled;
subscription headers may override on a per-message basis.
default_subject: Option<String>Optional default subject template. If absent, a built-in template is used.
timeout_secs: u64Per-send timeout in seconds.
Trait Implementations§
Source§impl Clone for SmtpSettings
impl Clone for SmtpSettings
Source§fn clone(&self) -> SmtpSettings
fn clone(&self) -> SmtpSettings
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 moreAuto Trait Implementations§
impl Freeze for SmtpSettings
impl RefUnwindSafe for SmtpSettings
impl Send for SmtpSettings
impl Sync for SmtpSettings
impl Unpin for SmtpSettings
impl UnsafeUnpin for SmtpSettings
impl UnwindSafe for SmtpSettings
Blanket Implementations§
impl<T> Allocation for T
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,
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