pub struct ParseOptions {
pub formats: Vec<String>,
pub languages: Option<Vec<&'static LanguageData>>,
pub default_tz: TzOffset,
pub base_time: Option<RosettaDateTime>,
}Expand description
Options that control the parsing behaviour.
Fields§
§formats: Vec<String>Explicit format strings to try first (strftime for chrono, time syntax
for the time backend).
languages: Option<Vec<&'static LanguageData>>Languages to try for NLP parsing. None means auto-detect / try all.
default_tz: TzOffsetDefault timezone when none is found in the input string.
base_time: Option<RosettaDateTime>Base time for resolving relative expressions. None → use current time.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParseOptions
impl Debug for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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