pub struct GeocodeResponse {Show 14 fields
pub place_id: u64,
pub license: Option<String>,
pub osm_type: String,
pub osm_id: u64,
pub lat: f64,
pub lon: f64,
pub class: String,
pub place_type: String,
pub place_rank: u64,
pub importance: f64,
pub addresstype: String,
pub name: String,
pub display_name: String,
pub boundingbox: BoundingBox,
}
Expand description
Payload returned by the Nominatim API
Fields§
§place_id: u64
§license: Option<String>
§osm_type: String
§osm_id: u64
§lat: f64
§lon: f64
§class: String
§place_type: String
§place_rank: u64
§importance: f64
§addresstype: String
§name: String
§display_name: String
§boundingbox: BoundingBox
Trait Implementations§
Source§impl Debug for GeocodeResponse
impl Debug for GeocodeResponse
Source§impl<'de> Deserialize<'de> for GeocodeResponse
impl<'de> Deserialize<'de> for GeocodeResponse
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 GeocodeResponse
impl RefUnwindSafe for GeocodeResponse
impl Send for GeocodeResponse
impl Sync for GeocodeResponse
impl Unpin for GeocodeResponse
impl UnwindSafe for GeocodeResponse
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