pub struct ScanResult {
pub projects: Vec<Project>,
pub total_size: u64,
pub total_cleanable: u64,
pub duration: Duration,
pub directories_scanned: usize,
pub errors: Vec<ScanError>,
pub stats: ArtifactStats,
}Expand description
Result of a complete scan
Fieldsยง
ยงprojects: Vec<Project>Projects found
total_size: u64Total size of all artifacts
total_cleanable: u64Total cleanable size
duration: DurationScan duration
directories_scanned: usizeNumber of directories scanned
errors: Vec<ScanError>Errors encountered
stats: ArtifactStatsStatistics by artifact kind
Implementationsยง
Sourceยงimpl ScanResult
impl ScanResult
Sourcepub fn project_count(&self) -> usize
pub fn project_count(&self) -> usize
Get the number of projects
Sourcepub fn artifact_count(&self) -> usize
pub fn artifact_count(&self) -> usize
Get total artifact count across all projects
Sourcepub fn projects_by_size(&self) -> Vec<&Project>
pub fn projects_by_size(&self) -> Vec<&Project>
Get projects sorted by cleanable size (descending)
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnwindSafe for ScanResult
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> 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