pub struct Report {
pub artifacts: Vec<Artifact>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The output of a single pipeline run: everything a front end needs to
either write artifacts to disk (cargo aidoc) or compare them to a
checked-in tree (cargo aidoc --check).
Ordering: artifacts matches the emission order of
generate::render_all; diagnostics matches the emission order of
lint::lint.
Fields§
§artifacts: Vec<Artifact>Generated files, keyed by relative path.
diagnostics: Vec<Diagnostic>Lint findings. Empty on a fully clean run.
Implementations§
Source§impl Report
impl Report
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
True if any diagnostic has Level::Error. Callers use this to
pick between exit code 0 (clean) and 2 (lint violation).
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