Enum fog_pack::schema::Compress[][src]

pub enum Compress {
    None,
    General {
        algorithm: u8,
        level: u8,
    },
    Dict(Dictionary),
}

Compression settings for Documents and Entries.

Variants

None

Don’t compress by default.

General

Compress using the given algorithm identifier and compression level.

Fields of General

algorithm: u8level: u8

Compress using the provided dictionary object

Implementations

impl Compress[src]

pub fn new_zstd_general(level: u8) -> Self[src]

Create a new general Zstd Compression setting.

pub fn new_zstd_dict(level: u8, dict: Vec<u8>) -> Self[src]

Create a new ZStandard dictionary with the given compression level.

Trait Implementations

impl Clone for Compress[src]

impl Debug for Compress[src]

impl Default for Compress[src]

impl<'de> Deserialize<'de> for Compress[src]

impl Serialize for Compress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,