pub struct Report<'a> {
pub stats: &'a DuplicationStats,
pub exact: &'a [DuplicateGroup],
pub near: &'a [DuplicateGroup],
pub sub_exact: &'a [DuplicateGroup],
pub sub_near: &'a [DuplicateGroup],
}Expand description
Everything a full report shows, handed to a reporter in one piece.
It exists because the shape of the document is the format’s business and not the command’s. Text can be written a section at a time and read correctly; JSON cannot, and a caller that emitted one section per call produced several top-level documents rather than one.
Fields§
§stats: &'a DuplicationStats§exact: &'a [DuplicateGroup]§near: &'a [DuplicateGroup]§sub_exact: &'a [DuplicateGroup]§sub_near: &'a [DuplicateGroup]Auto Trait Implementations§
impl<'a> Freeze for Report<'a>
impl<'a> RefUnwindSafe for Report<'a>
impl<'a> Send for Report<'a>
impl<'a> Sync for Report<'a>
impl<'a> Unpin for Report<'a>
impl<'a> UnsafeUnpin for Report<'a>
impl<'a> UnwindSafe for Report<'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