Struct geoip2_city::Country [−][src]
pub struct Country { pub geoname_id: u32, pub is_in_european_union: bool, pub iso_code: String, pub names: HashMap<String, String>, }
Expand description
A JSON object containing details about a country.
Fields
geoname_id: u32
A unique identifier for the continent as specified by GeoNames.
is_in_european_union: bool
This is true
if the country is a member state of the European Union. Otherwise, the key is not included in the country object.
iso_code: String
A two-character ISO 3166-1 country code for the country associated with the IP address.
names: HashMap<String, String>
A map from locale codes, such as en
, to the localized names for the feature.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Country
impl Send for Country
impl Sync for Country
impl Unpin for Country
impl UnwindSafe for Country
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more