pub struct HeaderFields {
pub name: String,
pub method: CompressionMethod,
pub flags: u16,
pub crc32: u32,
pub compressed_size: u64,
pub uncompressed_size: u64,
}Expand description
Header fields as recorded in one header copy (central directory OR local file
header). Exposed via ZipArchive::structural_view for the forensic seam.
Fields§
§name: StringEntry name (decoded).
method: CompressionMethodCompression method.
flags: u16General-purpose flag bits.
crc32: u32CRC-32 as recorded in this header copy.
compressed_size: u64Compressed size as recorded in this header copy.
uncompressed_size: u64Uncompressed size as recorded in this header copy.
Trait Implementations§
Source§impl Clone for HeaderFields
impl Clone for HeaderFields
Source§fn clone(&self) -> HeaderFields
fn clone(&self) -> HeaderFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderFields
impl Debug for HeaderFields
impl Eq for HeaderFields
Source§impl PartialEq for HeaderFields
impl PartialEq for HeaderFields
Source§fn eq(&self, other: &HeaderFields) -> bool
fn eq(&self, other: &HeaderFields) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderFields
Auto Trait Implementations§
impl Freeze for HeaderFields
impl RefUnwindSafe for HeaderFields
impl Send for HeaderFields
impl Sync for HeaderFields
impl Unpin for HeaderFields
impl UnsafeUnpin for HeaderFields
impl UnwindSafe for HeaderFields
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