#[cfg(feature ="gzip")]pubmodgzip;#[cfg(feature ="snappy")]pubmodsnappy;/// Compression types supported by kafka. The numeral values of this
/// enumeration correspond to the compression encoding in the
/// attributes of a Message in the protocol.
#[derive(Debug, Copy, Clone)]pubenumCompression{NONE=0,#[cfg(feature ="gzip")]GZIP=1,#[cfg(feature ="snappy")]SNAPPY=2,}implDefault forCompression{fndefault()->Self{Compression::NONE}}