Enum icu::datetime::options::components::TimeZoneName
source · #[non_exhaustive]
pub enum TimeZoneName {
ShortSpecific,
LongSpecific,
GmtOffset,
ShortGeneric,
LongGeneric,
}
Expand description
Options for displaying a time zone for the components::
Bag
.
Note that the initial implementation is focusing on only supporting ECMA-402 compatible options.
🚧 This code is experimental; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. It can be enabled with the "experimental" Cargo feature
of the icu meta-crate. Use with caution.
#1317
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ShortSpecific
Short localized form, without the location. (e.g.: PST, GMT-8)
LongSpecific
Long localized form, without the location (e.g., Pacific Standard Time, Nordamerikanische Westküsten-Normalzeit)
GmtOffset
Localized GMT format, in the locale’s preferred hour format. (e.g., GMT-0800),
ShortGeneric
Short generic non-location format (e.g.: PT, Los Angeles, Zeit).
LongGeneric
Long generic non-location format (e.g.: Pacific Time, Nordamerikanische Westküstenzeit),
Trait Implementations§
source§impl Clone for TimeZoneName
impl Clone for TimeZoneName
source§fn clone(&self) -> TimeZoneName
fn clone(&self) -> TimeZoneName
Returns a copy of the value. Read more
1.0.0 · 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 TimeZoneName
impl Debug for TimeZoneName
source§impl<'de> Deserialize<'de> for TimeZoneName
impl<'de> Deserialize<'de> for TimeZoneName
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZoneName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TimeZoneName, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TimeZoneName> for Field
impl From<TimeZoneName> for Field
source§fn from(time_zone_name: TimeZoneName) -> Field
fn from(time_zone_name: TimeZoneName) -> Field
Converts to this type from the input type.
source§impl PartialEq<TimeZoneName> for TimeZoneName
impl PartialEq<TimeZoneName> for TimeZoneName
source§fn eq(&self, other: &TimeZoneName) -> bool
fn eq(&self, other: &TimeZoneName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TimeZoneName
impl Serialize for TimeZoneName
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,
Serialize this value into the given Serde serializer. Read more