Struct rtzlib::shared::OsmTimezoneResponse1
source · 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 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 strThe identifier of the OsmTimezoneResponse1 (e.g., America/Los_Angeles).
Essentially, it is the IANA TZ identifier.
short_identifier: StringThe short_identifier of the OsmTimezoneResponse1 (e.g., PDT).
offset: StringThe offset of the OsmTimezoneResponse1 (e.g., UTC-8:00).
raw_offset: i32The raw_offset of the OsmTimezoneResponse1 (e.g., -28800).
raw_base_offset: i32The raw_base_offset of the OsmTimezoneResponse1 (e.g., -28800).
raw_dst_offset: i32The raw_dst_offset of the OsmTimezoneResponse1 (e.g., -28800).
zone: f32The zone_num of the OsmTimezoneResponse1 (e.g., -8).
current_time: StringThe current time in the timezone.