pub struct ZipSummaryDetails {
pub file_type_counts: HashMap<FileTypeUnion, usize>,
pub unknown_magic_counts: HashMap<Vec<u8>, (usize, String)>,
pub total_files: usize,
}Expand description
Summary of a Zip archive’s contents
Fields§
§file_type_counts: HashMap<FileTypeUnion, usize>Known file types and their occurrences in the Zip archive
unknown_magic_counts: HashMap<Vec<u8>, (usize, String)>Unknown file types where their first few bytes are captured and the result from libmagic
total_files: usizeTotal number of files in the Zip archive
Auto Trait Implementations§
impl Freeze for ZipSummaryDetails
impl RefUnwindSafe for ZipSummaryDetails
impl Send for ZipSummaryDetails
impl Sync for ZipSummaryDetails
impl Unpin for ZipSummaryDetails
impl UnsafeUnpin for ZipSummaryDetails
impl UnwindSafe for ZipSummaryDetails
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more