pub struct DateTimeFormatOptions {Show 17 fields
pub date_style: Option<Style>,
pub time_style: Option<Style>,
pub fractional_second_digits: Option<NonZeroU8>,
pub calendar: Option<Calendar>,
pub day_period: Option<DayPeriod>,
pub numbering_system: Option<NumberingSystem>,
pub time_zone: Option<TimeZone>,
pub hour_cycle: Option<HourCycle>,
pub weekday: Option<Weekday>,
pub era: Option<Era>,
pub year: Option<DisplaySize>,
pub month: Option<Month>,
pub day: Option<DisplaySize>,
pub hour: Option<DisplaySize>,
pub minute: Option<DisplaySize>,
pub second: Option<DisplaySize>,
pub time_zone_style: Option<TimeZoneStyle>,
}
Fields§
§date_style: Option<Style>
The formatting style to use for formatting the date part.
If date_style
or time_style
are set, none of the other options
are acceptable.
time_style: Option<Style>
The formatting style to use for formatting the time part.
If date_style
or time_style
are set, none of the other options
are acceptable.
fractional_second_digits: Option<NonZeroU8>
The number of fractional seconds to apply when calling format
.
Valid values are 1 to 3.
calendar: Option<Calendar>
If left unspecified, the locale default is used.
day_period: Option<DayPeriod>
If left unspecified, the locale default is used.
numbering_system: Option<NumberingSystem>
If left unspecified, the locale default is used.
time_zone: Option<TimeZone>
If left unspecified, the locale default is used.
hour_cycle: Option<HourCycle>
If left unspecified, the locale default is used.
weekday: Option<Weekday>
If left unspecified, the locale default is used.
era: Option<Era>
If left unspecified, the locale default is used.
year: Option<DisplaySize>
If left unspecified, the locale default is used.
month: Option<Month>
If left unspecified, the locale default is used.
day: Option<DisplaySize>
If left unspecified, the locale default is used.
hour: Option<DisplaySize>
If left unspecified, the locale default is used.
minute: Option<DisplaySize>
If left unspecified, the locale default is used.
second: Option<DisplaySize>
If left unspecified, the locale default is used.
time_zone_style: Option<TimeZoneStyle>
If left unspecified, the locale default is used.
Trait Implementations§
source§impl Clone for DateTimeFormatOptions
impl Clone for DateTimeFormatOptions
source§fn clone(&self) -> DateTimeFormatOptions
fn clone(&self) -> DateTimeFormatOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DateTimeFormatOptions
impl Debug for DateTimeFormatOptions
source§impl Default for DateTimeFormatOptions
impl Default for DateTimeFormatOptions
source§impl PartialEq for DateTimeFormatOptions
impl PartialEq for DateTimeFormatOptions
source§fn eq(&self, other: &DateTimeFormatOptions) -> bool
fn eq(&self, other: &DateTimeFormatOptions) -> bool
self
and other
values to be equal, and is used
by ==
.