Skip to main content

gzip_data

Function gzip_data 

Source
pub fn gzip_data<T>(data: &T, level: u8) -> Result<Bytes, Error>
where T: Serialize,
Expand description

Serializes the given data using JSON and compresses it with gzip using the specified compression level.