pub enum CompressionLevel {
Fastest,
Best,
Default,
}
Available on crate features
compression
or compression-gzip
or compression-brotli
or compression-zstd
or compression-deflate
only.Expand description
Compression level settings.
Variants§
Fastest
Fastest execution at the expense of larger file sizes.
Best
Smallest file size but potentially slow.
Default
Algorithm-specific default compression level setting.
Trait Implementations§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
Source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 CompressionLevel
impl Debug for CompressionLevel
Source§impl<'de> Deserialize<'de> for CompressionLevel
impl<'de> Deserialize<'de> for CompressionLevel
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
Source§impl Serialize for CompressionLevel
impl Serialize for CompressionLevel
Source§impl ValueEnum for CompressionLevel
impl ValueEnum for CompressionLevel
impl Copy for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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