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: usizeThe index of this timezone in the global static cache.
This is not stable across builds or new data sets. It is merely unique during a single build.
identifier: &'static strThe IANA time zone identifier (e.g., America/Los_Angeles).
short_identifier: StringThe abbreviated name of the offset currently in effect (e.g., PDT).
offset: StringThe current UTC offset in display form (e.g., UTC-8:00).
raw_offset: i32The current UTC offset in seconds, including any daylight savings adjustment (e.g., -28800).
raw_base_offset: i32The standard UTC offset in seconds, excluding daylight savings (e.g., -28800).
raw_dst_offset: i32The daylight savings adjustment in seconds, or 0 when it is not in effect.
zone: f32The current UTC offset in hours (e.g., -8).
current_time: StringThe current time in this timezone, as an RFC 3339 timestamp.
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
Available on crate feature tz-osm only.
impl From<&'static OsmTimezone> for OsmTimezoneResponse1
tz-osm only.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 UnsafeUnpin 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
impl<T> Erased for 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