pub struct TrendLocation {
pub country: String,
pub country_code: Option<String>,
pub name: String,
pub parentid: u32,
pub place_type: PlaceType,
pub url: String,
pub woeid: u32,
}Expand description
Reprsent the locations that Twitter has trending topic information
Fields§
§country: StringThe country of the location that Twitter has trending topic information for.
country_code: Option<String>short alphabetic or numeric geographical codes developed to represent countries and dependent areas.
name: StringThe location with trending topic information.
parentid: u32The woeid of the parent place.
place_type: PlaceTypeThe code and related name to specify the kind of location.
url: StringThe related url of woeid of the location. Note that the url returned in the response, is no longer valid.
woeid: u32The “where on earth identifier”
Trait Implementations§
Source§impl Clone for TrendLocation
impl Clone for TrendLocation
Source§fn clone(&self) -> TrendLocation
fn clone(&self) -> TrendLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrendLocation
impl Debug for TrendLocation
Source§impl<'de> Deserialize<'de> for TrendLocation
impl<'de> Deserialize<'de> for TrendLocation
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 TrendLocation
impl RefUnwindSafe for TrendLocation
impl Send for TrendLocation
impl Sync for TrendLocation
impl Unpin for TrendLocation
impl UnwindSafe for TrendLocation
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