[][src]Struct mail_template::handlebars::Handlebars

pub struct Handlebars { /* fields omitted */ }

Methods

impl Handlebars[src]

pub fn new() -> Self[src]

pub fn inner(&self) -> &Handlebars[src]

pub fn inner_mut(&mut self) -> &mut Handlebars[src]

Provides mutable access to the underling handlebars instance.

This can be used to e.g. add partials (in the future the template file will have a custom config section but currently it doesn't).

Trait Implementations

impl TemplateEngine for Handlebars[src]

type Id = String

type LazyBodyTemplate = StandardLazyBodyTemplate

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.

Auto Trait Implementations

impl Send for Handlebars

impl Sync for Handlebars

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> HeaderTryFrom for T[src]

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> Erased for T