pub struct TemplateValidation {
pub warnings: Vec<TemplateWarning>,
pub uses_branch: bool,
}Expand description
Result of template validation
Fields§
§warnings: Vec<TemplateWarning>Warnings collected during validation
uses_branch: boolWhether the template uses {{branch}} variable
Implementations§
Source§impl TemplateValidation
impl TemplateValidation
Sourcepub fn has_unknown_variables(&self) -> bool
pub fn has_unknown_variables(&self) -> bool
Check if there are any unknown variable warnings
Sourcepub fn unknown_variable_names(&self) -> Vec<String>
pub fn unknown_variable_names(&self) -> Vec<String>
Get list of unknown variable names (deduplicated)
Trait Implementations§
Source§impl Clone for TemplateValidation
impl Clone for TemplateValidation
Source§fn clone(&self) -> TemplateValidation
fn clone(&self) -> TemplateValidation
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 TemplateValidation
impl Debug for TemplateValidation
Source§impl Default for TemplateValidation
impl Default for TemplateValidation
Source§fn default() -> TemplateValidation
fn default() -> TemplateValidation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemplateValidation
impl RefUnwindSafe for TemplateValidation
impl Send for TemplateValidation
impl Sync for TemplateValidation
impl Unpin for TemplateValidation
impl UnsafeUnpin for TemplateValidation
impl UnwindSafe for TemplateValidation
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