pub struct EmailTemplate {
pub subject: String,
pub body: String,
pub layout: Option<String>,
}Expand description
A parsed email template with subject, body, and optional layout.
Fields§
§subject: StringSubject line with {{var}} placeholders (not yet substituted).
body: StringMarkdown body with {{var}} placeholders (not yet substituted).
layout: Option<String>Name of the layout to wrap the body in, or None to use "default".
Implementations§
Trait Implementations§
Source§impl Clone for EmailTemplate
impl Clone for EmailTemplate
Source§fn clone(&self) -> EmailTemplate
fn clone(&self) -> EmailTemplate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmailTemplate
impl RefUnwindSafe for EmailTemplate
impl Send for EmailTemplate
impl Sync for EmailTemplate
impl Unpin for EmailTemplate
impl UnsafeUnpin for EmailTemplate
impl UnwindSafe for EmailTemplate
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