pub enum JsonIndent {
Compact,
Spaces(usize),
Custom(String),
}Expand description
Indentation style for JSON output.
Matches Python rich’s indent parameter which can be None, int, or str.
Variants§
Compact
Compact output with no indentation or newlines
Spaces(usize)
Number of spaces for indentation
Custom(String)
Custom string for indentation (e.g., tab “\t”)
Trait Implementations§
Source§impl Clone for JsonIndent
impl Clone for JsonIndent
Source§fn clone(&self) -> JsonIndent
fn clone(&self) -> JsonIndent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonIndent
impl Debug for JsonIndent
Source§impl Default for JsonIndent
impl Default for JsonIndent
Source§impl From<&str> for JsonIndent
impl From<&str> for JsonIndent
Auto Trait Implementations§
impl Freeze for JsonIndent
impl RefUnwindSafe for JsonIndent
impl Send for JsonIndent
impl Sync for JsonIndent
impl Unpin for JsonIndent
impl UnsafeUnpin for JsonIndent
impl UnwindSafe for JsonIndent
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