#[repr(u8)]pub enum TimeZone {
SpecificNonLocation = 0,
LocalizedOffset = 1,
GenericNonLocation = 2,
Location = 3,
Iso = 4,
IsoWithZ = 5,
}
Expand description
An enum for the possible symbols of a time zone field in a date pattern.
Variants§
SpecificNonLocation = 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.
LocalizedOffset = 1
Field symbol for the localized offset 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.
GenericNonLocation = 2
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.
Location = 3
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.
Iso = 4
Field symbol for either the ISO-8601 basic format or ISO-8601 extended format. This does not use an
optional ISO-8601 UTC indicator Z
, whereas TimeZone::IsoWithZ
produces 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.
IsoWithZ = 5
Field symbol for either the ISO-8601 basic format or ISO-8601 extended format, with the ISO-8601 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.
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 PartialOrd for TimeZone
impl PartialOrd for TimeZone
source§impl Serialize for TimeZone
impl Serialize for TimeZone
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<'a> Yokeable<'a> for TimeZone
impl<'a> Yokeable<'a> for TimeZone
source§type Output = TimeZone
type Output = TimeZone
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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