pub struct CountryCode<'a> {
pub alpha2: &'a str,
pub alpha3: &'a str,
pub name: &'a str,
pub num: &'a str,
}Expand description
Struct that contains the data for each Country Code defined by ISO 3166-1, including the following pieces of information:
alpha2- Two-character Alpha-2 code.alpha3- Three-character Alpha-3 code.name- English short name of country.num- Numeric code of country.
Derives from Clone and Debug.
Fields§
§alpha2: &'a str§alpha3: &'a str§name: &'a str§num: &'a strTrait Implementations§
Source§impl<'a> Clone for CountryCode<'a>
impl<'a> Clone for CountryCode<'a>
Source§fn clone(&self) -> CountryCode<'a>
fn clone(&self) -> CountryCode<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CountryCode<'a>
impl<'a> RefUnwindSafe for CountryCode<'a>
impl<'a> Send for CountryCode<'a>
impl<'a> Sync for CountryCode<'a>
impl<'a> Unpin for CountryCode<'a>
impl<'a> UnwindSafe for CountryCode<'a>
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