pub struct SizeStats {
pub total_size: u64,
pub total_size_human: String,
pub file_count: usize,
pub average_size: u64,
pub median_size: u64,
pub min_size: u64,
pub max_size: u64,
pub size_distribution: SizeDistribution,
}Expand description
Size-related statistics for collections of files
Fields§
§total_size: u64§total_size_human: String§file_count: usize§average_size: u64§median_size: u64§min_size: u64§max_size: u64§size_distribution: SizeDistributionImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SizeStats
impl<'de> Deserialize<'de> for SizeStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SizeStats
impl RefUnwindSafe for SizeStats
impl Send for SizeStats
impl Sync for SizeStats
impl Unpin for SizeStats
impl UnwindSafe for SizeStats
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