pub struct ExtractionReport {
pub files_extracted: usize,
pub directories_created: usize,
pub symlinks_created: usize,
pub bytes_written: u64,
pub duration: Duration,
pub files_skipped: usize,
pub warnings: Vec<String>,
}Expand description
Report of an archive extraction operation.
Contains statistics and metadata about the extraction process.
Fields§
§files_extracted: usizeNumber of files successfully extracted.
directories_created: usizeNumber of directories created.
symlinks_created: usizeNumber of symlinks created.
bytes_written: u64Total bytes written to disk.
duration: DurationDuration of the extraction operation.
files_skipped: usizeNumber of files skipped due to security checks.
warnings: Vec<String>Warnings generated during extraction.
Implementations§
Source§impl ExtractionReport
impl ExtractionReport
Sourcepub fn add_warning(&mut self, message: String)
pub fn add_warning(&mut self, message: String)
Adds a warning message to the report.
Sourcepub fn total_items(&self) -> usize
pub fn total_items(&self) -> usize
Returns the total number of items actually written to disk
(files_extracted + directories_created + symlinks_created).
This deliberately excludes files_skipped: a
report can carry meaningful progress — skipped entries, warnings —
while this is 0. Callers deciding whether a report is worth
surfacing (e.g. ArchiveError::partial_or) must check
files_skipped/has_warnings too, not rely on
this alone.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns whether any warnings were generated.
Trait Implementations§
Source§impl Clone for ExtractionReport
impl Clone for ExtractionReport
Source§fn clone(&self) -> ExtractionReport
fn clone(&self) -> ExtractionReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more