Struct countrycode::record::Record
source · [−]pub struct Record {Show 21 fields
pub country_name: Box<str>,
pub iso2: CountryCode,
pub iso3: CountryCodeIso3,
pub top_level_domain: Box<str>,
pub fips: Box<str>,
pub iso_mumeric: Box<str>,
pub geo_name_id: Option<u32>,
pub e164: u32,
pub phone_code: Box<str>,
pub continent: Box<str>,
pub capital: Box<str>,
pub time_zone_in_capital: Tz,
pub currency: Box<str>,
pub language_codes: Box<str>,
pub languages: Box<str>,
pub area: u32,
pub internet_hosts: Option<u32>,
pub internet_users: Option<u32>,
pub phones_mobile: Option<u32>,
pub phones_landline: Option<u32>,
pub gdp: Option<u64>,
}Fields
country_name: Box<str>iso2: CountryCodeiso3: CountryCodeIso3top_level_domain: Box<str>fips: Box<str>iso_mumeric: Box<str>geo_name_id: Option<u32>e164: u32phone_code: Box<str>continent: Box<str>capital: Box<str>time_zone_in_capital: Tzcurrency: Box<str>language_codes: Box<str>languages: Box<str>area: u32internet_hosts: Option<u32>internet_users: Option<u32>phones_mobile: Option<u32>phones_landline: Option<u32>gdp: Option<u64>Trait Implementations
sourceimpl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
sourcefn 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 RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more