pub struct ParserConfig {
pub buffer_size: usize,
pub timeout: Option<Duration>,
pub max_buffer_size: usize,
pub fallback_parser: Option<Box<dyn Fn(&str) -> Result<Value, JsonParserError> + Send + Sync>>,
}Expand description
Configuration for the JSON parser
Fields§
§buffer_size: usize§timeout: Option<Duration>§max_buffer_size: usize§fallback_parser: Option<Box<dyn Fn(&str) -> Result<Value, JsonParserError> + Send + Sync>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserConfig
impl !RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl !UnwindSafe for ParserConfig
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