pub struct SmtpServerConfig {
pub host: String,
pub port: u16,
pub tls_port: Option<u16>,
pub max_message_size: String,
pub require_auth: bool,
pub enable_starttls: bool,
pub rate_limit: Option<RateLimitConfig>,
}Expand description
SMTP server configuration
Fields§
§host: String§port: u16§tls_port: Option<u16>§max_message_size: String§require_auth: bool§enable_starttls: bool§rate_limit: Option<RateLimitConfig>Implementations§
Source§impl SmtpServerConfig
impl SmtpServerConfig
Sourcepub fn max_message_size_bytes(&self) -> Result<usize>
pub fn max_message_size_bytes(&self) -> Result<usize>
Parse max message size to bytes
Trait Implementations§
Source§impl Clone for SmtpServerConfig
impl Clone for SmtpServerConfig
Source§fn clone(&self) -> SmtpServerConfig
fn clone(&self) -> SmtpServerConfig
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 SmtpServerConfig
impl Debug for SmtpServerConfig
Source§impl<'de> Deserialize<'de> for SmtpServerConfig
impl<'de> Deserialize<'de> for SmtpServerConfig
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 SmtpServerConfig
impl RefUnwindSafe for SmtpServerConfig
impl Send for SmtpServerConfig
impl Sync for SmtpServerConfig
impl Unpin for SmtpServerConfig
impl UnsafeUnpin for SmtpServerConfig
impl UnwindSafe for SmtpServerConfig
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