#[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§
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