Struct json_syntax::print::Options
source · #[non_exhaustive]pub struct Options {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 Ord for Options
impl Ord for Options
source§impl PartialEq<Options> for Options
impl PartialEq<Options> for Options
source§impl PartialOrd<Options> for Options
impl PartialOrd<Options> for Options
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more