#[repr(C)]pub struct JsonConfig {
pub max_depth: u32,
pub allow_trailing_commas: bool,
pub allow_comments: bool,
}
Expand description
Configures the JSON parser
Fields§
§max_depth: u32
Max depth for nested objects
allow_trailing_commas: bool
Allow trailing commas on objects and arrays
allow_comments: bool
Allow comments withing the Json
Trait Implementations§
Source§impl Clone for JsonConfig
impl Clone for JsonConfig
Source§fn clone(&self) -> JsonConfig
fn clone(&self) -> JsonConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for JsonConfig
impl Default for JsonConfig
impl Copy for JsonConfig
Auto Trait Implementations§
impl Freeze for JsonConfig
impl RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl UnwindSafe for JsonConfig
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