pub struct ParserConfig {
pub strip_markdown: bool,
pub fix_trailing_commas: bool,
pub fix_quotes: bool,
pub fix_unquoted_keys: bool,
pub fix_control_chars: bool,
pub remove_bom: bool,
pub allow_lenient_parsing: bool,
pub min_confidence: f32,
}Expand description
Parser configuration options.
Fields§
§strip_markdown: boolEnable markdown stripping (json ... )
fix_trailing_commas: boolEnable trailing comma fixes
fix_quotes: boolEnable quote normalization (single → double)
fix_unquoted_keys: boolEnable unquoted key fixes ({key: “value”} → {“key”: “value”})
fix_control_chars: boolEnable control character fixes
remove_bom: boolEnable BOM removal
allow_lenient_parsing: boolEnable lenient parsing (state machine for incomplete JSON)
min_confidence: f32Minimum confidence threshold (0.0-1.0)
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
Returns a duplicate 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 Debug for ParserConfig
impl Debug for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin 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