pub struct JsonConfig {
pub make_booleans_ints: bool,
pub pretty: Option<u16>,
}Fields§
§make_booleans_ints: boolSerialize 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§
Source§impl Default for JsonConfig
impl Default for JsonConfig
Source§fn default() -> JsonConfig
fn default() -> JsonConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JsonConfig
impl RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl UnsafeUnpin for JsonConfig
impl UnwindSafe for JsonConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more