pub struct TarGzConfig {
pub max_decompressed_size: u64,
pub max_input_size: u64,
pub allow_multi_entry: bool,
pub compression_level: Option<u8>,
}Fields§
§max_decompressed_size: u64Cap on every byte the gzip decoder emits during unmarshal — headers,
padding, and skipped entries included, not only the selected payload.
max_input_size: u64Maximum materialized input size accepted by marshal (DoS cap, R3-L1).
allow_multi_entry: boolTAR entry policy: when false, archives with more than one regular file are rejected instead of returning only the first.
compression_level: Option<u8>Deflate level 0-9; None uses the flate2 default (level 6).
Trait Implementations§
Source§impl Clone for TarGzConfig
impl Clone for TarGzConfig
Source§fn clone(&self) -> TarGzConfig
fn clone(&self) -> TarGzConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TarGzConfig
impl Debug for TarGzConfig
Source§impl Default for TarGzConfig
impl Default for TarGzConfig
Source§impl<'de> Deserialize<'de> for TarGzConfigwhere
TarGzConfig: Default,
impl<'de> Deserialize<'de> for TarGzConfigwhere
TarGzConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TarGzConfig
impl RefUnwindSafe for TarGzConfig
impl Send for TarGzConfig
impl Sync for TarGzConfig
impl Unpin for TarGzConfig
impl UnsafeUnpin for TarGzConfig
impl UnwindSafe for TarGzConfig
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