pub struct FileRecord {
pub compression: Compression,
pub length: u64,
pub decompressed_length: u64,
pub data: NonZeroU64,
pub name: String,
pub attrs: AttrMap,
}Fields§
§compression: Compressiona bytestring representing the type of compression being used, always 8 bytes.
length: u64The exact length of the data as written, ignoring any padding.
decompressed_length: u64A hint for the size of the content when decompressed. Do not trust in absolute terms.
data: NonZeroU64The position of the data in the file
name: StringThe name of the file
attrs: AttrMapOptional attributes for the given paths, such as Windows or Unix ACLs, last accessed time, etc.
Implementations§
Source§impl FileRecord
impl FileRecord
pub fn compression(&self) -> Compression
pub fn attr<S: AsRef<str>>( &self, metadata: &BoxMetadata, key: S, ) -> Option<&[u8]>
pub fn upcast(self) -> Record
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnwindSafe for FileRecord
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