pub struct OsmTimezoneResponse1 {
pub id: usize,
pub identifier: &'static str,
pub short_identifier: String,
pub offset: String,
pub raw_offset: i32,
pub raw_base_offset: i32,
pub raw_dst_offset: i32,
pub zone: f32,
pub current_time: String,
}
Expand description
The response type for the OSM timezone endpoint when found.
Currently ingested version of this data set is here.
Fields§
§id: usize
The index of the OsmTimezoneResponse1
in the global static cache.
This is is not stable across builds or new data sets. It is merely unique during a single build.
identifier: &'static str
The identifier
of the OsmTimezoneResponse1
(e.g., America/Los_Angeles
).
Essentially, it is the IANA TZ identifier.
short_identifier: String
The short_identifier
of the OsmTimezoneResponse1
(e.g., PDT
).
offset: String
The offset
of the OsmTimezoneResponse1
(e.g., UTC-8:00
).
raw_offset: i32
The raw_offset
of the OsmTimezoneResponse1
(e.g., -28800
).
raw_base_offset: i32
The raw_base_offset
of the OsmTimezoneResponse1
(e.g., -28800
).
raw_dst_offset: i32
The raw_dst_offset
of the OsmTimezoneResponse1
(e.g., -28800
).
zone: f32
The zone_num
of the OsmTimezoneResponse1
(e.g., -8
).
current_time: String
The current time in the timezone.
Trait Implementations§
Source§impl Debug for OsmTimezoneResponse1
impl Debug for OsmTimezoneResponse1
Source§impl Deserialize<'static> for OsmTimezoneResponse1
impl Deserialize<'static> for OsmTimezoneResponse1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Source§impl From<&'static OsmTimezone> for OsmTimezoneResponse1
impl From<&'static OsmTimezone> for OsmTimezoneResponse1
Source§fn from(value: &'static OsmTimezone) -> OsmTimezoneResponse1
fn from(value: &'static OsmTimezone) -> OsmTimezoneResponse1
Auto Trait Implementations§
impl Freeze for OsmTimezoneResponse1
impl RefUnwindSafe for OsmTimezoneResponse1
impl Send for OsmTimezoneResponse1
impl Sync for OsmTimezoneResponse1
impl Unpin for OsmTimezoneResponse1
impl UnwindSafe for OsmTimezoneResponse1
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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