#[repr(C)]pub struct JsonConfig {
pub max_depth: u32,
pub recover_from_errors: bool,
}
Expand description
Configures the JSON parser
Fields§
§max_depth: u32
Max depth for nested objects
recover_from_errors: bool
Recover from errors. For example, trailing commas on objects are not allowed, but this flag makes the parser skip them.
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