pub struct GeoCountry {
pub code: u16,
pub alpha2: String,
pub alpha3: String,
pub name: String,
pub region_code: Option<u16>,
pub subregion_code: Option<u16>,
}Expand description
A country or territory.
Fields§
§code: u16ISO 3166-1 numeric code.
alpha2: StringISO 3166-1 alpha-2 code (HR).
alpha3: StringISO 3166-1 alpha-3 code (HRV).
name: StringEnglish name.
region_code: Option<u16>Its region; None for a country without one (Antarctica), which a region or
sub-region ban then never covers.
subregion_code: Option<u16>Its sub-region; None like region_code.
Trait Implementations§
Source§impl Clone for GeoCountry
impl Clone for GeoCountry
Source§fn clone(&self) -> GeoCountry
fn clone(&self) -> GeoCountry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeoCountry
impl Debug for GeoCountry
Source§impl<'de> Deserialize<'de> for GeoCountry
impl<'de> Deserialize<'de> for GeoCountry
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
impl Eq for GeoCountry
Source§impl PartialEq for GeoCountry
impl PartialEq for GeoCountry
Source§impl Serialize for GeoCountry
impl Serialize for GeoCountry
impl StructuralPartialEq for GeoCountry
Auto Trait Implementations§
impl Freeze for GeoCountry
impl RefUnwindSafe for GeoCountry
impl Send for GeoCountry
impl Sync for GeoCountry
impl Unpin for GeoCountry
impl UnsafeUnpin for GeoCountry
impl UnwindSafe for GeoCountry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.