#[non_exhaustive]pub struct UnpackOptions {
pub strip_components: usize,
pub preserve_mtime: bool,
pub preserve_permissions: bool,
pub overwrite: bool,
pub on_progress: Option<ProgressCallback>,
pub on_entry: Option<EntryCallback>,
}Expand description
Secure extraction behavior and callbacks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.strip_components: usizeLeading path components removed after all name overrides are resolved.
preserve_mtime: boolRestore entry modification times.
preserve_permissions: boolRestore Unix permission bits.
overwrite: boolReplace existing non-directory entries.
on_progress: Option<ProgressCallback>Raw-input progress callback.
on_entry: Option<EntryCallback>Callback fired before each logical entry is handled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UnpackOptions
impl !Send for UnpackOptions
impl !Sync for UnpackOptions
impl !UnwindSafe for UnpackOptions
impl Freeze for UnpackOptions
impl Unpin for UnpackOptions
impl UnsafeUnpin for UnpackOptions
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