pub enum Compress {
None,
General {
algorithm: u8,
level: u8,
},
Dict(Dictionary),
}
Expand description
Compression settings for Documents and Entries.
Variants§
None
Don’t compress by default.
General
Compress using the given algorithm identifier and compression level.
Dict(Dictionary)
Compress using the provided dictionary object
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Compress
impl<'de> Deserialize<'de> for Compress
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 RefUnwindSafe for Compress
impl Send for Compress
impl Sync for Compress
impl Unpin for Compress
impl UnwindSafe for Compress
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