pub struct Report {
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of validating a bundle.
Fields§
§diagnostics: Vec<Diagnostic>All findings, errors first by construction order.
Implementations§
Source§impl Report
impl Report
Sourcepub fn is_conformant(&self) -> bool
pub fn is_conformant(&self) -> bool
true if there are no Severity::Error diagnostics, i.e. the bundle
conforms to §11.
Sourcepub fn of(&self, severity: Severity) -> impl Iterator<Item = &Diagnostic>
pub fn of(&self, severity: Severity) -> impl Iterator<Item = &Diagnostic>
Iterates over diagnostics of a given severity.
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count of error-level diagnostics.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Count of warning-level diagnostics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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