pub struct SmtpConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub hostname: String,
pub fixtures_dir: Option<PathBuf>,
pub timeout_secs: u64,
pub max_connections: usize,
pub enable_mailbox: bool,
pub max_mailbox_messages: usize,
pub enable_starttls: bool,
pub tls_cert_path: Option<PathBuf>,
pub tls_key_path: Option<PathBuf>,
}
Expand description
SMTP server configuration
Fields§
§enabled: bool
Enable SMTP server
port: u16
Server port
host: String
Host address
hostname: String
Server hostname for SMTP greeting
fixtures_dir: Option<PathBuf>
Directory containing fixture files
timeout_secs: u64
Connection timeout in seconds
max_connections: usize
Maximum connections
enable_mailbox: bool
Enable mailbox storage
max_mailbox_messages: usize
Maximum mailbox size
enable_starttls: bool
Enable STARTTLS support
tls_cert_path: Option<PathBuf>
Path to TLS certificate file
tls_key_path: Option<PathBuf>
Path to TLS private key file
Trait Implementations§
Source§impl Clone for SmtpConfig
impl Clone for SmtpConfig
Source§fn clone(&self) -> SmtpConfig
fn clone(&self) -> SmtpConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SmtpConfig
impl Debug for SmtpConfig
Source§impl Default for SmtpConfig
impl Default for SmtpConfig
Source§impl<'de> Deserialize<'de> for SmtpConfigwhere
SmtpConfig: Default,
impl<'de> Deserialize<'de> for SmtpConfigwhere
SmtpConfig: 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 SmtpConfig
impl RefUnwindSafe for SmtpConfig
impl Send for SmtpConfig
impl Sync for SmtpConfig
impl Unpin 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