pub struct DiskUsageItem {
pub fs_type: FileSystemType,
pub path: String,
pub size_in_bytes: usize,
pub children: Option<Vec<DiskUsageItem>>,
}Expand description
Fields§
§fs_type: FileSystemTypeType of the entry.
path: StringRelative path in the DittoRoot.
size_in_bytes: usizeSize of the entry in bytes. For directories, this includes the size of all children.
children: Option<Vec<DiskUsageItem>>If the entry is a directory, it contains child items.
Trait Implementations§
Source§impl Clone for DiskUsageItem
impl Clone for DiskUsageItem
Source§fn clone(&self) -> DiskUsageItem
fn clone(&self) -> DiskUsageItem
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 DiskUsageItem
impl Debug for DiskUsageItem
Source§impl<'de> Deserialize<'de> for DiskUsageItem
impl<'de> Deserialize<'de> for DiskUsageItem
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
Source§impl PartialEq for DiskUsageItem
impl PartialEq for DiskUsageItem
impl Eq for DiskUsageItem
impl StructuralPartialEq for DiskUsageItem
Auto Trait Implementations§
impl Freeze for DiskUsageItem
impl RefUnwindSafe for DiskUsageItem
impl Send for DiskUsageItem
impl Sync for DiskUsageItem
impl Unpin for DiskUsageItem
impl UnwindSafe for DiskUsageItem
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more