Skip to main content

json_string

Function json_string 

Source
pub fn json_string<T: DisplayJson>(t: &T) -> String
Expand description

Render a type t: T as ExplainFormat::Json.

ยงPanics

Panics if the DisplayJson::to_serde_value or the subsequent serde_json::to_string_pretty call return a serde_json::Error.