[−][src]Struct mail_template::handlebars::Handlebars
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
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>
impl<D> TemplateEngineCanHandleData<D> for Handlebars where
D: Serialize,
[src]
D: Serialize,
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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> HeaderTryFrom for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,