pub struct Record {
pub at: SystemTime,
pub root: PathBuf,
pub apparent: bool,
pub size: u64,
pub files: u64,
pub directories: u64,
pub top: Vec<TopEntry>,
}Expand description
The summary of one scan.
Fields§
§at: SystemTimeWhen the scan finished.
root: PathBuf§apparent: boolSizes are file lengths rather than disk usage.
size: u64§files: u64§directories: u64§top: Vec<TopEntry>The largest entries directly under the root, largest first.
Implementations§
Source§impl Record
impl Record
Sourcepub fn comparable(&self, other: &Self) -> bool
pub fn comparable(&self, other: &Self) -> bool
Whether the two records measured the same place the same way, so their sizes can be compared.
Sourcepub fn largest_change<'a>(
&'a self,
earlier: &'a Self,
) -> Option<(&'a Path, i128)>
pub fn largest_change<'a>( &'a self, earlier: &'a Self, ) -> Option<(&'a Path, i128)>
The top entry whose size changed most since earlier, and by how
much; entries missing on one side count as zero there.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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