reth_static_file_types/
compression.rs

1use strum::AsRefStr;
2
3/// Static File compression types.
4#[derive(Debug, Copy, Clone, Default, AsRefStr)]
5#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
6pub enum Compression {
7    /// LZ4 compression algorithm.
8    #[strum(serialize = "lz4")]
9    Lz4,
10    /// Zstandard (Zstd) compression algorithm.
11    #[strum(serialize = "zstd")]
12    Zstd,
13    /// Zstandard (Zstd) compression algorithm with a dictionary.
14    #[strum(serialize = "zstd-dict")]
15    ZstdWithDictionary,
16    /// No compression.
17    #[strum(serialize = "uncompressed")]
18    #[default]
19    Uncompressed,
20}