[][src]Trait mail_template::TemplateEngine

pub trait TemplateEngine: Sized {
    type Id: Debug;
    type LazyBodyTemplate: PathRebaseable + Debug + Send + Serialize + for<'a> Deserialize<'a>;
    fn load_body_template(
        &mut self,
        tmpl: Self::LazyBodyTemplate
    ) -> Result<BodyTemplate<Self>, Error>;
fn load_subject_template(
        &mut self,
        template_string: String
    ) -> Result<Self::Id, Error>; }

Trait used to bind/implement template engines.

Associated Types

Loading content...

Required methods

fn load_body_template(
    &mut self,
    tmpl: Self::LazyBodyTemplate
) -> Result<BodyTemplate<Self>, Error>

fn load_subject_template(
    &mut self,
    template_string: String
) -> Result<Self::Id, Error>

Loading content...

Implementors

impl TemplateEngine for Handlebars[src]

type Id = String

type LazyBodyTemplate = StandardLazyBodyTemplate

Loading content...