#[repr(u8)]pub enum ZlibLevel {
ZNoCompression = 0,
ZBestSpeed = 1,
ZLevel2 = 2,
ZLevel3 = 3,
ZLevel4 = 4,
ZLevel5 = 5,
ZLevel6 = 6,
ZLevel7 = 7,
ZLevel8 = 8,
ZBestCompression = 9,
}
Expand description
Zlib compression level.
The level ranges from 0, no compression, to 9, best compression.
Variants§
ZNoCompression = 0
ZBestSpeed = 1
ZLevel2 = 2
ZLevel3 = 3
ZLevel4 = 4
ZLevel5 = 5
ZLevel6 = 6
ZLevel7 = 7
ZLevel8 = 8
ZBestCompression = 9
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZlibLevel
impl<'de> Deserialize<'de> for ZlibLevel
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 JsonSchema for ZlibLevel
impl JsonSchema for ZlibLevel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreimpl Copy for ZlibLevel
Auto Trait Implementations§
impl Freeze for ZlibLevel
impl RefUnwindSafe for ZlibLevel
impl Send for ZlibLevel
impl Sync for ZlibLevel
impl Unpin for ZlibLevel
impl UnwindSafe for ZlibLevel
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)