pub struct ArchiveSummary {
pub discovered: usize,
pub selected: usize,
pub archived: usize,
pub skipped: usize,
pub files_archived: usize,
pub bytes_written: u64,
pub files: Vec<ArchivedFile>,
pub failed: Vec<ArchiveFailure>,
}Expand description
Summary returned after an archive run.
Fields§
§discovered: usizeNumber of datasets discovered before filtering and archiving.
selected: usizeNumber of datasets selected after filter application.
archived: usizeNumber of dataset directories completed without file failures.
skipped: usizeNumber of dataset directories skipped because they already existed.
files_archived: usizeNumber of files written.
bytes_written: u64Bytes written during this run.
files: Vec<ArchivedFile>Per-file successful writes or skips.
failed: Vec<ArchiveFailure>Dataset or file failures.
Implementations§
Source§impl ArchiveSummary
impl ArchiveSummary
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Return true when no archive failures occurred.
Sourcepub fn failed_dataset_count(&self) -> usize
pub fn failed_dataset_count(&self) -> usize
Number of unique datasets with at least one failure.
Trait Implementations§
Source§impl Clone for ArchiveSummary
impl Clone for ArchiveSummary
Source§fn clone(&self) -> ArchiveSummary
fn clone(&self) -> ArchiveSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArchiveSummary
impl Debug for ArchiveSummary
Source§impl Default for ArchiveSummary
impl Default for ArchiveSummary
Source§fn default() -> ArchiveSummary
fn default() -> ArchiveSummary
Returns the “default value” for a type. Read more
impl Eq for ArchiveSummary
Source§impl PartialEq for ArchiveSummary
impl PartialEq for ArchiveSummary
Source§fn eq(&self, other: &ArchiveSummary) -> bool
fn eq(&self, other: &ArchiveSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArchiveSummary
Auto Trait Implementations§
impl Freeze for ArchiveSummary
impl RefUnwindSafe for ArchiveSummary
impl Send for ArchiveSummary
impl Sync for ArchiveSummary
impl Unpin for ArchiveSummary
impl UnsafeUnpin for ArchiveSummary
impl UnwindSafe for ArchiveSummary
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