pub struct ExtractOptions { /* private fields */ }
Expand description
Options for extracting files in an Archive
into the filesystem.
This is used with Archive::extract_with
.
Implementations§
Source§impl ExtractOptions
impl ExtractOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ExtractOptions
with default settings.
Sourcepub fn children(self, children: bool) -> Self
pub fn children(self, children: bool) -> Self
Extract the children of the source directory instead of the source directory itself.
This puts the children of the source directory into the given destination directory.
As a special case, you can use an empty path as the source directory to extract all files in the root of the archive.
The default is false
.
Trait Implementations§
Source§impl Clone for ExtractOptions
impl Clone for ExtractOptions
Source§fn clone(&self) -> ExtractOptions
fn clone(&self) -> ExtractOptions
Returns a copy 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 ExtractOptions
impl Debug for ExtractOptions
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl UnwindSafe for ExtractOptions
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