pub struct ArtifactStats {
pub total_size: u64,
pub total_files: u64,
pub total_artifacts: usize,
pub by_kind: HashMap<ArtifactKind, KindStats>,
}Expand description
Statistics about artifacts found during scan
Fieldsยง
ยงtotal_size: u64Total size of all artifacts
total_files: u64Total number of files
total_artifacts: usizeTotal number of artifacts
by_kind: HashMap<ArtifactKind, KindStats>Stats by artifact kind
Implementationsยง
Sourceยงimpl ArtifactStats
impl ArtifactStats
Sourcepub fn largest_kind(&self) -> Option<(ArtifactKind, u64)>
pub fn largest_kind(&self) -> Option<(ArtifactKind, u64)>
Get the largest artifact kind by size
Trait Implementationsยง
Sourceยงimpl Clone for ArtifactStats
impl Clone for ArtifactStats
Sourceยงfn clone(&self) -> ArtifactStats
fn clone(&self) -> ArtifactStats
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for ArtifactStats
impl Debug for ArtifactStats
Sourceยงimpl Default for ArtifactStats
impl Default for ArtifactStats
Sourceยงfn default() -> ArtifactStats
fn default() -> ArtifactStats
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for ArtifactStats
impl RefUnwindSafe for ArtifactStats
impl Send for ArtifactStats
impl Sync for ArtifactStats
impl Unpin for ArtifactStats
impl UnwindSafe for ArtifactStats
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