pub struct TemplatesConfig {
pub glob: String,
pub auto_reload: bool,
pub strict_mode: bool,
}Expand description
Configuration for the template engine
Fields§
§glob: StringGlob pattern for template files
auto_reload: boolWhether to auto-reload templates on change (development mode)
strict_mode: boolWhether to fail on undefined variables
Implementations§
Source§impl TemplatesConfig
impl TemplatesConfig
Sourcepub fn auto_reload(self, enabled: bool) -> Self
pub fn auto_reload(self, enabled: bool) -> Self
Set auto-reload behavior
Sourcepub fn strict_mode(self, enabled: bool) -> Self
pub fn strict_mode(self, enabled: bool) -> Self
Set strict mode (fail on undefined variables)
Trait Implementations§
Source§impl Clone for TemplatesConfig
impl Clone for TemplatesConfig
Source§fn clone(&self) -> TemplatesConfig
fn clone(&self) -> TemplatesConfig
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 TemplatesConfig
impl Debug for TemplatesConfig
Auto Trait Implementations§
impl Freeze for TemplatesConfig
impl RefUnwindSafe for TemplatesConfig
impl Send for TemplatesConfig
impl Sync for TemplatesConfig
impl Unpin for TemplatesConfig
impl UnwindSafe for TemplatesConfig
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