pub fn default(f: &mut Formatter<'_>, value: &Value) -> Result
Expand description
The default value formatter.
Values are formatted as follows:
Value::None
: empty stringValue::Bool
:true
orfalse
Value::Integer
: the integer formatted usingDisplay
Value::Float
: the float formatted usingDisplay
Value::String
: the string, unescaped
Errors if the value is a Value::List
or Value::Map
.