pub struct ValidationStats {
pub total_files: usize,
pub files_with_errors: usize,
pub files_with_warnings: usize,
pub total_diagnostics: usize,
pub total_errors: usize,
pub total_warnings: usize,
pub total_info: usize,
}Expand description
Statistics about validation across all files.
Fields§
§total_files: usizeTotal number of files with diagnostics
files_with_errors: usizeNumber of files with errors
files_with_warnings: usizeNumber of files with warnings (but no errors)
total_diagnostics: usizeTotal number of diagnostics
total_errors: usizeTotal number of errors
total_warnings: usizeTotal number of warnings
total_info: usizeTotal number of info messages
Implementations§
Source§impl ValidationStats
impl ValidationStats
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors.
Sourcepub fn has_diagnostics(&self) -> bool
pub fn has_diagnostics(&self) -> bool
Check if there are any diagnostics.
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Get the percentage of files with issues.
Trait Implementations§
Source§impl Clone for ValidationStats
impl Clone for ValidationStats
Source§fn clone(&self) -> ValidationStats
fn clone(&self) -> ValidationStats
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 ValidationStats
impl RefUnwindSafe for ValidationStats
impl Send for ValidationStats
impl Sync for ValidationStats
impl Unpin for ValidationStats
impl UnsafeUnpin for ValidationStats
impl UnwindSafe for ValidationStats
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