pub struct OpenLimits {
pub outer_input_bytes: u64,
pub archive_entries: u64,
pub entry_declared_bytes: u64,
pub entry_actual_bytes: u64,
pub aggregate_declared_bytes: u64,
pub aggregate_actual_bytes: u64,
pub compression_ratio: u64,
pub compression_ratio_floor_bytes: u64,
pub xml_bytes: u64,
pub retained_package_bytes: u64,
}Expand description
Finite limits applied to one workbook-open operation.
Fields§
§outer_input_bytes: u64Maximum bytes in the outer ZIP or container input.
archive_entries: u64Maximum central-directory entry count.
entry_declared_bytes: u64Maximum size declared by one archive entry.
entry_actual_bytes: u64Maximum bytes actually read from one archive entry.
aggregate_declared_bytes: u64Maximum sum of archive entry declared sizes.
aggregate_actual_bytes: u64Maximum cumulative bytes actually read from archive entries.
compression_ratio: u64Maximum uncompressed-to-compressed ratio for one entry.
compression_ratio_floor_bytes: u64Decompressed entry size at or below which the ratio is not enforced.
Above it, the ratio applies to the whole entry. Non-empty entries with
zero compressed bytes are always rejected. 0 enforces every entry.
xml_bytes: u64Maximum bytes actually read from one XML part.
retained_package_bytes: u64Maximum raw package bytes retained by the resulting workbook.
Implementations§
Source§impl OpenLimits
impl OpenLimits
Sourcepub const fn hard_ceiling() -> OpenLimits
pub const fn hard_ceiling() -> OpenLimits
Largest supported finite values. These ceilings cannot be disabled.
Trait Implementations§
Source§impl Clone for OpenLimits
impl Clone for OpenLimits
Source§fn clone(&self) -> OpenLimits
fn clone(&self) -> OpenLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OpenLimits
Source§impl Debug for OpenLimits
impl Debug for OpenLimits
Source§impl Default for OpenLimits
impl Default for OpenLimits
Source§fn default() -> OpenLimits
fn default() -> OpenLimits
impl Eq for OpenLimits
Source§impl PartialEq for OpenLimits
impl PartialEq for OpenLimits
impl StructuralPartialEq for OpenLimits
Auto Trait Implementations§
impl Freeze for OpenLimits
impl RefUnwindSafe for OpenLimits
impl Send for OpenLimits
impl Sync for OpenLimits
impl Unpin for OpenLimits
impl UnsafeUnpin for OpenLimits
impl UnwindSafe for OpenLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.