Skip to main content

brief

Function brief 

Source
fn brief(v: &Value) -> String
Expand description

Render a JSON value compactly enough for a log line.

The budget is bytes, and the cut is taken at a character boundary — this renders a value the client sent, so it is arbitrary UTF-8 and &s[..40] would panic on the first request whose 40th byte fell inside a character. See crate::utils::text.