pub struct ValidationSummary {
pub total_files: usize,
pub files_with_errors: usize,
pub files_with_warnings: usize,
pub total_issues: usize,
pub total_critical: usize,
pub total_errors: usize,
pub total_warnings: usize,
pub total_info: usize,
pub total_validation_time_ms: u64,
}Expand description
Summary statistics for validation results.
Fields§
§total_files: usizeTotal number of files validated
files_with_errors: usizeNumber of files with errors
files_with_warnings: usizeNumber of files with warnings (but no errors)
total_issues: usizeTotal number of issues found
total_critical: usizeTotal critical issues
total_errors: usizeTotal errors
total_warnings: usizeTotal warnings
total_info: usizeTotal info messages
total_validation_time_ms: u64Total validation time in milliseconds
Implementations§
Source§impl ValidationSummary
impl ValidationSummary
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if any critical issues or errors were found.
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if any issues were found.
Sourcepub fn average_validation_time_ms(&self) -> f64
pub fn average_validation_time_ms(&self) -> f64
Get the average validation time per file.
Trait Implementations§
Source§impl Clone for ValidationSummary
impl Clone for ValidationSummary
Source§fn clone(&self) -> ValidationSummary
fn clone(&self) -> ValidationSummary
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 moreAuto Trait Implementations§
impl Freeze for ValidationSummary
impl RefUnwindSafe for ValidationSummary
impl Send for ValidationSummary
impl Sync for ValidationSummary
impl Unpin for ValidationSummary
impl UnsafeUnpin for ValidationSummary
impl UnwindSafe for ValidationSummary
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