pub struct DebugTemplateValidator { /* private fields */ }Expand description
Template validation tools for development workflows
Implementations§
Source§impl DebugTemplateValidator
impl DebugTemplateValidator
Sourcepub fn with_validator<F>(self, f: F) -> Self
pub fn with_validator<F>(self, f: F) -> Self
Configure base validator
Sourcepub fn with_linter<F>(self, f: F) -> Self
pub fn with_linter<F>(self, f: F) -> Self
Configure linter
Sourcepub fn with_debugger<F>(self, f: F) -> Self
pub fn with_debugger<F>(self, f: F) -> Self
Configure debugger
Sourcepub fn validate_template(
&self,
template: &str,
context: &TemplateContext,
name: &str,
) -> Result<ValidationReport>
pub fn validate_template( &self, template: &str, context: &TemplateContext, name: &str, ) -> Result<ValidationReport>
Validate template with comprehensive checking
§Arguments
template- Template contentcontext- Template contextname- Template name
Sourcepub fn validate_file<P: AsRef<Path>>(
&self,
file_path: P,
context: &TemplateContext,
) -> Result<ValidationReport>
pub fn validate_file<P: AsRef<Path>>( &self, file_path: P, context: &TemplateContext, ) -> Result<ValidationReport>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugTemplateValidator
impl !RefUnwindSafe for DebugTemplateValidator
impl !Send for DebugTemplateValidator
impl !Sync for DebugTemplateValidator
impl Unpin for DebugTemplateValidator
impl !UnwindSafe for DebugTemplateValidator
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