[−][src]Trait mail_template::TemplateEngine
Trait used to bind/implement template engines.
Associated Types
type Id: Debug
type LazyBodyTemplate: PathRebaseable + Debug + Send + Serialize + for<'a> Deserialize<'a>
Required methods
fn load_body_template(
&mut self,
tmpl: Self::LazyBodyTemplate
) -> Result<BodyTemplate<Self>, Error>
&mut self,
tmpl: Self::LazyBodyTemplate
) -> Result<BodyTemplate<Self>, Error>
fn load_subject_template(
&mut self,
template_string: String
) -> Result<Self::Id, Error>
&mut self,
template_string: String
) -> Result<Self::Id, Error>
Implementors
impl TemplateEngine for Handlebars
[src]
type Id = String
type LazyBodyTemplate = StandardLazyBodyTemplate
fn load_body_template(
&mut self,
tmpl: Self::LazyBodyTemplate
) -> Result<BodyTemplate<Self>, Error>
[src]
&mut self,
tmpl: Self::LazyBodyTemplate
) -> Result<BodyTemplate<Self>, Error>
fn load_subject_template(
&mut self,
template_string: String
) -> Result<Self::Id, Error>
[src]
&mut self,
template_string: String
) -> Result<Self::Id, Error>