Struct torrust_index_backend::config::Mail
source · pub struct Mail {
pub email_verification_enabled: bool,
pub from: String,
pub reply_to: String,
pub username: String,
pub password: String,
pub server: String,
pub port: u16,
}
Expand description
SMTP configuration.
Fields§
§email_verification_enabled: bool
Whether or not to enable email verification on signup.
from: String
The email address to send emails from.
reply_to: String
The email address to reply to.
username: String
The username to use for SMTP authentication.
password: String
The password to use for SMTP authentication.
server: String
The SMTP server to use.
port: u16
The SMTP port to use.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mail
impl<'de> Deserialize<'de> for Mail
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 RefUnwindSafe for Mail
impl Send for Mail
impl Sync for Mail
impl Unpin for Mail
impl UnwindSafe for Mail
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