pub struct Mail<'a> {
pub host: &'a str,
pub port: u16,
pub tls: SmtpTls,
pub username: Option<&'a str>,
pub password: Option<&'a str>,
pub from: &'a str,
pub to: &'a [String],
pub subject: &'a str,
pub body: &'a str,
pub date: u64,
pub message_id: &'a str,
}Expand description
One message to send.
Fields§
§host: &'a str§port: u16§tls: SmtpTls§username: Option<&'a str>§password: Option<&'a str>§from: &'a str§to: &'a [String]§subject: &'a str§body: &'a str§date: u64Unix seconds, for the Date header.
message_id: &'a strAuto Trait Implementations§
impl<'a> Freeze for Mail<'a>
impl<'a> RefUnwindSafe for Mail<'a>
impl<'a> Send for Mail<'a>
impl<'a> Sync for Mail<'a>
impl<'a> Unpin for Mail<'a>
impl<'a> UnsafeUnpin for Mail<'a>
impl<'a> UnwindSafe for Mail<'a>
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