pub struct DebugInfo {
pub template_name: String,
pub source: String,
pub variables_used: HashSet<String>,
pub functions_used: HashSet<String>,
pub blocks_defined: HashSet<String>,
pub extends_templates: Vec<String>,
pub includes_templates: Vec<String>,
pub syntax_errors: Vec<String>,
pub render_time_ms: Option<u64>,
pub memory_usage: Option<usize>,
}Expand description
Template debugging information
Fields§
§template_name: StringTemplate name
source: StringTemplate source content
variables_used: HashSet<String>Variables used in template
functions_used: HashSet<String>Functions called in template
blocks_defined: HashSet<String>Blocks defined in template
extends_templates: Vec<String>Templates extended (for inheritance)
includes_templates: Vec<String>Templates included
syntax_errors: Vec<String>Syntax errors found
render_time_ms: Option<u64>Performance metrics
memory_usage: Option<usize>Memory usage estimate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugInfo
impl RefUnwindSafe for DebugInfo
impl Send for DebugInfo
impl Sync for DebugInfo
impl Unpin for DebugInfo
impl UnwindSafe for DebugInfo
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