pub enum PlaceType {
PointOfInterest,
Neighborhood,
City,
Admin,
Country,
}Expand description
Represents the type of region represented by a given place.
Variants§
PointOfInterest
A coordinate with no area.
Neighborhood
A region within a city.
City
An entire city.
Admin
An administrative area, e.g. state or province.
Country
An entire country.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlaceType
impl<'de> Deserialize<'de> for PlaceType
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
Source§impl Display for PlaceType
Display impl to make to_string() format the enum for sending to Twitter. This is mostly just
a lowercase version of the variants, but Point is rendered as "poi" instead.
impl Display for PlaceType
Display impl to make to_string() format the enum for sending to Twitter. This is mostly just
a lowercase version of the variants, but Point is rendered as "poi" instead.
impl Copy for PlaceType
Auto Trait Implementations§
impl Freeze for PlaceType
impl RefUnwindSafe for PlaceType
impl Send for PlaceType
impl Sync for PlaceType
impl Unpin for PlaceType
impl UnwindSafe for PlaceType
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