pub struct ExtractPolicy {
pub max_file_bytes: u64,
pub max_total_bytes: u64,
pub max_files: usize,
pub restore_symlinks: bool,
pub restore_permissions: bool,
pub overwrite: bool,
}Expand description
Safety and behavior limits for extracting lockbox contents.
Fields§
§max_file_bytes: u64Maximum bytes allowed for any single extracted file.
max_total_bytes: u64Maximum total file bytes allowed across the extraction.
max_files: usizeMaximum number of file records to extract.
restore_symlinks: boolWhether symlink records may be restored.
restore_permissions: boolWhether stored permission bits should be applied to extracted files.
overwrite: boolWhether extraction may overwrite existing filesystem paths.
Trait Implementations§
Source§impl Clone for ExtractPolicy
impl Clone for ExtractPolicy
Source§fn clone(&self) -> ExtractPolicy
fn clone(&self) -> ExtractPolicy
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 ExtractPolicy
impl Debug for ExtractPolicy
Source§impl Default for ExtractPolicy
impl Default for ExtractPolicy
Source§fn default() -> ExtractPolicy
fn default() -> ExtractPolicy
Returns the “default value” for a type. Read more
impl Eq for ExtractPolicy
Source§impl PartialEq for ExtractPolicy
impl PartialEq for ExtractPolicy
impl StructuralPartialEq for ExtractPolicy
Auto Trait Implementations§
impl Freeze for ExtractPolicy
impl RefUnwindSafe for ExtractPolicy
impl Send for ExtractPolicy
impl Sync for ExtractPolicy
impl Unpin for ExtractPolicy
impl UnsafeUnpin for ExtractPolicy
impl UnwindSafe for ExtractPolicy
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