[][src]Trait mail_template::TemplateEngineCanHandleData

pub trait TemplateEngineCanHandleData<D>: TemplateEngine {
    fn render<'r, 'a>(
        &'r self,
        id: &'r Self::Id,
        data: &'r D,
        additional_cids: AdditionalCIds<'r>
    ) -> Result<String, Error>; }

Additional trait a template engine needs to implement for the types it can process as input.

This could for example be implemented in a wild card impl for the template engine for any data D which implements Serialize.

Required methods

fn render<'r, 'a>(
    &'r self,
    id: &'r Self::Id,
    data: &'r D,
    additional_cids: AdditionalCIds<'r>
) -> Result<String, Error>

Loading content...

Implementors

impl<D> TemplateEngineCanHandleData<D> for Handlebars where
    D: Serialize
[src]

Additional trait a template engine needs to implement for the types it can process as input.

This could for example be implemented in a wild card impl for the template engine for any data D which implements Serialize.

Loading content...