#[non_exhaustive]pub enum JsonStyle {
Pretty,
Compact,
}Expand description
JSON output layout for JsonCodec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pretty
Human-readable, indented output.
Compact
Minimal single-line output for machine streams (newline-delimited JSON, length-framed payloads) where size and one-value-per-line matter.
Trait Implementations§
impl Copy for JsonStyle
impl Eq for JsonStyle
impl StructuralPartialEq for JsonStyle
Auto Trait Implementations§
impl Freeze for JsonStyle
impl RefUnwindSafe for JsonStyle
impl Send for JsonStyle
impl Sync for JsonStyle
impl Unpin for JsonStyle
impl UnsafeUnpin for JsonStyle
impl UnwindSafe for JsonStyle
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