pub struct SMTP {
pub enabled: bool,
pub username: String,
pub password: String,
pub smtp_host: String,
pub smtp_port: u16,
pub from: String,
pub to: Vec<String>,
pub cc: Option<Vec<String>>,
}Fields§
§enabled: bool§username: String§password: String§smtp_host: String§smtp_port: u16§from: String§to: Vec<String>§cc: Option<Vec<String>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SMTP
impl<'de> Deserialize<'de> for SMTP
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 SMTP
impl RefUnwindSafe for SMTP
impl Send for SMTP
impl Sync for SMTP
impl Unpin for SMTP
impl UnwindSafe for SMTP
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