pub enum SendMail {
Smtp(SmtpServerConf),
ShellCommand(String),
}
Expand description
How to send e-mail.
Variants§
Smtp(SmtpServerConf)
A melib
configuration for talking to an SMTP server.
ShellCommand(String)
A plain shell command passed to sh -c
with the e-mail passed in the
stdin.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SendMail
impl<'de> Deserialize<'de> for SendMail
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 SendMail
impl Send for SendMail
impl Sync for SendMail
impl Unpin for SendMail
impl UnwindSafe for SendMail
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