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 total number of items processed.
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
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 ExtractionReport
impl Debug for ExtractionReport
Source§impl Default for ExtractionReport
impl Default for ExtractionReport
Source§fn default() -> ExtractionReport
fn default() -> ExtractionReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractionReport
impl RefUnwindSafe for ExtractionReport
impl Send for ExtractionReport
impl Sync for ExtractionReport
impl Unpin for ExtractionReport
impl UnwindSafe for ExtractionReport
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