pub struct ExtendedReport {
pub title: String,
pub groups: Vec<DuplicateGroup>,
pub total_duplicate_files: usize,
pub total_recoverable_bytes: u64,
}Expand description
Full extended deduplication report.
Fields§
§title: StringReport title.
groups: Vec<DuplicateGroup>Duplicate groups.
total_duplicate_files: usizeTotal number of duplicate files.
total_recoverable_bytes: u64Total bytes recoverable.
Implementations§
Source§impl ExtendedReport
impl ExtendedReport
Sourcepub fn group_count(&self) -> usize
pub fn group_count(&self) -> usize
Return the number of duplicate groups.
Sourcepub fn format_breakdown(&self) -> FormatBreakdown
pub fn format_breakdown(&self) -> FormatBreakdown
Return a per-extension breakdown of duplicates.
Sourcepub fn summary_text(&self) -> String
pub fn summary_text(&self) -> String
Return a human-readable summary string.
Sourcepub fn size_distribution(&self, bucket_boundaries: &[u64]) -> SizeDistribution
pub fn size_distribution(&self, bucket_boundaries: &[u64]) -> SizeDistribution
Build a size distribution histogram with the given bucket boundaries.
Sourcepub fn filter_by_path(&self, prefix: &Path) -> Vec<&DuplicateGroup>
pub fn filter_by_path(&self, prefix: &Path) -> Vec<&DuplicateGroup>
Filter groups, keeping only those containing a file under prefix.
Trait Implementations§
Source§impl Clone for ExtendedReport
impl Clone for ExtendedReport
Source§fn clone(&self) -> ExtendedReport
fn clone(&self) -> ExtendedReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtendedReport
impl RefUnwindSafe for ExtendedReport
impl Send for ExtendedReport
impl Sync for ExtendedReport
impl Unpin for ExtendedReport
impl UnsafeUnpin for ExtendedReport
impl UnwindSafe for ExtendedReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more