Function rings_core::message::gzip_data
source · pub fn gzip_data<T>(data: &T, level: u8) -> Result<Bytes>where
T: Serialize,Expand description
Serializes the given data using JSON and compresses it with gzip using the specified compression level.