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
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.