pub struct EmailTemplate {
pub name: String,
pub subject: String,
pub html_template: String,
pub text_template: Option<String>,
pub description: Option<String>,
pub variables: Option<HashMap<String, String>>,
}Expand description
Email template
Fields§
§name: StringTemplate name
subject: StringTemplate subject (can include template variables)
html_template: StringHTML template content
text_template: Option<String>Plain text template content
description: Option<String>Template description
variables: Option<HashMap<String, String>>Template variables schema
Trait Implementations§
Source§impl Clone for EmailTemplate
impl Clone for EmailTemplate
Source§impl Debug for EmailTemplate
impl Debug for EmailTemplate
Source§impl<'de> Deserialize<'de> for EmailTemplate
impl<'de> Deserialize<'de> for EmailTemplate
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 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