pub struct FileRecord {
    pub compression: Compression,
    pub length: u64,
    pub decompressed_length: u64,
    pub data: NonZeroU64,
    pub name: String,
    pub attrs: AttrMap,
}

Fields

compression: Compression

a bytestring representing the type of compression being used, always 8 bytes.

length: u64

The exact length of the data as written, ignoring any padding.

decompressed_length: u64

A hint for the size of the content when decompressed. Do not trust in absolute terms.

data: NonZeroU64

The position of the data in the file

name: String

The name of the file

attrs: AttrMap

Optional attributes for the given paths, such as Windows or Unix ACLs, last accessed time, etc.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.