Skip to main content

value_to_json

Function value_to_json 

Source
pub fn value_to_json(value: &Value, capture: ValueCapture) -> String
Expand description

Renders one Value in the trace’s value encoding, honouring capture.

ValueCapture::Redacted replaces the whole value, not only its leaves: a redaction that kept the shape of a struct would still describe the secret it was hiding.