#[non_exhaustive]#[repr(u16)]pub enum ZipFlags {
Encrypted = 1,
CompressionSetting = 2,
CompressionSetting2 = 4,
UsingDataDescriptor = 8,
ReservedEnhancedDeflating = 16,
CompressedPatchedData = 32,
StrongEncryption = 64,
LanguageEncoding = 2_048,
ReservedEnhancedCompression = 4_096,
Masked = 8_192,
ReservedAlternateStream = 16_384,
Reserved = 32_768,
}Expand description
Zip flags Stored as Little endian
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Encrypted = 1
If set, indicates that the file is encrypted.
CompressionSetting = 2
Compression setting
CompressionSetting2 = 4
Compression setting 2
UsingDataDescriptor = 8
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 = 16
Reserved for use with method 8, for enhanced deflating.
CompressedPatchedData = 32
If this bit is set, this indicates that the file is compressed patched data.
StrongEncryption = 64
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 = 2_048
Language encoding flag (EFS). If this bit is set, the filename and comment fields for this file MUST be encoded using UTF-8.
ReservedEnhancedCompression = 4_096
Reserved by PKWARE for enhanced compression.
Masked = 8_192
Set when encrypting the Central Directory to indicate selected data values in the Local Header are masked to hide their actual values.
ReservedAlternateStream = 16_384
Reserved by PKWARE for alternate streams.
Reserved = 32_768
Reserved by PKWARE.
Trait Implementations§
impl Copy for ZipFlags
impl Eq for ZipFlags
impl StructuralPartialEq for ZipFlags
Auto Trait Implementations§
impl Freeze for ZipFlags
impl RefUnwindSafe for ZipFlags
impl Send for ZipFlags
impl Sync for ZipFlags
impl Unpin for ZipFlags
impl UnsafeUnpin for ZipFlags
impl UnwindSafe for ZipFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.