Skip to main content

to_string_pretty

Function to_string_pretty 

Source
pub fn to_string_pretty<T: Serialize>(envelope: &JsonEnvelope<T>) -> String
Expand description

Encode an envelope as JSON. Uses pretty form so humans tailing the terminal can still read it; agents jq-pipe either form.