pub trait ContentCompressor: Debug + Send + Sync { // Required method fn compress(&self, content: &str, target_bytes: usize) -> String; }
Pluggable strategy for compressing a single content string.
Compress content so its JSON-serialised form fits within target_bytes.
content
target_bytes