pub struct EmailTransportConfig {
pub host: String,
pub port: u16,
pub username: String,
pub password: String,
pub from: String,
pub starttls: bool,
}Expand description
Non-secret SMTP transport config. The password is resolved separately via
[crate::smtp_auth] so the secret surface stays isolated.
Fields§
§host: String§port: u16§username: String§password: String§from: StringThe From mailbox, e.g. "Ryu <alerts@your-node.example>".
starttls: boolSTARTTLS on a submission port (587) vs implicit TLS (465).
Trait Implementations§
Source§impl Clone for EmailTransportConfig
impl Clone for EmailTransportConfig
Source§fn clone(&self) -> EmailTransportConfig
fn clone(&self) -> EmailTransportConfig
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 EmailTransportConfig
impl RefUnwindSafe for EmailTransportConfig
impl Send for EmailTransportConfig
impl Sync for EmailTransportConfig
impl Unpin for EmailTransportConfig
impl UnsafeUnpin for EmailTransportConfig
impl UnwindSafe for EmailTransportConfig
Blanket Implementations§
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