#[repr(u8)]pub enum TimeZone {
LowerZ = 0,
UpperZ = 1,
UpperO = 2,
LowerV = 3,
UpperV = 4,
LowerX = 5,
UpperX = 6,
}
Expand description
An enum for the possible symbols of a time zone field in a date pattern.
Variants§
LowerZ = 0
Field symbol for the specific non-location format of a time zone.
For example: “Pacific Standard Time”
This field symbol is represented by the character z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperZ = 1
Field symbol for any of: the ISO8601 basic format with hours, minutes and optional seconds fields, the long localized GMT format, or the ISO8601 extended format with hours, minutes and optional seconds fields.
This field symbol is represented by the character Z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperO = 2
Field symbol for the localized GMT format of a time zone.
For example: “GMT-07:00”
This field symbol is represented by the character O
in a date formatting pattern string.
For more details, see documentation on date field symbols.
LowerV = 3
Field symbol for the generic non-location format of a time zone.
For example: “Pacific Time”
This field symbol is represented by the character v
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperV = 4
Field symbol for any of: the time zone id, time zone exemplar city, or generic location format.
This field symbol is represented by the character V
in a date formatting pattern string.
For more details, see documentation on date field symbols.
LowerX = 5
Field symbol for either the ISO8601 basic format or ISO8601 extended format, with an optional ISO8601 UTC indicator Z
.
This field symbol is represented by the character x
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperX = 6
Field symbol for either the ISO8601 basic format or ISO8601 extended format. This does not allow an
optional ISO8601 UTC indicator Z
, whereas TimeZone::LowerX
allows the optional Z
.
This field symbol is represented by the character X
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TimeZone
impl<'de> Deserialize<'de> for TimeZone
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeZone, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeZone, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<TimeZone> for FieldSymbol
impl From<TimeZone> for FieldSymbol
source§fn from(input: TimeZone) -> FieldSymbol
fn from(input: TimeZone) -> FieldSymbol
source§impl Ord for TimeZone
impl Ord for TimeZone
source§impl PartialEq for TimeZone
impl PartialEq for TimeZone
source§impl PartialOrd for TimeZone
impl PartialOrd for TimeZone
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Yokeable<'a> for TimeZone
impl<'a> Yokeable<'a> for TimeZone
source§impl<'a> ZeroMapKV<'a> for TimeZone
impl<'a> ZeroMapKV<'a> for TimeZone
impl Copy for TimeZone
impl Eq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Freeze for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnwindSafe for TimeZone
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
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>
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>
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