pub struct ParseOptions {
pub allow_comments: bool,
pub allow_loose_object_property_names: bool,
pub allow_trailing_commas: bool,
pub allow_missing_commas: bool,
pub allow_single_quoted_strings: bool,
pub allow_hexadecimal_numbers: bool,
pub allow_unary_plus_numbers: bool,
pub allow_bare_decimal_point_numbers: bool,
pub allow_non_finite_numbers: bool,
pub allow_extended_string_escapes: bool,
}Expand description
Options for parsing.
Fields§
§allow_comments: boolAllow comments (defaults to true).
allow_loose_object_property_names: boolAllow words and numbers as object property names (defaults to true).
allow_trailing_commas: boolAllow trailing commas on object literal and array literal values (defaults to true).
allow_missing_commas: boolAllow missing commas between object properties or array elements (defaults to true).
allow_single_quoted_strings: boolAllow single-quoted strings (defaults to true).
allow_hexadecimal_numbers: boolAllow hexadecimal numbers like 0xFF (defaults to true).
allow_unary_plus_numbers: boolAllow unary plus sign on numbers like +42 (defaults to true).
allow_bare_decimal_point_numbers: boolAllow a leading or trailing decimal point on numbers like .5 or 5. (defaults to true).
allow_non_finite_numbers: boolAllow the numbers Infinity, -Infinity and NaN (defaults to true).
allow_extended_string_escapes: boolAllow JSON5 string escapes like \x41, \v and line continuations (defaults to true).
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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