#[non_exhaustive]pub struct ZipReadOptions<'a> { /* private fields */ }Expand description
Options for reading a file from an archive.
Implementations§
Source§impl<'a> ZipReadOptions<'a>
impl<'a> ZipReadOptions<'a>
Sourcepub fn password(self, password: Option<&'a [u8]>) -> Self
pub fn password(self, password: Option<&'a [u8]>) -> Self
Set the password, if any, to use. Return for chaining.
Sourcepub fn ignore_encryption_flag(self, ignore: bool) -> Self
pub fn ignore_encryption_flag(self, ignore: bool) -> Self
Set the ignore encryption flag. Return for chaining.
Sourcepub fn ignore_crc32(self, should_ignore: bool) -> Self
pub fn ignore_crc32(self, should_ignore: bool) -> Self
Ignore the CRC32 of the file
Sourcepub fn override_compressed_size(self, comp_size: u64) -> Self
pub fn override_compressed_size(self, comp_size: u64) -> Self
Override the compressed_size
Sourcepub fn override_uncompressed_size(self, uncomp_size: u64) -> Self
pub fn override_uncompressed_size(self, uncomp_size: u64) -> Self
Override the uncompressed_size
Sourcepub fn override_crc(self, crc: u32) -> Self
pub fn override_crc(self, crc: u32) -> Self
Override the checksum
Trait Implementations§
Source§impl<'a> Default for ZipReadOptions<'a>
impl<'a> Default for ZipReadOptions<'a>
Source§fn default() -> ZipReadOptions<'a>
fn default() -> ZipReadOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ZipReadOptions<'a>
impl<'a> RefUnwindSafe for ZipReadOptions<'a>
impl<'a> Send for ZipReadOptions<'a>
impl<'a> Sync for ZipReadOptions<'a>
impl<'a> Unpin for ZipReadOptions<'a>
impl<'a> UnsafeUnpin for ZipReadOptions<'a>
impl<'a> UnwindSafe for ZipReadOptions<'a>
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