pub struct Location {
pub id: String,
pub matchparam: String,
pub geo: Geo,
pub time: Option<Time>,
pub timechanges: Option<Vec<TimeChange>>,
pub astronomy: Option<Astronomy>,
}Expand description
Information about a location.
Fields§
§id: StringThe id of the location.
matchparam: StringThe part of the queried placeid that this location matches.
geo: GeoGeographical information about the location.
time: Option<Time>Time information. Only present if requested.
timechanges: Option<Vec<TimeChange>>Time changes (daylight savings time). Only present if requested and information is available.
astronomy: Option<Astronomy>Astronomical information - sunrise and sunset times. Only for the timeservice and if requested.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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