Struct lib::common::handlebars::HandlebarsRenderer
source · [−]pub struct HandlebarsRenderer { /* private fields */ }Implementations
sourceimpl HandlebarsRenderer
impl HandlebarsRenderer
pub fn new() -> HandlebarsRenderer
sourceimpl HandlebarsRenderer
impl HandlebarsRenderer
pub fn render(
&self,
template: &str,
json_serializible: impl Serialize
) -> ResultAnyError<String>
pub fn render_from_template_path(
&self,
template_path: &str,
json_serializible: impl Serialize
) -> ResultAnyError<String>
Auto Trait Implementations
impl !RefUnwindSafe for HandlebarsRenderer
impl Send for HandlebarsRenderer
impl Sync for HandlebarsRenderer
impl Unpin for HandlebarsRenderer
impl !UnwindSafe for HandlebarsRenderer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more