pub struct Summary {
pub errors: usize,
pub warnings: usize,
pub infos: usize,
}Expand description
Counts of issues by severity.
Use Summary::is_valid to check whether the document passes validation.
A document is valid when errors == 0, regardless of warning or info count.
Fields§
§errors: usize§warnings: usize§infos: usizeImplementations§
Trait Implementations§
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