Struct lib_humus::HumusProtoEngine
source · pub struct HumusProtoEngine {
pub tera: Tera,
pub template_config: Option<Table>,
}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<V, S, F> From<HumusEngine<V, S, F>> for HumusProtoEngine
impl<V, S, F> From<HumusEngine<V, S, F>> for HumusProtoEngine
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>
impl<V, S, F> From<HumusProtoEngine> for HumusEngine<V, S, F>
source§fn from(e: HumusProtoEngine) -> Self
fn from(e: HumusProtoEngine) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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