pub struct GzipConfig {
pub max_decompressed_size: u64,
pub max_input_size: u64,
pub compression_level: Option<u8>,
}Fields§
§max_decompressed_size: u64§max_input_size: u64Maximum materialized input size accepted by marshal (DoS cap, R3-L1).
compression_level: Option<u8>Deflate level 0-9; None uses the flate2 default (level 6).
Trait Implementations§
Source§impl Clone for GzipConfig
impl Clone for GzipConfig
Source§fn clone(&self) -> GzipConfig
fn clone(&self) -> GzipConfig
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 GzipConfig
impl Debug for GzipConfig
Source§impl Default for GzipConfig
impl Default for GzipConfig
Source§impl<'de> Deserialize<'de> for GzipConfigwhere
GzipConfig: Default,
impl<'de> Deserialize<'de> for GzipConfigwhere
GzipConfig: 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 GzipConfig
impl RefUnwindSafe for GzipConfig
impl Send for GzipConfig
impl Sync for GzipConfig
impl Unpin for GzipConfig
impl UnsafeUnpin for GzipConfig
impl UnwindSafe for GzipConfig
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