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>; }
Expand description

Trait used to bind/implement template engines.

Required Associated Types

Required Methods

Implementors