Struct ZipReadOptions

#[non_exhaustive]
pub struct ZipReadOptions<'a> { /* private fields */ }

Options for reading a file from an archive.

Implementations

impl<'a> ZipReadOptions<'a>

fn new() -> Self

Create a new set of options with the default values.

fn password(self, password: Option<&'a [u8]>) -> Self

Set the password, if any, to use. Return for chaining.

fn ignore_encryption_flag(self, ignore: bool) -> Self

Set the ignore encryption flag. Return for chaining.

fn ignore_crc32(self, should_ignore: bool) -> Self

Ignore the CRC32 of the file

fn override_compressed_size(self, comp_size: u64) -> Self

Override the compressed_size

fn override_uncompressed_size(self, uncomp_size: u64) -> Self

Override the uncompressed_size

fn override_crc(self, crc: u32) -> Self

Override the checksum

fn enforce_header_consistency(self, enforce: bool) -> Self

Enforces that the local file header (LFH) matches the central directory header (CDFH).

Trait Implementations

impl<'a> Default for ZipReadOptions<'a>

fn default() -> Self

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

impl<T> Any for ZipReadOptions<'a> where T: 'static + ?Sized,

impl<T> Borrow<T> for ZipReadOptions<'a> where T: ?Sized,

impl<T> BorrowMut<T> for ZipReadOptions<'a> where T: ?Sized,

impl<T> From<T> for ZipReadOptions<'a>

impl<T> Same for ZipReadOptions<'a>

impl<T, U> Into<U> for ZipReadOptions<'a> where U: From<T>,

impl<T, U> TryFrom<U> for ZipReadOptions<'a> where U: Into<T>,

impl<T, U> TryInto<U> for ZipReadOptions<'a> where U: TryFrom<T>,