[][src]Struct celes::Country

pub struct Country {
    pub code: String,
    pub value: usize,
    pub alpha2: String,
    pub alpha3: String,
    pub long_name: String,
    pub aliases: BTreeSet<String>,
}

Represents a country according to ISO 3166

Fields

code: String

The three digit code assigned to the country

value: usize

The integer value for code

alpha2: String

The two letter country code (alpha-2) assigned to the country

alpha3: String

The three letter country code (alpha-3) assigned to the country

long_name: String

The official state name of the country

aliases: BTreeSet<String>

Common aliases associated with the country

Implementations

impl Country[src]

pub fn afghanistan() -> Self[src]

Creates a struct for Afghanistan

pub fn aland_islands() -> Self[src]

Creates a struct for Aland Islands

pub fn albania() -> Self[src]

Creates a struct for Albania

pub fn algeria() -> Self[src]

Creates a struct for Algeria

pub fn american_samoa() -> Self[src]

Creates a struct for American Samoa

pub fn andorra() -> Self[src]

Creates a struct for Andorra

pub fn angola() -> Self[src]

Creates a struct for Angola

pub fn anguilla() -> Self[src]

Creates a struct for Anguilla

pub fn antarctica() -> Self[src]

Creates a struct for Antarctica

pub fn antigua_and_barbuda() -> Self[src]

Creates a struct for Antigua And Barbuda

pub fn argentina() -> Self[src]

Creates a struct for Argentina

pub fn armenia() -> Self[src]

Creates a struct for Armenia

pub fn aruba() -> Self[src]

Creates a struct for Aruba

pub fn ascension_and_tristan_da_cunha_saint_helena() -> Self[src]

Creates a struct for Ascension And Tristan Da Cunha Saint Helena

pub fn australia() -> Self[src]

Creates a struct for Australia

pub fn austria() -> Self[src]

Creates a struct for Austria

pub fn azerbaijan() -> Self[src]

Creates a struct for Azerbaijan

pub fn bahrain() -> Self[src]

Creates a struct for Bahrain

pub fn bangladesh() -> Self[src]

Creates a struct for Bangladesh

pub fn barbados() -> Self[src]

Creates a struct for Barbados

pub fn belarus() -> Self[src]

Creates a struct for Belarus

pub fn belgium() -> Self[src]

Creates a struct for Belgium

pub fn belize() -> Self[src]

Creates a struct for Belize

pub fn benin() -> Self[src]

Creates a struct for Benin

pub fn bermuda() -> Self[src]

Creates a struct for Bermuda

pub fn bhutan() -> Self[src]

Creates a struct for Bhutan

pub fn bolivarian_republic_of_venezuela() -> Self[src]

Creates a struct for Bolivarian Republic Of Venezuela

pub fn bolivia() -> Self[src]

Creates a struct for Bolivia

pub fn bonaire() -> Self[src]

Creates a struct for Bonaire

pub fn bosnia_and_herzegovina() -> Self[src]

Creates a struct for Bosnia And Herzegovina

pub fn botswana() -> Self[src]

Creates a struct for Botswana

pub fn bouvet_island() -> Self[src]

Creates a struct for Bouvet Island

pub fn brazil() -> Self[src]

Creates a struct for Brazil

pub fn british_indian_ocean_territory() -> Self[src]

Creates a struct for British Indian Ocean Territory

pub fn british_virgin_islands() -> Self[src]

Creates a struct for British Virgin Islands

pub fn brunei_darussalam() -> Self[src]

Creates a struct for Brunei Darussalam

pub fn bulgaria() -> Self[src]

Creates a struct for Bulgaria

pub fn burkina_faso() -> Self[src]

Creates a struct for Burkina Faso

pub fn burundi() -> Self[src]

Creates a struct for Burundi

pub fn cabo_verde() -> Self[src]

Creates a struct for Cabo Verde

pub fn cambodia() -> Self[src]

Creates a struct for Cambodia

pub fn cameroon() -> Self[src]

Creates a struct for Cameroon

pub fn canada() -> Self[src]

Creates a struct for Canada

pub fn chad() -> Self[src]

Creates a struct for Chad

pub fn chile() -> Self[src]

Creates a struct for Chile

pub fn china() -> Self[src]

Creates a struct for China

pub fn christmas_island() -> Self[src]

Creates a struct for Christmas Island

pub fn colombia() -> Self[src]

Creates a struct for Colombia

pub fn costa_rica() -> Self[src]

Creates a struct for Costa Rica

pub fn coted_ivoire() -> Self[src]

Creates a struct for Coted Ivoire

pub fn croatia() -> Self[src]

Creates a struct for Croatia

pub fn cuba() -> Self[src]

Creates a struct for Cuba

pub fn curacao() -> Self[src]

Creates a struct for Curacao

pub fn cyprus() -> Self[src]

Creates a struct for Cyprus

pub fn czechia() -> Self[src]

Creates a struct for Czechia

pub fn denmark() -> Self[src]

Creates a struct for Denmark

pub fn djibouti() -> Self[src]

Creates a struct for Djibouti

pub fn dominica() -> Self[src]

Creates a struct for Dominica

pub fn dutch_part_sint_maarten() -> Self[src]

Creates a struct for Dutch Part Sint Maarten

pub fn ecuador() -> Self[src]

Creates a struct for Ecuador

pub fn egypt() -> Self[src]

Creates a struct for Egypt

pub fn el_salvador() -> Self[src]

Creates a struct for El Salvador

pub fn equatorial_guinea() -> Self[src]

Creates a struct for Equatorial Guinea

pub fn eritrea() -> Self[src]

Creates a struct for Eritrea

pub fn estonia() -> Self[src]

Creates a struct for Estonia

pub fn eswatini() -> Self[src]

Creates a struct for Eswatini

pub fn ethiopia() -> Self[src]

Creates a struct for Ethiopia

pub fn federated_states_of_micronesia() -> Self[src]

Creates a struct for Federated States Of Micronesia

pub fn fiji() -> Self[src]

Creates a struct for Fiji

pub fn finland() -> Self[src]

Creates a struct for Finland

pub fn france() -> Self[src]

Creates a struct for France

pub fn french_guiana() -> Self[src]

Creates a struct for French Guiana

pub fn french_part_saint_martin() -> Self[src]

Creates a struct for French Part Saint Martin

pub fn french_polynesia() -> Self[src]

Creates a struct for French Polynesia

pub fn gabon() -> Self[src]

Creates a struct for Gabon

pub fn georgia() -> Self[src]

Creates a struct for Georgia

pub fn germany() -> Self[src]

Creates a struct for Germany

pub fn ghana() -> Self[src]

Creates a struct for Ghana

pub fn gibraltar() -> Self[src]

Creates a struct for Gibraltar

pub fn greece() -> Self[src]

Creates a struct for Greece

pub fn greenland() -> Self[src]

Creates a struct for Greenland

pub fn grenada() -> Self[src]

Creates a struct for Grenada

pub fn guadeloupe() -> Self[src]

Creates a struct for Guadeloupe

pub fn guam() -> Self[src]

Creates a struct for Guam

pub fn guatemala() -> Self[src]

Creates a struct for Guatemala

pub fn guernsey() -> Self[src]

Creates a struct for Guernsey

pub fn guinea() -> Self[src]

Creates a struct for Guinea

pub fn guinea_bissau() -> Self[src]

Creates a struct for Guinea Bissau

pub fn guyana() -> Self[src]

Creates a struct for Guyana

pub fn haiti() -> Self[src]

Creates a struct for Haiti

pub fn heard_island_and_mc_donald_islands() -> Self[src]

Creates a struct for Heard Island And Mc Donald Islands

pub fn honduras() -> Self[src]

Creates a struct for Honduras

pub fn hong_kong() -> Self[src]

Creates a struct for Hong Kong

pub fn hungary() -> Self[src]

Creates a struct for Hungary

pub fn iceland() -> Self[src]

Creates a struct for Iceland

pub fn india() -> Self[src]

Creates a struct for India

pub fn indonesia() -> Self[src]

Creates a struct for Indonesia

pub fn iraq() -> Self[src]

Creates a struct for Iraq

pub fn ireland() -> Self[src]

Creates a struct for Ireland

pub fn islamic_republic_of_iran() -> Self[src]

Creates a struct for Islamic Republic Of Iran

pub fn isle_of_man() -> Self[src]

Creates a struct for Isle Of Man

pub fn israel() -> Self[src]

Creates a struct for Israel

pub fn italy() -> Self[src]

Creates a struct for Italy

pub fn jamaica() -> Self[src]

Creates a struct for Jamaica

pub fn japan() -> Self[src]

Creates a struct for Japan

pub fn jersey() -> Self[src]

Creates a struct for Jersey

pub fn jordan() -> Self[src]

Creates a struct for Jordan

pub fn kazakhstan() -> Self[src]

Creates a struct for Kazakhstan

pub fn kenya() -> Self[src]

Creates a struct for Kenya

pub fn kiribati() -> Self[src]

Creates a struct for Kiribati

pub fn kuwait() -> Self[src]

Creates a struct for Kuwait

pub fn kyrgyzstan() -> Self[src]

Creates a struct for Kyrgyzstan

pub fn latvia() -> Self[src]

Creates a struct for Latvia

pub fn lebanon() -> Self[src]

Creates a struct for Lebanon

pub fn lesotho() -> Self[src]

Creates a struct for Lesotho

pub fn liberia() -> Self[src]

Creates a struct for Liberia

pub fn libya() -> Self[src]

Creates a struct for Libya

pub fn liechtenstein() -> Self[src]

Creates a struct for Liechtenstein

pub fn lithuania() -> Self[src]

Creates a struct for Lithuania

pub fn luxembourg() -> Self[src]

Creates a struct for Luxembourg

pub fn macao() -> Self[src]

Creates a struct for Macao

pub fn madagascar() -> Self[src]

Creates a struct for Madagascar

pub fn malawi() -> Self[src]

Creates a struct for Malawi

pub fn malaysia() -> Self[src]

Creates a struct for Malaysia

pub fn maldives() -> Self[src]

Creates a struct for Maldives

pub fn mali() -> Self[src]

Creates a struct for Mali

pub fn malta() -> Self[src]

Creates a struct for Malta

pub fn martinique() -> Self[src]

Creates a struct for Martinique

pub fn mauritania() -> Self[src]

Creates a struct for Mauritania

pub fn mauritius() -> Self[src]

Creates a struct for Mauritius

pub fn mayotte() -> Self[src]

Creates a struct for Mayotte

pub fn mexico() -> Self[src]

Creates a struct for Mexico

pub fn monaco() -> Self[src]

Creates a struct for Monaco

pub fn mongolia() -> Self[src]

Creates a struct for Mongolia

pub fn montenegro() -> Self[src]

Creates a struct for Montenegro

pub fn montserrat() -> Self[src]

Creates a struct for Montserrat

pub fn morocco() -> Self[src]

Creates a struct for Morocco

pub fn mozambique() -> Self[src]

Creates a struct for Mozambique

pub fn myanmar() -> Self[src]

Creates a struct for Myanmar

pub fn namibia() -> Self[src]

Creates a struct for Namibia

pub fn nauru() -> Self[src]

Creates a struct for Nauru

pub fn nepal() -> Self[src]

Creates a struct for Nepal

pub fn new_caledonia() -> Self[src]

Creates a struct for New Caledonia

pub fn new_zealand() -> Self[src]

Creates a struct for New Zealand

pub fn nicaragua() -> Self[src]

Creates a struct for Nicaragua

pub fn nigeria() -> Self[src]

Creates a struct for Nigeria

pub fn niue() -> Self[src]

Creates a struct for Niue

pub fn norfolk_island() -> Self[src]

Creates a struct for Norfolk Island

pub fn norway() -> Self[src]

Creates a struct for Norway

pub fn oman() -> Self[src]

Creates a struct for Oman

pub fn pakistan() -> Self[src]

Creates a struct for Pakistan

pub fn palau() -> Self[src]

Creates a struct for Palau

pub fn panama() -> Self[src]

Creates a struct for Panama

pub fn papua_new_guinea() -> Self[src]

Creates a struct for Papua New Guinea

pub fn paraguay() -> Self[src]

Creates a struct for Paraguay

pub fn peru() -> Self[src]

Creates a struct for Peru

pub fn pitcairn() -> Self[src]

Creates a struct for Pitcairn

pub fn poland() -> Self[src]

Creates a struct for Poland

pub fn portugal() -> Self[src]

Creates a struct for Portugal

pub fn puerto_rico() -> Self[src]

Creates a struct for Puerto Rico

pub fn qatar() -> Self[src]

Creates a struct for Qatar

pub fn republic_of_north_macedonia() -> Self[src]

Creates a struct for Republic Of North Macedonia

pub fn reunion() -> Self[src]

Creates a struct for Reunion

pub fn romania() -> Self[src]

Creates a struct for Romania

pub fn rwanda() -> Self[src]

Creates a struct for Rwanda

pub fn saint_barthelemy() -> Self[src]

Creates a struct for Saint Barthelemy

pub fn saint_kitts_and_nevis() -> Self[src]

Creates a struct for Saint Kitts And Nevis

pub fn saint_lucia() -> Self[src]

Creates a struct for Saint Lucia

pub fn saint_pierre_and_miquelon() -> Self[src]

Creates a struct for Saint Pierre And Miquelon

pub fn saint_vincent_and_the_grenadines() -> Self[src]

Creates a struct for Saint Vincent And The Grenadines

pub fn samoa() -> Self[src]

Creates a struct for Samoa

pub fn san_marino() -> Self[src]

Creates a struct for San Marino

pub fn sao_tome_and_principe() -> Self[src]

Creates a struct for Sao Tome And Principe

pub fn saudi_arabia() -> Self[src]

Creates a struct for Saudi Arabia

pub fn senegal() -> Self[src]

Creates a struct for Senegal

pub fn serbia() -> Self[src]

Creates a struct for Serbia

pub fn seychelles() -> Self[src]

Creates a struct for Seychelles

pub fn sierra_leone() -> Self[src]

Creates a struct for Sierra Leone

pub fn singapore() -> Self[src]

Creates a struct for Singapore

pub fn slovakia() -> Self[src]

Creates a struct for Slovakia

pub fn slovenia() -> Self[src]

Creates a struct for Slovenia

pub fn solomon_islands() -> Self[src]

Creates a struct for Solomon Islands

pub fn somalia() -> Self[src]

Creates a struct for Somalia

pub fn south_africa() -> Self[src]

Creates a struct for South Africa

pub fn south_georgia_and_the_south_sandwich_islands() -> Self[src]

Creates a struct for South Georgia And The South Sandwich Islands

pub fn south_sudan() -> Self[src]

Creates a struct for South Sudan

pub fn spain() -> Self[src]

Creates a struct for Spain

pub fn sri_lanka() -> Self[src]

Creates a struct for Sri Lanka

pub fn state_of_palestine() -> Self[src]

Creates a struct for State Of Palestine

pub fn suriname() -> Self[src]

Creates a struct for Suriname

pub fn svalbard_and_jan_mayen() -> Self[src]

Creates a struct for Svalbard And Jan Mayen

pub fn sweden() -> Self[src]

Creates a struct for Sweden

pub fn switzerland() -> Self[src]

Creates a struct for Switzerland

pub fn syrian_arab_republic() -> Self[src]

Creates a struct for Syrian Arab Republic

pub fn taiwan_province_of_china() -> Self[src]

Creates a struct for Taiwan Province Of China

pub fn tajikistan() -> Self[src]

Creates a struct for Tajikistan

pub fn thailand() -> Self[src]

Creates a struct for Thailand

pub fn the_bahamas() -> Self[src]

Creates a struct for The Bahamas

pub fn the_cayman_islands() -> Self[src]

Creates a struct for The Cayman Islands

pub fn the_central_african_republic() -> Self[src]

Creates a struct for The Central African Republic

pub fn the_cocos_keeling_islands() -> Self[src]

Creates a struct for The Cocos Keeling Islands

pub fn the_comoros() -> Self[src]

Creates a struct for The Comoros

pub fn the_congo() -> Self[src]

Creates a struct for The Congo

pub fn the_cook_islands() -> Self[src]

Creates a struct for The Cook Islands

pub fn the_democratic_peoples_republic_of_korea() -> Self[src]

Creates a struct for The Democratic Peoples Republic Of Korea

pub fn the_democratic_republic_of_the_congo() -> Self[src]

Creates a struct for The Democratic Republic Of The Congo

pub fn the_dominican_republic() -> Self[src]

Creates a struct for The Dominican Republic

pub fn the_falkland_islands_malvinas() -> Self[src]

Creates a struct for The Falkland Islands Malvinas

pub fn the_faroe_islands() -> Self[src]

Creates a struct for The Faroe Islands

pub fn the_french_southern_territories() -> Self[src]

Creates a struct for The French Southern Territories

pub fn the_gambia() -> Self[src]

Creates a struct for The Gambia

pub fn the_holy_see() -> Self[src]

Creates a struct for The Holy See

pub fn the_lao_peoples_democratic_republic() -> Self[src]

Creates a struct for The Lao Peoples Democratic Republic

pub fn the_marshall_islands() -> Self[src]

Creates a struct for The Marshall Islands

pub fn the_netherlands() -> Self[src]

Creates a struct for The Netherlands

pub fn the_niger() -> Self[src]

Creates a struct for The Niger

pub fn the_northern_mariana_islands() -> Self[src]

Creates a struct for The Northern Mariana Islands

pub fn the_philippines() -> Self[src]

Creates a struct for The Philippines

pub fn the_republic_of_korea() -> Self[src]

Creates a struct for The Republic Of Korea

pub fn the_republic_of_moldova() -> Self[src]

Creates a struct for The Republic Of Moldova

pub fn the_russian_federation() -> Self[src]

Creates a struct for The Russian Federation

pub fn the_sudan() -> Self[src]

Creates a struct for The Sudan

pub fn the_turks_and_caicos_islands() -> Self[src]

Creates a struct for The Turks And Caicos Islands

pub fn the_united_arab_emirates() -> Self[src]

Creates a struct for The United Arab Emirates

pub fn the_united_kingdom_of_great_britain_and_northern_ireland() -> Self[src]

Creates a struct for The United Kingdom Of Great Britain And Northern Ireland

pub fn the_united_states_minor_outlying_islands() -> Self[src]

Creates a struct for The United States Minor Outlying Islands

pub fn the_united_states_of_america() -> Self[src]

Creates a struct for The United States Of America

pub fn timor_leste() -> Self[src]

Creates a struct for Timor Leste

pub fn togo() -> Self[src]

Creates a struct for Togo

pub fn tokelau() -> Self[src]

Creates a struct for Tokelau

pub fn tonga() -> Self[src]

Creates a struct for Tonga

pub fn trinidad_and_tobago() -> Self[src]

Creates a struct for Trinidad And Tobago

pub fn tunisia() -> Self[src]

Creates a struct for Tunisia

pub fn turkey() -> Self[src]

Creates a struct for Turkey

pub fn turkmenistan() -> Self[src]

Creates a struct for Turkmenistan

pub fn tuvalu() -> Self[src]

Creates a struct for Tuvalu

pub fn us_virgin_islands() -> Self[src]

Creates a struct for US Virgin Islands

pub fn uganda() -> Self[src]

Creates a struct for Uganda

pub fn ukraine() -> Self[src]

Creates a struct for Ukraine

pub fn united_republic_of_tanzania() -> Self[src]

Creates a struct for United Republic Of Tanzania

pub fn uruguay() -> Self[src]

Creates a struct for Uruguay

pub fn uzbekistan() -> Self[src]

Creates a struct for Uzbekistan

pub fn vanuatu() -> Self[src]

Creates a struct for Vanuatu

pub fn vietnam() -> Self[src]

Creates a struct for Vietnam

pub fn wallis_and_futuna() -> Self[src]

Creates a struct for Wallis And Futuna

pub fn western_sahara() -> Self[src]

Creates a struct for Western Sahara

pub fn yemen() -> Self[src]

Creates a struct for Yemen

pub fn zambia() -> Self[src]

Creates a struct for Zambia

pub fn zimbabwe() -> Self[src]

Creates a struct for Zimbabwe

pub fn get_countries() -> Vec<Self>[src]

Returns a vector in alphabetic order of all the countries

use celes::Country;
use std::collections::BTreeMap;

let countries = Country::get_countries();

for c in &countries {
    println!("{}", c);
}

for c in &countries {
    println!("{}", c.alpha2);
}

for c in countries.iter().filter(|cty| cty.value < 300) {
    println!("{}", c.long_name)
}

//Convert to a map
let lookup = countries.iter().map(|cty| (cty.alpha2.to_string(), cty.clone())).collect::<BTreeMap<String, Country>>();

pub fn from_value(value: usize) -> Result<Self, String>[src]

Given the numeric code, return a country or an error if the parameter doesn't match any country

use celes::Country;

let res = Country::from_value(1);
assert!(res.is_err());

let res = Country::from_value(2);
assert!(res.is_err());

let res = Country::from_value(4);
assert!(res.is_ok());

assert_eq!(Country::afghanistan(), res.unwrap());

pub fn from_code<A: AsRef<str>>(code: A) -> Result<Self, String>[src]

Given the three digit code, return a country or an error if the parameter doesn't match any country. The value MUST be the three digit code which includes leading zeros.

use celes::Country;

let res = Country::from_code("8");
assert!(res.is_err());

let res = Country::from_code("08");
assert!(res.is_err());

let res = Country::from_code("008");
assert!(res.is_ok());

assert_eq!(Country::albania(), res.unwrap());

pub fn from_alpha2<A: AsRef<str>>(alpha2: A) -> Result<Self, String>[src]

Given the alpha2 letters, return a country or an error if the parameter doesn't match any country. This is case-insensitive.

use celes::Country;

let res = Country::from_alpha2("u");
assert!(res.is_err());

let res = Country::from_alpha2("us");
assert!(res.is_ok());
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alpha2("Us");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alpha2("uS");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alpha2("US");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

pub fn from_alpha3<A: AsRef<str>>(alpha3: A) -> Result<Self, String>[src]

Given the alpha3 letters, return a country or an error if the parameter doesn't match any country. This is case-insensitive.

use celes::Country;

let res = Country::from_alpha3("u");
assert!(res.is_err());

let res = Country::from_alpha3("us");
assert!(res.is_err());

let res = Country::from_alpha3("Usa");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alpha3("uSa");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alpha3("USA");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

pub fn from_alias<A: AsRef<str>>(alias: A) -> Result<Self, String>[src]

Given the a country alias, return a country or an error if the parameter doesn't match any country

The alias is any value in the aliases field for a country. For example, "america" would return the_united_states_of_america This is case-insensitive.

use celes::Country;

let res = Country::from_alias("u");
assert!(res.is_err());

let res = Country::from_alias("us");
assert!(res.is_err());

let res = Country::from_alias("america");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_alias("russia");
assert_eq!(Country::the_russian_federation(), res.unwrap());

let res = Country::from_alias("england");
assert_eq!(Country::the_united_kingdom_of_great_britain_and_northern_ireland(), res.unwrap());

pub fn from_name<A: AsRef<str>>(name: A) -> Result<Self, String>[src]

Given the country name, return a country or an error if the parameter doesn't match any country. This is case-insensitive.

For example, Albania, Algeria, Brazil would return the country struct that represents those countries.

use celes::Country;

let res = Country::from_name("russianfederation");
assert!(res.is_err());

let res = Country::from_name("unitedstatesofamerica");
assert!(res.is_err());

let res = Country::from_name("Albania");
assert_eq!(Country::albania(), res.unwrap());

let res = Country::from_name("theunitedstatesofamerica");
assert_eq!(Country::the_united_states_of_america(), res.unwrap());

let res = Country::from_name("therussianfederation");
assert_eq!(Country::the_russian_federation(), res.unwrap());

let res = Country::from_name("theunitedkingdomofgreatbritainandnorthernireland");
assert_eq!(Country::the_united_kingdom_of_great_britain_and_northern_ireland(), res.unwrap());

Trait Implementations

impl Clone for Country[src]

impl Debug for Country[src]

impl<'de> Deserialize<'de> for Country[src]

impl Display for Country[src]

impl Eq for Country[src]

impl FromStr for Country[src]

type Err = String

The associated error which can be returned from parsing.

impl PartialEq<Country> for Country[src]

impl Serialize for Country[src]

impl StructuralEq for Country[src]

impl StructuralPartialEq for Country[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.