pub struct ZipLimits {
pub max_entries: usize,
pub max_entry_bytes: u64,
pub max_total_bytes: u64,
pub max_ratio: u64,
}Expand description
Limits applied while extracting an office ZIP container.
Fields§
§max_entries: usizeMaximum ZIP entries, including directories.
max_entry_bytes: u64Maximum decompressed bytes retained for one file entry.
max_total_bytes: u64Maximum decompressed bytes retained across all file entries.
max_ratio: u64Maximum declared uncompressed-to-compressed ratio for one file entry.
Implementations§
Trait Implementations§
impl Copy for ZipLimits
impl Eq for ZipLimits
impl StructuralPartialEq for ZipLimits
Auto Trait Implementations§
impl Freeze for ZipLimits
impl RefUnwindSafe for ZipLimits
impl Send for ZipLimits
impl Sync for ZipLimits
impl Unpin for ZipLimits
impl UnsafeUnpin for ZipLimits
impl UnwindSafe for ZipLimits
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.