#[non_exhaustive]#[repr(u16)]pub enum ExtraHeaderId {
Zip64 = 1,
Ntfs = 10,
Unix = 13,
NtfsSecurityDescriptor = 17_491,
ExtendedTimestamp = 21_589,
InfoZipUnix = 22_613,
UnicodeComment = 25_461,
UnicodePath = 28_789,
InfoZipOwnership16 = 30_805,
InfoZipOwnership = 30_837,
JarMagic = 51_966,
}Expand description
A supported ZIP member extra-field identifier. The discriminant is the wire value.
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.
Zip64 = 1
ZIP64 sizes, local offset, and disk number.
Ntfs = 10
NTFS timestamps (attribute tag 0x0001 only).
Unix = 13
PKWARE UNIX metadata.
NtfsSecurityDescriptor = 17_491
Windows NT security descriptor (version 0). The descriptor is ignored.
ExtendedTimestamp = 21_589
Info-ZIP extended timestamps.
InfoZipUnix = 22_613
Original Info-ZIP UNIX timestamps and optional ownership.
UnicodeComment = 25_461
Info-ZIP Unicode comment.
UnicodePath = 28_789
Info-ZIP Unicode path.
InfoZipOwnership16 = 30_805
Info-ZIP 16-bit UID and GID.
InfoZipOwnership = 30_837
Info-ZIP variable-width UID and GID.
JarMagic = 51_966
Empty marker written by Java’s JarOutputStream.
Trait Implementations§
Source§impl Clone for ExtraHeaderId
impl Clone for ExtraHeaderId
impl Copy for ExtraHeaderId
Source§impl Debug for ExtraHeaderId
impl Debug for ExtraHeaderId
impl Eq for ExtraHeaderId
Source§impl From<ExtraHeaderId> for u16
impl From<ExtraHeaderId> for u16
Source§fn from(value: ExtraHeaderId) -> Self
fn from(value: ExtraHeaderId) -> Self
Converts to this type from the input type.
Source§impl FromIterator<ExtraHeaderId> for ExtraHeaderIdSet
impl FromIterator<ExtraHeaderId> for ExtraHeaderIdSet
Source§fn from_iter<T: IntoIterator<Item = ExtraHeaderId>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ExtraHeaderId>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Ord for ExtraHeaderId
impl Ord for ExtraHeaderId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExtraHeaderId
impl PartialEq for ExtraHeaderId
Source§impl PartialOrd for ExtraHeaderId
impl PartialOrd for ExtraHeaderId
impl StructuralPartialEq for ExtraHeaderId
Auto Trait Implementations§
impl Forget for ExtraHeaderId
impl Freeze for ExtraHeaderId
impl Move for ExtraHeaderId
impl RefUnwindSafe for ExtraHeaderId
impl Send for ExtraHeaderId
impl Sync for ExtraHeaderId
impl Unpin for ExtraHeaderId
impl UnsafeUnpin for ExtraHeaderId
impl UnwindSafe for ExtraHeaderId
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
Mutably borrows from an owned value. Read more