pub struct Settings {Show 28 fields
pub date_order: Option<DateOrder>,
pub strict_date_order: StrictDateOrder,
pub prefer_locale_date_order: bool,
pub prefer_dates_from: PreferDatesFrom,
pub prefer_day_of_month: PreferDayOfMonth,
pub prefer_month_of_year: PreferMonthOfYear,
pub strict_parsing: bool,
pub relative_base: Option<NaiveDateTime>,
pub timezone: Option<String>,
pub to_timezone: Option<String>,
pub return_as_timezone_aware: Option<bool>,
pub timezone_abbreviations: FxHashMap<String, String>,
pub languages: Option<Vec<String>>,
pub default_languages: Vec<String>,
pub use_given_language_order: bool,
pub date_formats: Option<Vec<String>>,
pub require_parts: Vec<DatePart>,
pub normalize: bool,
pub return_time_as_period: bool,
pub return_time_span: bool,
pub default_start_of_week: StartOfWeek,
pub default_days_in_month: u32,
pub ignore_surrounding_text: bool,
pub skip_tokens: Vec<String>,
pub parsers: Option<Vec<ParserKind>>,
pub region: Option<String>,
pub parts_of_day: PartsOfDay,
pub cache_size_limit: usize,
}Fields§
§date_order: Option<DateOrder>§strict_date_order: StrictDateOrder§prefer_locale_date_order: bool§prefer_dates_from: PreferDatesFrom§prefer_day_of_month: PreferDayOfMonth§prefer_month_of_year: PreferMonthOfYear§strict_parsing: bool§relative_base: Option<NaiveDateTime>§timezone: Option<String>§to_timezone: Option<String>§return_as_timezone_aware: Option<bool>§timezone_abbreviations: FxHashMap<String, String>§languages: Option<Vec<String>>§default_languages: Vec<String>§use_given_language_order: bool§date_formats: Option<Vec<String>>§require_parts: Vec<DatePart>§normalize: bool§return_time_as_period: bool§return_time_span: bool§default_start_of_week: StartOfWeek§default_days_in_month: u32§ignore_surrounding_text: bool§skip_tokens: Vec<String>§parsers: Option<Vec<ParserKind>>§region: Option<String>§parts_of_day: PartsOfDay§cache_size_limit: usizeImplementations§
Source§impl Settings
impl Settings
pub fn effective_base(&self) -> NaiveDateTime
pub fn allows_parser(&self, kind: ParserKind) -> bool
pub fn effective_date_order(&self, fallback: DateOrder) -> DateOrder
Trait Implementations§
Auto Trait Implementations§
impl Forget for Settings
impl Freeze for Settings
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more