pub struct CompressedFileVariant {
pub file_path: PathBuf,
pub metadata: Metadata,
pub encoding: ContentCoding,
}
Available on crate features
compression
or compression-gzip
or compression-brotli
or compression-zstd
or compression-deflate
only.Expand description
It defines the pre-compressed file variant metadata of a particular file path.
Fields§
§file_path: PathBuf
Current file path.
metadata: Metadata
The metadata of the current file.
encoding: ContentCoding
The content encoding based on the file extension.
Auto Trait Implementations§
impl Freeze for CompressedFileVariant
impl RefUnwindSafe for CompressedFileVariant
impl Send for CompressedFileVariant
impl Sync for CompressedFileVariant
impl Unpin for CompressedFileVariant
impl UnwindSafe for CompressedFileVariant
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