pub struct SmtpConfig {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub use_tls: bool,
pub use_ssl: bool,
pub timeout: u64,
pub hello_name: Option<String>,
}Expand description
SMTP configuration
Fields§
§host: StringSMTP server hostname
port: u16SMTP server port
username: Option<String>Username for authentication
password: Option<String>Password for authentication
use_tls: boolUse TLS/SSL
use_ssl: boolUse SSL (implicit TLS)
timeout: u64Connection timeout in seconds
hello_name: Option<String>Hello name/hostname
Trait Implementations§
Source§impl Clone for SmtpConfig
impl Clone for SmtpConfig
Source§impl Debug for SmtpConfig
impl Debug for SmtpConfig
Source§impl Default for SmtpConfig
impl Default for SmtpConfig
Source§impl EmailProviderConfig for SmtpConfig
impl EmailProviderConfig for SmtpConfig
Auto Trait Implementations§
impl Freeze for SmtpConfig
impl RefUnwindSafe for SmtpConfig
impl Send for SmtpConfig
impl Sync for SmtpConfig
impl Unpin for SmtpConfig
impl UnsafeUnpin for SmtpConfig
impl UnwindSafe for SmtpConfig
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