pub struct Place<'a> {
pub attributes: Attributes<'a>,
pub bounding_box: Geometry,
pub country: Cow<'a, str>,
pub country_code: Cow<'a, str>,
pub full_name: Cow<'a, str>,
pub id: PlaceId<'a>,
pub name: Cow<'a, str>,
pub place_type: Cow<'a, str>,
pub url: Cow<'a, str>,
}Expand description
Fields§
§attributes: Attributes<'a>Contains a hash of variant information about the place. See Place Attributes for more detail.
bounding_box: GeometryA bounding box of coordinates which encloses this place.
country: Cow<'a, str>Name of the country containing this place.
country_code: Cow<'a, str>Shortened country code representing the country containing this place.
full_name: Cow<'a, str>Full human-readable representation of the place’s name.
id: PlaceId<'a>ID representing this place. Note that this is represented as a string, not an integer.
name: Cow<'a, str>Short human-readable representation of the place’s name.
place_type: Cow<'a, str>The type of location represented by this place.
url: Cow<'a, str>URL representing the location of additional place metadata for this place.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Place<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Place<'a>
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
impl<'a> StructuralPartialEq for Place<'a>
Auto Trait Implementations§
impl<'a> Freeze for Place<'a>
impl<'a> RefUnwindSafe for Place<'a>
impl<'a> Send for Place<'a>
impl<'a> Sync for Place<'a>
impl<'a> Unpin for Place<'a>
impl<'a> UnwindSafe for Place<'a>
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