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.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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
sourceimpl Clone for TimeZoneName
impl Clone for TimeZoneName
sourcefn clone(&self) -> TimeZoneName
fn clone(&self) -> TimeZoneName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimeZoneName
impl Debug for TimeZoneName
sourceimpl<'de> Deserialize<'de> for TimeZoneName
impl<'de> Deserialize<'de> for TimeZoneName
sourcefn 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
sourceimpl From<TimeZoneName> for Field
impl From<TimeZoneName> for Field
sourcefn from(time_zone_name: TimeZoneName) -> Field
fn from(time_zone_name: TimeZoneName) -> Field
Converts to this type from the input type.
sourceimpl PartialEq<TimeZoneName> for TimeZoneName
impl PartialEq<TimeZoneName> for TimeZoneName
sourceimpl Serialize for TimeZoneName
impl Serialize for TimeZoneName
sourcefn 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
impl Copy for TimeZoneName
impl StructuralPartialEq for TimeZoneName
Auto Trait Implementations
impl RefUnwindSafe for TimeZoneName
impl Send for TimeZoneName
impl Sync for TimeZoneName
impl Unpin for TimeZoneName
impl UnwindSafe for TimeZoneName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more