#[non_exhaustive]pub struct City {
pub country_code: Option<String>,
pub name: Option<String>,
pub state: Option<String>,
pub title: Option<String>,
}Expand description
Geographic location returned on user profiles and leaderboards.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.country_code: Option<String>Two-letter country code (e.g. "US", "UK").
name: Option<String>City name (e.g. "San Francisco").
state: Option<String>State/province name (e.g. "California").
title: Option<String>Human-readable "City, State" or country if state matches city.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for City
impl<'de> Deserialize<'de> for City
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 City
impl RefUnwindSafe for City
impl Send for City
impl Sync for City
impl Unpin for City
impl UnsafeUnpin for City
impl UnwindSafe for City
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