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 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 moreimpl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.