pub struct ValidationReport {
pub results: Vec<ValidationResult>,
}Expand description
Validation report aggregating all results.
Fields§
§results: Vec<ValidationResult>List of individual results.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn passed_count(&self) -> usize
pub fn passed_count(&self) -> usize
Number of passed cases.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Number of failed cases.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
true if all cases passed.
Sourcepub fn failures(&self) -> Vec<&ValidationResult>
pub fn failures(&self) -> Vec<&ValidationResult>
Returns the failed results.
Sourcepub fn worst_error(&self) -> Option<&ValidationResult>
pub fn worst_error(&self) -> Option<&ValidationResult>
Returns the result with the largest relative error.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Exports the report in Markdown format.
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnsafeUnpin for ValidationReport
impl UnwindSafe for ValidationReport
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