ZipLocalFileHeader

Struct ZipLocalFileHeader 

Source
pub struct ZipLocalFileHeader<'a> { /* private fields */ }
Expand description

Local file header information from a ZIP archive entry.

This struct provides access to data stored in the local file header of a ZIP entry, which may differ from the information in the central directory. The local header contains the filename and extra fields as they appear at the start of each entry’s data within the ZIP file.

Most ZIP tools use the central directory as authoritative, but access to local header data is useful for validation, security analysis, and forensic purposes.

Implementations§

Source§

impl<'a> ZipLocalFileHeader<'a>

Source

pub fn file_path(&self) -> ZipFilePath<RawPath<'a>>

Returns the file path from the local file header.

This may differ from the central directory file path.

Source

pub fn extra_fields(&self) -> ExtraFields<'a>

Returns an iterator over the extra fields from the local file header.

Extra fields in the local header may differ from those in the central directory. The local header may contain additional or different metadata compared to the central directory entry.

Trait Implementations§

Source§

impl<'a> Debug for ZipLocalFileHeader<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ZipLocalFileHeader<'a>

§

impl<'a> RefUnwindSafe for ZipLocalFileHeader<'a>

§

impl<'a> Send for ZipLocalFileHeader<'a>

§

impl<'a> Sync for ZipLocalFileHeader<'a>

§

impl<'a> Unpin for ZipLocalFileHeader<'a>

§

impl<'a> UnwindSafe for ZipLocalFileHeader<'a>

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> 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, 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.