pub struct Place {
pub id: String,
pub attributes: HashMap<String, String>,
pub bounding_box: Vec<(f64, f64)>,
pub country: String,
pub country_code: String,
pub full_name: String,
pub name: String,
pub place_type: PlaceType,
pub contained_within: Option<Vec<Place>>,
}Expand description
Represents a named location.
Fields§
§id: StringAlphanumeric ID of the location.
attributes: HashMap<String, String>Map of miscellaneous information about this place. See Twitter’s documentation for details and common attribute keys.
bounding_box: Vec<(f64, f64)>A bounding box of latitude/longitude coordinates that encloses this place.
country: StringName of the country containing this place.
country_code: StringShortened country code representing the country containing this place.
full_name: StringFull human-readable name of this place.
name: StringShort human-readable name of this place.
place_type: PlaceTypeThe type of location represented by this place.
contained_within: Option<Vec<Place>>If present, the country or administrative region that contains this place.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Place
impl<'de> Deserialize<'de> for Place
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 Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnwindSafe for Place
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