Skip to main content

ExtraFieldId

Enum ExtraFieldId 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum ExtraFieldId {
Show 59 variants Zip64ExtendedInfo = 1, AvInfo = 7, ReservedExtendedLanguageEncoding = 8, Os2 = 9, Ntfs = 10, OpenVms = 12, Unix = 13, ReservedFileStreamAndForkDescriptors = 14, PatchDescriptor = 15, Pkcs7StoreForX509Certificates = 20, X509CertificateIdAndSignature = 21, X509CertificateIdCentralDirectory = 22, StrongEncryptionHeader = 23, RecordManagementControls = 24, Pkcs7EncryptionRecipientCertificateList = 25, ReservedTimestampRecord = 32, PolicyDecryptionKeyRecord = 33, SmartcryptKeyProviderRecord = 34, SmartcryptPolicyKeyDataRecord = 35, IbmS390As400Attributes = 101, ReservedIbmS390As400AttributesCompressed = 102, Macintosh = 1_992, PixarUsdHeader = 6_534, ZipItMacintosh = 9_733, ZipItMacintosh135Plus = 9_989, ZipItMacintosh135PlusAlt = 10_245, InfoZipMacintosh = 13_133, Tandem = 16_724, AcornSparkFs = 17_217, WindowsNtSecurityDescriptor = 17_491, Poszip4690 = 18_064, VmCms = 18_180, Mvs = 18_191, TheosOld = 18_516, FwkcsMd5 = 19_270, Os2AccessControlList = 19_521, InfoZipOpenVms = 19_785, MacintoshSmartzip = 19_811, XceedOriginalLocation = 20_300, AosVsAcl = 21_334, ExtendedTimestamp = 21_589, XceedUnicode = 21_838, InfoZipUnixOriginal = 22_613, UnicodeComment = 25_461, BeOsBeBox = 25_922, Theos = 26_708, UnicodePath = 28_789, AtheosSyllable = 29_761, AsiUnix = 30_062, InfoZipUnixNew = 30_805, InfoZipUnixNewerUidGid = 30_837, AeXEncryption = 39_169, Unknown9902 = 39_170, DataStreamAlignment = 41_246, MicrosoftOpenPackagingGrowthHint = 41_504, JavaJar = 51_966, AndroidZipAlignment = 55_605, KoreanZipCodePageInfo = 58_746, SmsQdos = 64_842,
}
Expand description

Known Extra Field Id from PKWARE specifications

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Zip64ExtendedInfo = 1

Zip64 Extended information

§

AvInfo = 7

AV Info

§

ReservedExtendedLanguageEncoding = 8

Reserved for extended language encoding data (PFS)

§

Os2 = 9

OS/2

§

Ntfs = 10

Ntfs

§

OpenVms = 12

OpenVMS

§

Unix = 13

UNIX

§

ReservedFileStreamAndForkDescriptors = 14

Reserved for file stream and fork descriptors

§

PatchDescriptor = 15

Patch Descriptor

§

Pkcs7StoreForX509Certificates = 20

PKCS#7 Store for X.509 Certificates

§

X509CertificateIdAndSignature = 21

X.509 Certificate ID and Signature for individual file

§

X509CertificateIdCentralDirectory = 22

X.509 Certificate ID for Central Directory

§

StrongEncryptionHeader = 23

Strong Encryption Header

§

RecordManagementControls = 24

Record Management Controls

§

Pkcs7EncryptionRecipientCertificateList = 25

PKCS#7 Encryption Recipient Certificate List

§

ReservedTimestampRecord = 32

Reserved for Timestamp record

§

PolicyDecryptionKeyRecord = 33

Policy Decryption Key Record

§

SmartcryptKeyProviderRecord = 34

Smartcrypt Key Provider Record

§

SmartcryptPolicyKeyDataRecord = 35

Smartcrypt Policy Key Data Record

§

IbmS390As400Attributes = 101

IBM S/390 (Z390), AS/400 (I400) attributes - uncompressed

§

ReservedIbmS390As400AttributesCompressed = 102

Reserved for IBM S/390 (Z390), AS/400 (I400) attributes - compressed

§

Macintosh = 1_992

Macintosh

§

PixarUsdHeader = 6_534

Pixar USD header ID

§

ZipItMacintosh = 9_733

ZipIt Macintosh

§

ZipItMacintosh135Plus = 9_989

ZipIt Macintosh 1.3.5+

§

ZipItMacintosh135PlusAlt = 10_245

ZipIt Macintosh 1.3.5+

§

InfoZipMacintosh = 13_133

Info-ZIP Macintosh

§

Tandem = 16_724

Tandem

§

AcornSparkFs = 17_217

Acorn/SparkFS

§

WindowsNtSecurityDescriptor = 17_491

Windows NT security descriptor (binary ACL)

§

Poszip4690 = 18_064

POSZIP 4690 (reserved)

§

VmCms = 18_180

VM/CMS

§

Mvs = 18_191

MVS

§

TheosOld = 18_516

THEOS (old?)

§

FwkcsMd5 = 19_270

FWKCS MD5

§

Os2AccessControlList = 19_521

OS/2 access control list (text ACL)

§

InfoZipOpenVms = 19_785

Info-ZIP OpenVMS

§

MacintoshSmartzip = 19_811

Macintosh Smartzip (??)

§

XceedOriginalLocation = 20_300

Xceed original location extra field

§

AosVsAcl = 21_334

AOS/VS (ACL)

§

ExtendedTimestamp = 21_589

Extended Timestamp

§

XceedUnicode = 21_838

Xceed unicode extra field

§

InfoZipUnixOriginal = 22_613

Info-ZIP UNIX (original, also OS/2, NT, etc)

§

UnicodeComment = 25_461

Unicode comment

§

BeOsBeBox = 25_922

BeOS/BeBox

§

Theos = 26_708

THEOS

§

UnicodePath = 28_789

Unicode Path

§

AtheosSyllable = 29_761

AtheOS/Syllable

§

AsiUnix = 30_062

ASi UNIX

§

InfoZipUnixNew = 30_805

Info-ZIP UNIX (new)

§

InfoZipUnixNewerUidGid = 30_837

Info-ZIP UNIX (newer UID/GID)

§

AeXEncryption = 39_169

AE-X Encryption

§

Unknown9902 = 39_170

unknown

§

DataStreamAlignment = 41_246

DataStream Alignment

§

MicrosoftOpenPackagingGrowthHint = 41_504

Microsoft Open Packaging Growth Hint

§

JavaJar = 51_966

Java JAR file Extra Field Header ID

§

AndroidZipAlignment = 55_605

Android ZIP Alignment Extra Field

§

KoreanZipCodePageInfo = 58_746

Korean ZIP code page info

§

SmsQdos = 64_842

SMS/QDOS

Implementations§

Source§

impl ExtraFieldId

Source

pub const fn as_u16(self) -> u16

Get value as u16

Trait Implementations§

Source§

impl Clone for ExtraFieldId

Source§

fn clone(&self) -> ExtraFieldId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ExtraFieldId

Source§

impl Debug for ExtraFieldId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ExtraFieldId

Source§

impl PartialEq for ExtraFieldId

Source§

fn eq(&self, other: &ExtraFieldId) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExtraFieldId

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.