pub struct ReportCommand<'a> { /* private fields */ }Expand description
report: the summary followed by every group that survived filtering.
What the document looks like is the reporter’s decision, not this one’s – text writes section after section, JSON writes one object with the sections inside it. A command that made that choice itself could only ever make the text one.
Implementations§
Source§impl<'a> ReportCommand<'a>
impl<'a> ReportCommand<'a>
pub const fn new(result: &'a AnalysisResult, reporter: &'a dyn Reporter) -> Self
Sourcepub fn run(&self) -> CliResult<CommandOutcome>
pub fn run(&self) -> CliResult<CommandOutcome>
Build the summary and the groups.
§Errors
Returns crate::cli::cli_error::CliError::Io if the reporter fails.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReportCommand<'a>
impl<'a> !Send for ReportCommand<'a>
impl<'a> !Sync for ReportCommand<'a>
impl<'a> !UnwindSafe for ReportCommand<'a>
impl<'a> Freeze for ReportCommand<'a>
impl<'a> Unpin for ReportCommand<'a>
impl<'a> UnsafeUnpin for ReportCommand<'a>
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