pub enum SubdivisionType {
Show 108 variants Administration, AdministrativeAtoll, AdministrativePrecinct, AdministrativeRegion, AdministrativeTerritory, ArcticRegion, Area, AutonomousCity, AutonomousCityInNorthAfrica, AutonomousCommunity, AutonomousDistrict, AutonomousMunicipality, AutonomousProvince, AutonomousRegion, AutonomousRepublic, AutonomousSector, AutonomousTerritorialUnit, Borough, Canton, Capital, CapitalCity, CapitalDistrict, CapitalRegion, CapitalTerritory, ChainOfIslands, City, CityCorporation, CityMunicipality, CityWithCountyRights, Commune, CouncilArea, Country, County, DecentralizedRegionalEntity, Department, Departments, Dependency, DevelopmentRegion, District, DistrictMunicipality, DistrictWithSpecialStatus, DistrictsUnderRepublicAdministration, Division, EconomicPrefecture, Emirate, Entity, EuropeanCollectivity, FederalCapitalTerritory, FederalDependency, FederalDistrict, FederalTerritory, FreeMunicipalConsortium, GeographicalEntity, GeographicalRegion, GeographicalUnit, Governorate, GroupOfIslands, IndigenousRegion, Island, IslandCouncil, LocalCouncil, LondonBorough, MetropolitanAdministration, MetropolitanCity, MetropolitanCollectivityWithSpecialStatus, MetropolitanDepartment, MetropolitanDistrict, MetropolitanRegion, Municipality, Oblast, OutlyingArea, OverseasCollectivity, OverseasDepartmentalCollectivity, OverseasUniqueTerritorialCollectivity, PakistanAdministeredArea, Parish, Popularate, Prefecture, Province, Quarter, Rayon, Region, RegionalState, Republic, RuralMunicipality, SelfGovernedPart, SpecialAdministrativeCity, SpecialAdministrativeRegion, SpecialCity, SpecialIslandAuthority, SpecialMunicipality, SpecialRegion, SpecialSelfGoverningCity, SpecialSelfGoverningProvince, State, StateCity, TerritorialUnit, Territory, Town, TownCouncil, TwoTierCounty, UnionTerritory, UnitaryAuthority, UrbanCommunity, UrbanMunicipality, Voivodeship, Ward, Zone,
}
Expand description

An enum containing countries subdivision types.

Variants§

§

Administration

Examples:

  • Adis Abeba in The Federal Democratic Republic of Ethiopia (Africa)
  • Dire Dawa in The Federal Democratic Republic of Ethiopia (Africa)
§

AdministrativeAtoll

Examples:

  • Ariatholhu Dhekunuburi in The Republic of Maldives (Asia)
  • Ariatholhu Uthuruburi in The Republic of Maldives (Asia)
  • Faadhippolhu in The Republic of Maldives (Asia)
§

AdministrativePrecinct

Examples:

  • Alo in The Territory of the Wallis and Futuna Islands (Oceania)
  • Sigave in The Territory of the Wallis and Futuna Islands (Oceania)
  • Uvea in The Territory of the Wallis and Futuna Islands (Oceania)
§

AdministrativeRegion

Examples:

  • Région de Boké in The Republic of Guinea (Africa)
  • Région de Kindia in The Republic of Guinea (Africa)
  • Région de Faranah in The Republic of Guinea (Africa)
§

AdministrativeTerritory

Examples:

  • Altayskiy kray in The Russian Federation (Europe)
  • Kamchatskaya oblast' in The Russian Federation (Europe)
  • Krasnodarskiy kray in The Russian Federation (Europe)
§

ArcticRegion

Examples:

  • Svalbard (Arctic Region) in The Kingdom of Norway (Europe)
  • Jan Mayen (Arctic Region) in The Kingdom of Norway (Europe)
§

Area

Examples:

  • Western Area (Freetown) in The Republic of Sierra Leone (Africa)
§

AutonomousCity

Examples:

  • Moskva in The Russian Federation (Europe)
  • Sankt-Peterburg in The Russian Federation (Europe)
§

AutonomousCityInNorthAfrica

Examples:

  • Ceuta in The Kingdom of Spain (Europe)
  • Melilla in The Kingdom of Spain (Europe)
§

AutonomousCommunity

Examples:

  • Andalucía in The Kingdom of Spain (Europe)
  • Aragón in The Kingdom of Spain (Europe)
  • Principado de Asturias in The Kingdom of Spain (Europe)
§

AutonomousDistrict

Examples:

  • Abidjan in The Republic of Côte d'Ivoire (Africa)
  • Yamoussoukro in The Republic of Côte d'Ivoire (Africa)
  • Chukotskiy avtonomnyy okrug in The Russian Federation (Europe)
§

AutonomousMunicipality

Examples:

  • Phnom Penh [Phnum Pénh] in The Kingdom of Cambodia (Asia)
§

AutonomousProvince

Examples:

  • Bolzano in The Italian Republic (Europe)
  • Trento in The Italian Republic (Europe)
  • Косово и Метохија in The Republic of Serbia (Europe)
§

AutonomousRegion

Examples:

  • Guangxi in The People's Republic of China (Asia)
  • Nei Mongol (mn) in The People's Republic of China (Asia)
  • Ningxia in The People's Republic of China (Asia)
§

AutonomousRepublic

Examples:

  • Naxçivan in The Republic of Azerbaijan (Asia)
  • Abkhazia in Georgia (Asia)
  • Ajaria in Georgia (Asia)
§

AutonomousSector

Examples:

  • Bissau in The Republic of Guinea-Bissau (Africa)
§

AutonomousTerritorialUnit

Examples:

  • Gagauzia, Unitate Teritoriala Autonoma (UTAG) in The Republic of Moldova (Europe)
§

Borough

Examples:

  • Arima in The Republic of Trinidad and Tobago (Americas)
  • Chaguanas in The Republic of Trinidad and Tobago (Americas)
  • Point Fortin in The Republic of Trinidad and Tobago (Americas)
§

Canton

Examples:

  • Aargau (de) in The Swiss Confederation (Europe)
  • Appenzell Innerrhoden (de) in The Swiss Confederation (Europe)
  • Appenzell Ausserrhoden (de) in The Swiss Confederation (Europe)
§

Capital

Examples:

  • Ciudad de México in The United Mexican States (Americas)
§

CapitalCity

Examples:

  • Praha, Hlavní město in The Czech Republic (Europe)
  • Budapest in Hungary (Europe)
  • 평양직할시 in The Democratic People's Republic of Korea (Asia)
§

CapitalDistrict

Examples:

  • Distrito Capital de Bogotá in The Republic of Colombia (Americas)
  • Distrito Federal in The Bolivarian Republic of Venezuela (Americas)
§

CapitalRegion

Examples:

  • Daerah Khusus Ibukota Jakarta in The Republic of Indonesia (Asia)
§

CapitalTerritory

Examples:

  • Abuja Capital Territory in The Federal Republic of Nigeria (Africa)
  • Capital Territory (Honiara) in The Solomon Islands (Oceania)
  • Dushanbe in The Republic of Tajikistan (Asia)
§

ChainOfIslands

Examples:

  • Ralik Chain in The Republic of the Marshall Islands (Oceania)
  • Ratak Chain in The Republic of the Marshall Islands (Oceania)
§

City

Examples:

  • Erevan in The Republic of Armenia (Asia)
  • Capital federal in The Argentine Republic (Americas)
  • Francistown in The Republic of Botswana (Africa)
§

CityCorporation

Examples:

  • London, City of in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

CityMunicipality

Examples:

  • Alytaus miesto savivaldybė in The Republic of Lithuania (Europe)
  • Kauno miesto savivaldybė in The Republic of Lithuania (Europe)
  • Klaipėdos miesto savivaldybė in The Republic of Lithuania (Europe)
§

CityWithCountyRights

Examples:

  • Békéscsaba in Hungary (Europe)
  • Debrecen in Hungary (Europe)
  • Dunaújváros in Hungary (Europe)
§

Commune

Examples:

  • Bangui in The Central African Republic (Africa)
  • Balzers in The Principality of Liechtenstein (Europe)
  • Eschen in The Principality of Liechtenstein (Europe)
§

CouncilArea

Examples:

  • Aberdeenshire in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Aberdeen City in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Argyll and Bute in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

Country

Examples:

  • England in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Scotland in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Wales in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

County

Examples:

  • Berat in The Republic of Albania (Europe)
  • Durrës in The Republic of Albania (Europe)
  • Elbasan in The Republic of Albania (Europe)
§

DecentralizedRegionalEntity

Examples:

  • Gorizia in The Italian Republic (Europe)
  • Pordenone in The Italian Republic (Europe)
  • Trieste in The Italian Republic (Europe)
§

Department

Examples:

  • El Beni in The Plurinational State of Bolivia (Americas)
  • Cochabamba in The Plurinational State of Bolivia (Americas)
  • Chuquisaca in The Plurinational State of Bolivia (Americas)
§

Departments

Examples:

  • Atakora in The Republic of Benin (Africa)
  • Alibori in The Republic of Benin (Africa)
  • Atlantique in The Republic of Benin (Africa)
§

Dependency

Examples:

  • Barbuda in Antigua and Barbuda (Americas)
  • Redonda in Antigua and Barbuda (Americas)
  • Rotuma in The Republic of Fiji (Oceania)
§

DevelopmentRegion

Examples:

  • मध्यमाञ्चल विकास क्षेत्र in The Federal Democratic Republic of Nepal (Asia)
  • मध्य-पश्चिमाञ्चल विकास क्षेत्र in The Federal Democratic Republic of Nepal (Asia)
  • पश्चिमाञ्चल विकास क्षेत्र in The Federal Democratic Republic of Nepal (Asia)
§

District

Examples:

  • Bandarban zila in The People's Republic of Bangladesh (Asia)
  • Barguna zila in The People's Republic of Bangladesh (Asia)
  • Bogra zila in The People's Republic of Bangladesh (Asia)
§

DistrictMunicipality

Examples:

  • Akmenės rajono savivaldybė in The Republic of Lithuania (Europe)
  • Alytaus rajono savivaldybė in The Republic of Lithuania (Europe)
  • Anykščių rajono savivaldybė in The Republic of Lithuania (Europe)
§

DistrictWithSpecialStatus

Examples:

  • Brčko Distrikt in Bosnia and Herzegovina (Europe)
§

DistrictsUnderRepublicAdministration

Examples:

  • Nohiyahoi Tobei Jumhurí in The Republic of Tajikistan (Asia)
§

Division

Examples:

  • বরিশাল বিভাগ in The People's Republic of Bangladesh (Asia)
  • চট্টগ্রাম বিভাগ in The People's Republic of Bangladesh (Asia)
  • ঢাকা বিভাগ in The People's Republic of Bangladesh (Asia)
§

EconomicPrefecture

Examples:

  • Nana-Grébizi in The Central African Republic (Africa)
  • Sangha-Mbaéré in The Central African Republic (Africa)
§

Emirate

Examples:

  • 'Ajmān in The United Arab Emirates (Asia)
  • Abū Z̧aby [Abu Dhabi] in The United Arab Emirates (Asia)
  • Dubayy in The United Arab Emirates (Asia)
§

Entity

Examples:

  • Federacija Bosna i Hercegovina in Bosnia and Herzegovina (Europe)
  • Republika Srpska in Bosnia and Herzegovina (Europe)
§

EuropeanCollectivity

Examples:

  • Alsace in The French Republic (Europe)
§

FederalCapitalTerritory

Examples:

  • Islamabad in The Islamic Republic of Pakistan (Asia)
§

FederalDependency

Examples:

  • Dependencias Federales in The Bolivarian Republic of Venezuela (Americas)
§

FederalDistrict

Examples:

  • Distrito Federal in The Federative Republic of Brazil (Americas)
§

FederalTerritory

Examples:

  • Wilayah Persekutuan Kuala Lumpur in Malaysia (Asia)
  • Wilayah Persekutuan Labuan in Malaysia (Asia)
  • Wilayah Persekutuan Putrajaya in Malaysia (Asia)
§

FreeMunicipalConsortium

Examples:

  • Agrigento in The Italian Republic (Europe)
  • Caltanissetta in The Italian Republic (Europe)
  • Enna in The Italian Republic (Europe)
§

GeographicalEntity

Examples:

  • Ascension in Saint Helena, Ascension and Tristan da Cunha (Africa)
  • Saint Helena in Saint Helena, Ascension and Tristan da Cunha (Africa)
  • Tristan da Cunha in Saint Helena, Ascension and Tristan da Cunha (Africa)
§

GeographicalRegion

Examples:

  • Ilhas de Barlavento in The Republic of Cabo Verde (Africa)
  • Ilhas de Sotavento in The Republic of Cabo Verde (Africa)
  • Central in The Republic of Uganda (Africa)
§

GeographicalUnit

Examples:

  • Jawa in The Republic of Indonesia (Asia)
  • Kalimantan in The Republic of Indonesia (Asia)
  • Kepulauan Maluku in The Republic of Indonesia (Asia)
§

Governorate

Examples:

  • Al Manamah (Al ‘Asimah) in The Kingdom of Bahrain (Asia)
  • Al Janubiyah in The Kingdom of Bahrain (Asia)
  • Al Muharraq in The Kingdom of Bahrain (Asia)
§

GroupOfIslands

Examples:

  • Gilbert Islands in The Republic of Kiribati (Oceania)
  • Line Islands in The Republic of Kiribati (Oceania)
  • Phoenix Islands in The Republic of Kiribati (Oceania)
§

IndigenousRegion

Examples:

  • Emberá-Wounaan in The Republic of Panamá (Americas)
  • Guna Yala in The Republic of Panamá (Americas)
  • Ngäbe-Buglé in The Republic of Panamá (Americas)
§

Island

Examples:

  • New Providence in The Commonwealth of The Bahamas (Americas)
  • Anjouan in The Union of the Comoros (Africa)
  • Grande Comore in The Union of the Comoros (Africa)
§

IslandCouncil

Examples:

  • Niutao in Tuvalu (Oceania)
  • Nukufetau in Tuvalu (Oceania)
  • Nukulaelae in Tuvalu (Oceania)
§

LocalCouncil

Examples:

  • Attard in The Republic of Malta (Europe)
  • Balzan in The Republic of Malta (Europe)
  • Birgu in The Republic of Malta (Europe)
§

LondonBorough

Examples:

  • Barking and Dagenham in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Brent in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Bexley in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

MetropolitanAdministration

Examples:

  • Krung Thep Maha Nakhon [Bangkok] in The Kingdom of Thailand (Asia)
§

MetropolitanCity

Examples:

  • Bari in The Italian Republic (Europe)
  • Bologna in The Italian Republic (Europe)
  • Cagliari in The Italian Republic (Europe)
§

MetropolitanCollectivityWithSpecialStatus

Examples:

  • Corse in The French Republic (Europe)
  • Métropole de Lyon in The French Republic (Europe)
  • Paris in The French Republic (Europe)
§

MetropolitanDepartment

Examples:

  • Ain in The French Republic (Europe)
  • Aisne in The French Republic (Europe)
  • Allier in The French Republic (Europe)
§

MetropolitanDistrict

Examples:

  • Birmingham in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Barnsley in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Bolton in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

MetropolitanRegion

Examples:

  • Auvergne-Rhône-Alpes in The French Republic (Europe)
  • Bourgogne-Franche-Comté in The French Republic (Europe)
  • Saint-Barthélemy in The French Republic (Europe)
§

Municipality

Examples:

  • Baki in The Republic of Azerbaijan (Asia)
  • Gäncä in The Republic of Azerbaijan (Asia)
  • Länkäran City in The Republic of Azerbaijan (Asia)
§

Oblast

Examples:

  • Brestskaya voblasts' (be) Brestskaya oblast' (ru) in The Republic of Belarus (Europe)
  • Homyel'skaya voblasts' (be) Gomel'skaya oblast' (ru) in The Republic of Belarus (Europe)
  • Hrodzenskaya voblasts' (be) Grodnenskaya oblast' (ru) in The Republic of Belarus (Europe)
§

OutlyingArea

Examples:

  • American Samoa in The United States of America (Americas)
  • Guam in The United States of America (Americas)
  • Northern Mariana Islands in The United States of America (Americas)
§

OverseasCollectivity

Examples:

  • Polynésie française in The French Republic (Europe)
  • Saint-Pierre-et-Miquelon in The French Republic (Europe)
  • Terres Australes Françaises in The French Republic (Europe)
§

OverseasDepartmentalCollectivity

Examples:

  • Guadeloupe in The French Republic (Europe)
  • La Réunion in The French Republic (Europe)
  • Mayotte in The French Republic (Europe)
§

OverseasUniqueTerritorialCollectivity

Examples:

  • Martinique in The French Republic (Europe)
  • Guyane (française) in The French Republic (Europe)
§

PakistanAdministeredArea

Examples:

  • Gilgit-Baltistan in The Islamic Republic of Pakistan (Asia)
  • Azad Kashmir in The Islamic Republic of Pakistan (Asia)
§

Parish

Examples:

  • Canillo in The Principality of Andorra (Europe)
  • Encamp in The Principality of Andorra (Europe)
  • La Massana in The Principality of Andorra (Europe)
§

Popularate

Examples:

  • Banghazi in The State of Libya (Africa)
  • Al Butnan in The State of Libya (Africa)
  • Darnah in The State of Libya (Africa)
§

Prefecture

Examples:

  • Ouham in The Central African Republic (Africa)
  • Bamingui-Bangoran in The Central African Republic (Africa)
  • Basse-Kotto in The Central African Republic (Africa)
§

Province

Examples:

  • Balkh in The Islamic Republic of Afghanistan (Asia)
  • Bamian in The Islamic Republic of Afghanistan (Asia)
  • Badghis in The Islamic Republic of Afghanistan (Asia)
§

Quarter

Examples:

  • La Colle in The Principality of Monaco (Europe)
  • La Condamine in The Principality of Monaco (Europe)
  • Fontvieille in The Principality of Monaco (Europe)
§

Rayon

Examples:

  • Abseron in The Republic of Azerbaijan (Asia)
  • Agstafa in The Republic of Azerbaijan (Asia)
  • Agcabädi in The Republic of Azerbaijan (Asia)
§

Region

Examples:

  • Aragacotn in The Republic of Armenia (Asia)
  • Ararat in The Republic of Armenia (Asia)
  • Armavir in The Republic of Armenia (Asia)
§

RegionalState

Examples:

  • Afar in The Federal Democratic Republic of Ethiopia (Africa)
  • Amara in The Federal Democratic Republic of Ethiopia (Africa)
  • Binshangul Gumuz in The Federal Democratic Republic of Ethiopia (Africa)
§

Republic

Examples:

  • Adygeya, Respublika in The Russian Federation (Europe)
  • Altay, Respublika in The Russian Federation (Europe)
  • Bashkortostan, Respublika in The Russian Federation (Europe)
§

RuralMunicipality

Examples:

  • Alutaguse in The Republic of Estonia (Europe)
  • Anija in The Republic of Estonia (Europe)
  • Antsla in The Republic of Estonia (Europe)
§

SelfGovernedPart

Examples:

  • Ágion Óros in The Hellenic Republic (Europe)
§

SpecialAdministrativeCity

Examples:

  • Phatthaya in The Kingdom of Thailand (Asia)
§

SpecialAdministrativeRegion

Examples:

  • Xianggang (zh) ** in The People's Republic of China (Asia)
  • Aomen (zh) *** in The People's Republic of China (Asia)
  • Oecussi in The Democratic Republic of Timor-Leste (Asia)
§

SpecialCity

Examples:

  • 라선특별시 in The Democratic People's Republic of Korea (Asia)
  • Seoul Teugbyeolsi [Seoul-T'ukpyolshi] in The Republic of Korea (Asia)
§

SpecialIslandAuthority

Examples:

  • Chatham Islands Territory in New Zealand (Oceania)
§

SpecialMunicipality

Examples:

  • Bonaire in Bonaire, Sint Eustatius and Saba (Americas)
  • Saba in Bonaire, Sint Eustatius and Saba (Americas)
  • Sint Eustatius in Bonaire, Sint Eustatius and Saba (Americas)
§

SpecialRegion

Examples:

  • Yogyakarta in The Republic of Indonesia (Asia)
§

SpecialSelfGoverningCity

Examples:

  • 세종특별자치시 in The Republic of Korea (Asia)
§

SpecialSelfGoverningProvince

Examples:

  • Jejudo [Cheju-do] in The Republic of Korea (Asia)
§

State

Examples:

  • Burgenland in The Republic of Austria (Europe)
  • Kärnten in The Republic of Austria (Europe)
  • Niederösterreich in The Republic of Austria (Europe)
§

StateCity

Examples:

  • Daugavpils in The Republic of Latvia (Europe)
  • Jelgava in The Republic of Latvia (Europe)
  • Jurmala in The Republic of Latvia (Europe)
§

TerritorialUnit

Examples:

  • Stînga Nistrului, unitatea teritoriala din in The Republic of Moldova (Europe)
§

Territory

Examples:

  • Australian Capital Territory in The Commonwealth of Australia (Oceania)
  • Northern Territory in The Commonwealth of Australia (Oceania)
  • Northwest Territories in Canada (Americas)
§

Town

Examples:

  • Jwaneng in The Republic of Botswana (Africa)
  • Lobatse in The Republic of Botswana (Africa)
  • Selibe Phikwe in The Republic of Botswana (Africa)
§

TownCouncil

Examples:

  • Funafuti in Tuvalu (Oceania)
§

TwoTierCounty

Examples:

  • Buckinghamshire in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Cambridgeshire in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Cumbria in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

UnionTerritory

Examples:

  • Chandigarh in The Republic of India (Asia)
  • Dādra and Nagar Haveli and Damān and Diu in The Republic of India (Asia)
  • Delhi in The Republic of India (Asia)
§

UnitaryAuthority

Examples:

  • Isle of Anglesey [Sir Ynys Môn GB-YNM] in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Bath and North East Somerset in The United Kingdom of Great Britain and Northern Ireland (Europe)
  • Blackburn with Darwen in The United Kingdom of Great Britain and Northern Ireland (Europe)
§

UrbanCommunity

Examples:

  • Niamey in The Republic of the Niger (Africa)
§

UrbanMunicipality

Examples:

  • Haapsalu in The Republic of Estonia (Europe)
  • Keila in The Republic of Estonia (Europe)
  • Kohtla-Järve in The Republic of Estonia (Europe)
§

Voivodeship

Examples:

  • Dolnośląskie in The Republic of Poland (Europe)
  • Kujawsko-pomorskie in The Republic of Poland (Europe)
  • Lubelskie in The Republic of Poland (Europe)
§

Ward

Examples:

  • Tobago in The Republic of Trinidad and Tobago (Americas)
§

Zone

Examples:

  • Bagmati in The Federal Democratic Republic of Nepal (Asia)
  • Bheri in The Federal Democratic Republic of Nepal (Asia)
  • Dhawalagiri in The Federal Democratic Republic of Nepal (Asia)

Trait Implementations§

source§

impl Clone for SubdivisionType

source§

fn clone(&self) -> SubdivisionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SubdivisionType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SubdivisionType

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SubdivisionType

source§

fn eq(&self, other: &SubdivisionType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SubdivisionType

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToString for SubdivisionType

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl TryFrom<&str> for SubdivisionType

§

type Error = SearchError

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for SubdivisionType

source§

impl StructuralPartialEq for SubdivisionType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

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