Struct metrix::snapshot::JsonConfig
[−]
[src]
pub struct JsonConfig { pub make_booleans_ints: bool, pub pretty: Option<u16>, }
Fields
make_booleans_ints: bool
Serialize true
as 1
and false
as 0
pretty: Option<u16>
Configure pretty JSON output.
Produce pretty JSON with the given indentation if Some(indentation)
.
If None
compact JSON is generated.
Trait Implementations
impl Default for JsonConfig
[src]
fn default() -> JsonConfig
[src]
Returns the "default value" for a type. Read more