Function rings_node::prelude::message::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.