[][src]Struct metrix::snapshot::JsonConfig

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,