pub struct PrettyFormatOptions {Show 13 fields
pub call_to_json: Option<bool>,
pub escape_regex: Option<bool>,
pub escape_string: Option<bool>,
pub highlight: Option<bool>,
pub indent: Option<usize>,
pub max_depth: Option<usize>,
pub max_width: Option<usize>,
pub min: Option<bool>,
pub print_basic_prototype: Option<bool>,
pub print_function_name: Option<bool>,
pub theme: Option<Theme>,
pub compare_keys: Option<Rc<dyn Fn(String, String) -> usize>>,
pub plugins: Option<Vec<Rc<dyn Plugin>>>,
}Fields§
§call_to_json: Option<bool>§escape_regex: Option<bool>§escape_string: Option<bool>§highlight: Option<bool>§indent: Option<usize>§max_depth: Option<usize>§max_width: Option<usize>§min: Option<bool>§print_basic_prototype: Option<bool>§print_function_name: Option<bool>§theme: Option<Theme>§compare_keys: Option<Rc<dyn Fn(String, String) -> usize>>§plugins: Option<Vec<Rc<dyn Plugin>>>Implementations§
Source§impl PrettyFormatOptions
impl PrettyFormatOptions
pub fn call_to_json(self, value: bool) -> Self
pub fn escape_regex(self, value: bool) -> Self
pub fn escape_string(self, value: bool) -> Self
pub fn highlight(self, value: bool) -> Self
pub fn indent(self, value: usize) -> Self
pub fn max_depth(self, value: usize) -> Self
pub fn max_width(self, value: usize) -> Self
pub fn min(self, value: bool) -> Self
pub fn print_basic_prototype(self, value: bool) -> Self
pub fn print_function_name(self, value: bool) -> Self
pub fn theme(self, value: Theme) -> Self
pub fn compare_keys(self, value: Rc<dyn Fn(String, String) -> usize>) -> Self
pub fn plugins(self, value: Vec<Rc<dyn Plugin>>) -> Self
Trait Implementations§
Source§impl Default for PrettyFormatOptions
impl Default for PrettyFormatOptions
Source§fn default() -> PrettyFormatOptions
fn default() -> PrettyFormatOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrettyFormatOptions
impl !RefUnwindSafe for PrettyFormatOptions
impl !Send for PrettyFormatOptions
impl !Sync for PrettyFormatOptions
impl Unpin for PrettyFormatOptions
impl !UnwindSafe for PrettyFormatOptions
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