pub struct SmtpConfig {
pub host: String,
pub hostname: String,
pub port: u16,
pub auth_required: bool,
pub tls: TlsConfig,
pub auth: AuthConfig,
pub handlers: HashMap<String, HandlerConfig>,
pub routing: RoutingConfig,
}Expand description
SMTP server configuration.
Fields§
§host: String§hostname: String§port: u16§auth_required: bool§tls: TlsConfig§auth: AuthConfig§handlers: HashMap<String, HandlerConfig>§routing: RoutingConfigTrait Implementations§
Source§impl Debug for SmtpConfig
impl Debug for SmtpConfig
Source§impl<'de> Deserialize<'de> for SmtpConfig
impl<'de> Deserialize<'de> for SmtpConfig
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 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