servicepoint/crates/servicepoint_binding_uniffi/src/compression_code.rs
Vinzenz Schroeter 03aa432655 add uniffi compression code, clone
add uniffi clone
2024-11-13 19:59:55 +01:00

15 lines
358 B
Rust

#[repr(u16)]
#[derive(Debug, Clone, Copy, PartialEq, uniffi::Enum)]
pub enum CompressionCode {
/// no compression
Uncompressed = 0x0,
/// compress using flate2 with zlib header
Zlib = 0x677a,
/// compress using bzip2
Bzip2 = 0x627a,
/// compress using lzma
Lzma = 0x6c7a,
/// compress using Zstandard
Zstd = 0x7a73,
}