pub struct ParserConfig {
pub mode: ParsingMode,
pub validate_checksums: bool,
pub normalize_values: bool,
pub require_checksums: bool,
pub max_nesting_depth: Option<usize>,
pub text_input_mode: TextInputMode,
pub structural_limits: Option<StructuralLimits>,
pub semantic_dictionary: Option<SemanticDictionary>,
}Expand description
Parser configuration
Fields§
§mode: ParsingModeParsing mode (strict or loose)
validate_checksums: boolWhether to validate checksums when present (v0.3 feature)
normalize_values: boolWhether to normalize text values into numeric/boolean types when possible
require_checksums: boolWhether to require checksums on all fields (v0.3 feature)
max_nesting_depth: Option<usize>Optional maximum nesting depth; if None, no limit is enforced
text_input_mode: TextInputModeHow to handle incoming text before lexing/parsing
structural_limits: Option<StructuralLimits>Optional structural limits (depth/field counts/string lengths)
semantic_dictionary: Option<SemanticDictionary>Optional semantic dictionary for equivalence normalization
Implementations§
Source§impl ParserConfig
impl ParserConfig
Sourcepub fn with_structural_limits(self, limits: StructuralLimits) -> Self
pub fn with_structural_limits(self, limits: StructuralLimits) -> Self
Applies structural limits to the parser.
Sourcepub fn with_semantic_dictionary(self, dict: SemanticDictionary) -> Self
pub fn with_semantic_dictionary(self, dict: SemanticDictionary) -> Self
Attaches a semantic dictionary for equivalence normalization.
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 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