Enum ZipFlags
#[repr(u16)]
#[non_exhaustive]
pub enum ZipFlags
Zip flags Stored as Little endian
Variants
-
Encrypted = 0b0000_0000_0000_0001 If set, indicates that the file is encrypted.
-
CompressionSetting = 0b0000_0000_0000_0010 Compression setting
-
CompressionSetting2 = 0b0000_0000_0000_0100 Compression setting 2
-
UsingDataDescriptor = 0b0000_0000_0000_1000 If this bit is set, the fields crc-32, compressed size and uncompressed size are set to zero in the local header. The correct values are put in the data descriptor immediately following the compressed data.
-
ReservedEnhancedDeflating = 0b0000_0000_0001_0000 Reserved for use with method 8, for enhanced deflating.
-
CompressedPatchedData = 0b0000_0000_0010_0000 If this bit is set, this indicates that the file is compressed patched data.
-
StrongEncryption = 0b0000_0000_0100_0000 Strong encryption. If this bit is set, you MUST set the version needed to extract value to at least 50 and you MUST also set bit 0. If AES encryption is used, the version needed to extract value MUST be at least 51.
-
LanguageEncoding = 0b0000_1000_0000_0000 Language encoding flag (EFS). If this bit is set, the filename and comment fields for this file MUST be encoded using UTF-8.
-
ReservedEnhancedCompression = 0b0001_0000_0000_0000 Reserved by PKWARE for enhanced compression.
-
Masked = 0b0010_0000_0000_0000 Set when encrypting the Central Directory to indicate selected data values in the Local Header are masked to hide their actual values.
-
ReservedAlternateStream = 0b0100_0000_0000_0000 Reserved by PKWARE for alternate streams.
-
Reserved = 0b1000_0000_0000_0000 Reserved by PKWARE.
Trait Implementations
impl Clone for ZipFlags
fn clone(&self) -> Self
impl Copy for ZipFlags
impl Debug for ZipFlags
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ZipFlags
impl PartialEq for ZipFlags
fn eq(&self, other: &Self) -> bool