pub struct TemplatedEmail<M>where
M: Serialize,{Show 15 fields
pub template: TemplateToUse,
pub template_model: M,
pub inline_css: Option<bool>,
pub from: String,
pub to: String,
pub cc: Option<String>,
pub bcc: Option<String>,
pub tag: Option<String>,
pub reply_to: Option<String>,
pub headers: Option<Vec<EmailHeader>>,
pub track_opens: Option<bool>,
pub track_links: Option<TrackLinks>,
pub metadata: Option<HashMap<String, String>>,
pub attachments: Option<Vec<Attachment>>,
pub message_stream: Option<String>,
}
Fields§
§template: TemplateToUse
§template_model: M
§inline_css: Option<bool>
§from: String
§to: String
§cc: Option<String>
§bcc: Option<String>
§tag: Option<String>
§reply_to: Option<String>
§headers: Option<Vec<EmailHeader>>
§track_opens: Option<bool>
§track_links: Option<TrackLinks>
§metadata: Option<HashMap<String, String>>
§attachments: Option<Vec<Attachment>>
§message_stream: Option<String>
Implementations§
Source§impl<M> TemplatedEmail<M>where
M: Serialize,
impl<M> TemplatedEmail<M>where
M: Serialize,
pub fn new( from: String, to: String, template: TemplateToUse, model: M, ) -> TemplatedEmail<M>
Trait Implementations§
Source§impl<M> Debug for TemplatedEmail<M>
impl<M> Debug for TemplatedEmail<M>
Auto Trait Implementations§
impl<M> Freeze for TemplatedEmail<M>where
M: Freeze,
impl<M> RefUnwindSafe for TemplatedEmail<M>where
M: RefUnwindSafe,
impl<M> Send for TemplatedEmail<M>where
M: Send,
impl<M> Sync for TemplatedEmail<M>where
M: Sync,
impl<M> Unpin for TemplatedEmail<M>where
M: Unpin,
impl<M> UnwindSafe for TemplatedEmail<M>where
M: UnwindSafe,
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