pub struct ParserConfig {
pub prefer_dmy: bool,
pub default_year: Option<i32>,
pub strict_mode: bool,
pub fuzzy_parsing: bool,
pub custom_patterns: Vec<String>,
pub timezone_strategy: TimezoneStrategy,
}
Expand description
Configuration options for the date parser
Fields§
§prefer_dmy: bool
Prefer DD/MM over MM/DD when ambiguous
default_year: Option<i32>
Default year when not specified
strict_mode: bool
Strict parsing (reject ambiguous dates)
fuzzy_parsing: bool
Enable fuzzy parsing for malformed input
custom_patterns: Vec<String>
Custom format patterns to try first
timezone_strategy: TimezoneStrategy
Timezone handling strategy
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