#[non_exhaustive]pub struct JsonPrintOptions {Show 15 fields
pub indent: Indent,
pub array_begin: usize,
pub array_end: usize,
pub array_empty: usize,
pub array_before_comma: usize,
pub array_after_comma: usize,
pub array_limit: Option<Limit>,
pub object_begin: usize,
pub object_end: usize,
pub object_empty: usize,
pub object_before_comma: usize,
pub object_after_comma: usize,
pub object_before_colon: usize,
pub object_after_colon: usize,
pub object_limit: Option<Limit>,
}Expand description
Print options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.indent: IndentIndentation string.
array_begin: usizeString added after [.
array_end: usizeString added before ].
array_empty: usizeNumber of spaces inside an inlined empty array.
array_before_comma: usizeNumber of spaces before a comma in an array.
array_after_comma: usizeNumber of spaces after a comma in an array.
array_limit: Option<Limit>Limit after which an array is expanded.
object_begin: usizeString added after {.
object_end: usizeString added before }.
object_empty: usizeNumber of spaces inside an inlined empty object.
object_before_comma: usizeNumber of spaces before a comma in an object.
object_after_comma: usizeNumber of spaces after a comma in an object.
object_before_colon: usizeNumber of spaces before a colon in an object.
object_after_colon: usizeNumber of spaces after a colon in an object.
object_limit: Option<Limit>Limit after which an array is expanded.
Implementations§
Trait Implementations§
Source§impl Clone for JsonPrintOptions
impl Clone for JsonPrintOptions
Source§impl Debug for JsonPrintOptions
impl Debug for JsonPrintOptions
impl Eq for JsonPrintOptions
Source§impl Hash for JsonPrintOptions
impl Hash for JsonPrintOptions
Source§impl Ord for JsonPrintOptions
impl Ord for JsonPrintOptions
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for JsonPrintOptions
impl PartialEq for JsonPrintOptions
Source§impl PartialOrd for JsonPrintOptions
impl PartialOrd for JsonPrintOptions
impl StructuralPartialEq for JsonPrintOptions
Auto Trait Implementations§
impl Freeze for JsonPrintOptions
impl RefUnwindSafe for JsonPrintOptions
impl Send for JsonPrintOptions
impl Sync for JsonPrintOptions
impl Unpin for JsonPrintOptions
impl UnsafeUnpin for JsonPrintOptions
impl UnwindSafe for JsonPrintOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> JsonAt for T
impl<T> JsonAt for T
Source§fn json_at<F>(
self,
location: impl Into<Vec<JsonBacktraceFrame<F>>>,
) -> JsonLocated<T, F>
fn json_at<F>( self, location: impl Into<Vec<JsonBacktraceFrame<F>>>, ) -> JsonLocated<T, F>
Pairs
self with location.