use std::borrow::Cow;
use std::collections::HashMap;
use geometry::Geometry;
#[derive(Clone, Debug, Deserialize, PartialEq)]
pub struct Place<'a> {
#[serde(borrow)]
#[serde(deserialize_with = "::util::deserialize_map_cow_str")]
pub attributes: Attributes<'a>,
pub bounding_box: Geometry,
#[serde(borrow)]
pub country: Cow<'a, str>,
#[serde(borrow)]
pub country_code: Cow<'a, str>,
#[serde(borrow)]
pub full_name: Cow<'a, str>,
#[serde(borrow)]
pub id: PlaceId<'a>,
#[serde(borrow)]
pub name: Cow<'a, str>,
#[serde(borrow)]
pub place_type: Cow<'a, str>,
#[serde(borrow)]
pub url: Cow<'a, str>,
}
pub type Attributes<'a> = HashMap<Cow<'a, str>, Cow<'a, str>>;
pub type PlaceId<'a> = Cow<'a, str>;