pub struct DirSummary {
pub size: u64,
pub files: u64,
pub symlinks: u64,
pub dirs: u64,
pub max_time: Option<DateTime<Utc>>,
pub num_failed: u64,
pub errors: Vec<EntryError>,
}Expand description
Directory summary embedded under a root entry (summ). Carries the
aggregate counts kopia computed while walking the tree.
Fields§
§size: u64Total logical size in bytes.
files: u64Number of files.
symlinks: u64Number of symlinks.
dirs: u64Number of directories.
max_time: Option<DateTime<Utc>>Newest mtime found in the tree.
num_failed: u64Count of entries that failed during the walk as fatal errors. NOTE: this is
0 when the failures were ignored by an ignore-file-errors/ignore-dir-errors
policy — in that case the snapshot still completes (exit 0) but the entries are in
DirSummary::errors, which is the reliable “what got skipped” signal.
errors: Vec<EntryError>Per-entry errors kopia hit while walking the tree (e.g. permission denied).
Populated whether the errors were fatal (exit 1) OR ignored by policy (exit 0), so
this is how an otherwise-silent incomplete snapshot is detected.
Trait Implementations§
Source§impl Clone for DirSummary
impl Clone for DirSummary
Source§fn clone(&self) -> DirSummary
fn clone(&self) -> DirSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DirSummary
impl Debug for DirSummary
Source§impl<'de> Deserialize<'de> for DirSummary
impl<'de> Deserialize<'de> for DirSummary
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>,
Source§impl PartialEq for DirSummary
impl PartialEq for DirSummary
Source§fn eq(&self, other: &DirSummary) -> bool
fn eq(&self, other: &DirSummary) -> bool
self and other values to be equal, and is used by ==.