pub struct DiffStats {
pub total_files: usize,
pub total_dirs: usize,
pub total_size: u64,
pub largest_file: u64,
pub smallest_file: u64,
pub average_file_size: f64,
pub file_types: HashMap<String, usize>,
pub oldest_file: Option<String>,
pub newest_file: Option<String>,
}Expand description
差异统计
Fields§
§total_files: usize§total_dirs: usize§total_size: u64§largest_file: u64§smallest_file: u64§average_file_size: f64§file_types: HashMap<String, usize>§oldest_file: Option<String>§newest_file: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffStats
impl<'de> Deserialize<'de> for DiffStats
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 DiffStats
impl RefUnwindSafe for DiffStats
impl Send for DiffStats
impl Sync for DiffStats
impl Unpin for DiffStats
impl UnwindSafe for DiffStats
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