#[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<'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§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