pub struct HumusProtoEngine {
pub tera: Tera,
pub template_config: Option<Table>,
}Available on crate features
tera-loader or axum-view only.Expand description
A constructable version of HumusEngine without the types attached.
Can be converted from and to to a HumusEngine when it is enabled
with the axum-view flag. Otherwise it acts as a container for
returning values from the TemplateEngineLoader.
Fields§
§tera: TeraAn instance of the tera templating engine.
template_config: Option<Table>If it was possible to read any extra configuration it will be stored here.
Trait Implementations§
Source§impl Clone for HumusProtoEngine
impl Clone for HumusProtoEngine
Source§fn clone(&self) -> HumusProtoEngine
fn clone(&self) -> HumusProtoEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HumusProtoEngine
impl Debug for HumusProtoEngine
Source§impl<V, S, F> From<HumusEngine<V, S, F>> for HumusProtoEngine
Available on crate feature axum-view only.
impl<V, S, F> From<HumusEngine<V, S, F>> for HumusProtoEngine
Available on crate feature
axum-view only.Source§fn from(e: HumusEngine<V, S, F>) -> Self
fn from(e: HumusEngine<V, S, F>) -> Self
Converts to this type from the input type.
Source§impl<V, S, F> From<HumusProtoEngine> for HumusEngine<V, S, F>
Available on crate feature axum-view only.
impl<V, S, F> From<HumusProtoEngine> for HumusEngine<V, S, F>
Available on crate feature
axum-view only.Source§fn from(e: HumusProtoEngine) -> Self
fn from(e: HumusProtoEngine) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HumusProtoEngine
impl !RefUnwindSafe for HumusProtoEngine
impl Send for HumusProtoEngine
impl Sync for HumusProtoEngine
impl Unpin for HumusProtoEngine
impl !UnwindSafe for HumusProtoEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more