pub struct EntryView {Show 13 fields
pub compressed_size: u64,
pub depth_hint: usize,
pub enclosed_name: PathBuf,
pub encrypted: bool,
pub has_abs: bool,
pub has_parent_components: bool,
pub invalid_utf8: bool,
pub name_raw: Vec<u8>,
pub ratio: f64,
pub symlink: bool,
pub symlink_target: Option<String>,
pub uncompressed_size: u64,
pub unix_mode: Option<u32>,
}Expand description
A lightweight, precomputed view over a ZIP entry used by analysis handlers.
Fields§
§compressed_size: u64§depth_hint: usize§enclosed_name: PathBuf§encrypted: bool§has_abs: bool§has_parent_components: bool§invalid_utf8: bool§name_raw: Vec<u8>§ratio: f64§symlink: bool§symlink_target: Option<String>§uncompressed_size: u64§unix_mode: Option<u32>Implementations§
Source§impl EntryView
impl EntryView
Sourcepub fn from_entry<R: Read + Seek>(entry: ZipFile<'_, R>) -> Self
pub fn from_entry<R: Read + Seek>(entry: ZipFile<'_, R>) -> Self
Processes a ZipFile and extracts relevant metadata and properties into an EntryView for
easier management and inspection. It performs operations like determining the entry name,
checking for invalid UTF-8 in the file name, computing compression ratios, and identifying
symbolic links.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryView
impl RefUnwindSafe for EntryView
impl Send for EntryView
impl Sync for EntryView
impl Unpin for EntryView
impl UnsafeUnpin for EntryView
impl UnwindSafe for EntryView
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