#[repr(C)]pub struct ZipReadConfig {
pub max_file_size: u64,
pub allow_path_traversal: bool,
pub skip_encrypted: bool,
}Expand description
Configuration for reading ZIP archives
Fields§
§max_file_size: u64Maximum file size to extract (0 = unlimited)
allow_path_traversal: boolWhether to allow paths with “..” (path traversal) - default: false
skip_encrypted: boolWhether to skip encrypted files instead of erroring - default: false
Implementations§
Source§impl ZipReadConfig
impl ZipReadConfig
pub fn new() -> Self
pub fn with_max_file_size(self, max_size: u64) -> Self
pub fn with_allow_path_traversal(self, allow: bool) -> Self
Trait Implementations§
Source§impl Clone for ZipReadConfig
impl Clone for ZipReadConfig
Source§fn clone(&self) -> ZipReadConfig
fn clone(&self) -> ZipReadConfig
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 ZipReadConfig
impl Debug for ZipReadConfig
Source§impl Default for ZipReadConfig
impl Default for ZipReadConfig
Source§fn default() -> ZipReadConfig
fn default() -> ZipReadConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ZipReadConfig
impl RefUnwindSafe for ZipReadConfig
impl Send for ZipReadConfig
impl Sync for ZipReadConfig
impl Unpin for ZipReadConfig
impl UnwindSafe for ZipReadConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more