Struct normalize_country::Country
source · [−]pub struct Country {
pub aliases: Option<Vec<SmallString<[u8; 23]>>>,
pub alpha2: [u8; 2],
pub alpha3: [u8; 3],
pub fifa: [u8; 3],
pub ioc: [u8; 3],
pub iso_name: SmallString<[u8; 23]>,
pub numeric: i32,
pub official: SmallString<[u8; 23]>,
pub short: SmallString<[u8; 23]>,
pub emoji: char,
pub shortcode: SmallString<[u8; 23]>,
}
Fields
aliases: Option<Vec<SmallString<[u8; 23]>>>
alpha2: [u8; 2]
alpha3: [u8; 3]
fifa: [u8; 3]
ioc: [u8; 3]
iso_name: SmallString<[u8; 23]>
numeric: i32
official: SmallString<[u8; 23]>
short: SmallString<[u8; 23]>
emoji: char
shortcode: SmallString<[u8; 23]>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Country
impl<'de> Deserialize<'de> for Country
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
sourceimpl Ord for Country
impl Ord for Country
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Country> for Country
impl PartialEq<Country> for Country
sourceimpl PartialOrd<Country> for Country
impl PartialOrd<Country> for Country
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Country
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
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