#[non_exhaustive]pub enum ZoneStyle {
SpecificLong,
SpecificShort,
LocalizedOffsetLong,
LocalizedOffsetShort,
GenericLong,
GenericShort,
Location,
ExemplarCity,
}
Expand description
An enumeration over all possible time zone styles.
This is a builder enum. See builder
.
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.
SpecificLong
The long specific non-location format, as in “Pacific Daylight Time”.
SpecificShort
The short specific non-location format, as in “PDT”.
LocalizedOffsetLong
The long offset format, as in “GMT−8:00”.
LocalizedOffsetShort
The short offset format, as in “GMT−8”.
GenericLong
The long generic non-location format, as in “Pacific Time”.
GenericShort
The short generic non-location format, as in “PT”.
Location
The location format, as in “Los Angeles time”.
ExemplarCity
The exemplar city format, as in “Los Angeles”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZoneStyle
impl<'de> Deserialize<'de> for ZoneStyle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZoneStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZoneStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ZoneStyle
impl Serialize for ZoneStyle
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
impl Copy for ZoneStyle
impl Eq for ZoneStyle
impl StructuralPartialEq for ZoneStyle
Auto Trait Implementations§
impl Freeze for ZoneStyle
impl RefUnwindSafe for ZoneStyle
impl Send for ZoneStyle
impl Sync for ZoneStyle
impl Unpin for ZoneStyle
impl UnwindSafe for ZoneStyle
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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