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() -> SelfCreate a new set of options with the default values.
fn password(self, password: Option<&'a [u8]>) -> SelfSet the password, if any, to use. Return for chaining.
fn ignore_encryption_flag(self, ignore: bool) -> SelfSet the ignore encryption flag. Return for chaining.
fn ignore_crc32(self, should_ignore: bool) -> SelfIgnore the CRC32 of the file
fn override_compressed_size(self, comp_size: u64) -> SelfOverride the compressed_size
fn override_uncompressed_size(self, uncomp_size: u64) -> SelfOverride the uncompressed_size
fn override_crc(self, crc: u32) -> SelfOverride the checksum
fn enforce_header_consistency(self, enforce: bool) -> SelfEnforces that the local file header (LFH) matches the central directory header (CDFH).
Trait Implementations
impl<'a> Default for ZipReadOptions<'a>
fn default() -> Self