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