pub struct Summary {
pub errors: usize,
pub warnings: usize,
pub unsupported: usize,
}Expand description
Counts by severity, for a one-line verdict.
Fields§
§errors: usizeHow many schema violations.
warnings: usizeHow many suspicious-but-legal findings.
unsupported: usizeHow many rules went unevaluated.
Implementations§
Source§impl Summary
impl Summary
Sourcepub const fn is_conformant(&self) -> bool
pub const fn is_conformant(&self) -> bool
Whether the file violated anything this validator checked.
Deliberately ignores Severity::Unsupported: an unchecked rule is a
statement about the validator, not about the file. Callers that want
“clean and fully checked” must also test Summary::unsupported,
and the distinction is the point.
Trait Implementations§
impl Copy for Summary
impl Eq for Summary
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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