pub struct BackendTemplateEngine { /* private fields */ }Expand description
Template engine for backend scaffolding
Implementations§
Source§impl BackendTemplateEngine
impl BackendTemplateEngine
Sourcepub fn new(context: BackendTemplateContext) -> Result<Self>
pub fn new(context: BackendTemplateContext) -> Result<Self>
Create a new backend template engine with the given context
Sourcepub fn has_template(&self, template_name: &str) -> bool
pub fn has_template(&self, template_name: &str) -> bool
Check if a template exists
Auto Trait Implementations§
impl Freeze for BackendTemplateEngine
impl !RefUnwindSafe for BackendTemplateEngine
impl Send for BackendTemplateEngine
impl Sync for BackendTemplateEngine
impl Unpin for BackendTemplateEngine
impl !UnwindSafe for BackendTemplateEngine
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