pub struct JsonOptions {
pub indent: JsonIndent,
pub highlight: bool,
pub sort_keys: bool,
pub ensure_ascii: bool,
pub no_wrap: bool,
}Expand description
Options for JSON rendering, matching Python rich’s JSON class.
Fields§
§indent: JsonIndentIndentation style (default: 2 spaces)
highlight: boolEnable syntax highlighting (default: true)
sort_keys: boolSort object keys alphabetically (default: false)
ensure_ascii: boolEscape all non-ASCII characters to \uXXXX (default: false)
no_wrap: boolDisable word wrapping (default: true, matching Python rich)
Trait Implementations§
Source§impl Clone for JsonOptions
impl Clone for JsonOptions
Source§fn clone(&self) -> JsonOptions
fn clone(&self) -> JsonOptions
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 JsonOptions
impl Debug for JsonOptions
Auto Trait Implementations§
impl Freeze for JsonOptions
impl RefUnwindSafe for JsonOptions
impl Send for JsonOptions
impl Sync for JsonOptions
impl Unpin for JsonOptions
impl UnsafeUnpin for JsonOptions
impl UnwindSafe for JsonOptions
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