Struct geoip2_city::Subdivisions [−][src]
pub struct Subdivisions { pub geoname_id: u32, pub iso_code: String, pub names: HashMap<String, String>, }
Expand description
A JSON object containing information about location (e.g. county, country within union) associated with the IP address.
Fields
geoname_id: u32
A unique identifier for the region as specified by GeoNames.
iso_code: String
A string of up to three characters containing the region-portion of the ISO 3166-2 code for the region 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
impl Clone for Subdivisions
[src]
impl Clone for Subdivisions
[src]fn clone(&self) -> Subdivisions
[src]
fn clone(&self) -> Subdivisions
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Subdivisions
impl Send for Subdivisions
impl Sync for Subdivisions
impl Unpin for Subdivisions
impl UnwindSafe for Subdivisions
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