pub struct SendEmail {
pub from: Address,
pub to: Recipients,
pub subject: String,
pub html: Option<String>,
pub text: Option<String>,
pub cc: Option<Recipients>,
pub bcc: Option<Recipients>,
pub reply_to: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub attachments: Option<Vec<Attachment>>,
}Fields§
§from: Address§to: Recipients§subject: String§html: Option<String>§text: Option<String>§cc: Option<Recipients>§bcc: Option<Recipients>§reply_to: Option<String>§headers: Option<HashMap<String, String>>§attachments: Option<Vec<Attachment>>Implementations§
Source§impl SendEmail
impl SendEmail
pub fn new( from: impl Into<Address>, to: impl Into<Recipients>, subject: impl Into<String>, ) -> Self
pub fn html(self, html: impl Into<String>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn cc(self, cc: impl Into<Recipients>) -> Self
pub fn bcc(self, bcc: impl Into<Recipients>) -> Self
pub fn reply_to(self, reply_to: impl Into<String>) -> Self
pub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn attachment(self, attachment: Attachment) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendEmail
impl RefUnwindSafe for SendEmail
impl Send for SendEmail
impl Sync for SendEmail
impl Unpin for SendEmail
impl UnsafeUnpin for SendEmail
impl UnwindSafe for SendEmail
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