1#![allow(non_camel_case_types)]
2
3#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
4pub enum Country {
5 Andorra,
7 UnitedArabEmirates,
9 Afghanistan,
11 AntiguaAndBarbuda,
13 Anguilla,
15 Albania,
17 Armenia,
19 Angola,
21 Antarctica,
23 Argentina,
25 AmericanSamoa,
27 Austria,
29 Australia,
31 Aruba,
33 ÅlandIslands,
35 Azerbaijan,
37 BosniaAndHerzegovina,
39 Barbados,
41 Bangladesh,
43 Belgium,
45 BurkinaFaso,
47 Bulgaria,
49 Bahrain,
51 Burundi,
53 Benin,
55 SaintBarthélemy,
57 Bermuda,
59 BruneiDarussalam,
61 BoliviaPlurinationalState,
63 BonaireSintEustatiusAndSaba,
65 Brazil,
67 Bahamas,
69 Bhutan,
71 BouvetIsland,
73 Botswana,
75 Belarus,
77 Belize,
79 Canada,
81 CocosKeelingIslands,
83 CongoDemocraticRepublic,
85 CentralAfricanRepublic,
87 Congo,
89 Switzerland,
91 CôteDivoire,
93 CookIslands,
95 Chile,
97 Cameroon,
99 China,
101 Colombia,
103 CostaRica,
105 Cuba,
107 CaboVerde,
109 Curaçao,
111 ChristmasIsland,
113 Cyprus,
115 Czechia,
117 Germany,
119 Djibouti,
121 Denmark,
123 Dominica,
125 DominicanRepublic,
127 Algeria,
129 Ecuador,
131 Estonia,
133 Egypt,
135 WesternSahara,
137 Eritrea,
139 Spain,
141 Ethiopia,
143 Finland,
145 Fiji,
147 FalklandIslandsMalvinas,
149 MicronesiaFederatedStates,
151 FaroeIslands,
153 France,
155 Gabon,
157 UnitedKingdomGreatBritainAndNorthernIreland,
159 Grenada,
161 Georgia,
163 FrenchGuiana,
165 Guernsey,
167 Ghana,
169 Gibraltar,
171 Greenland,
173 Gambia,
175 Guinea,
177 Guadeloupe,
179 EquatorialGuinea,
181 Greece,
183 SouthGeorgiaAndSouthSandwichIslands,
185 Guatemala,
187 Guam,
189 GuineaBissau,
191 Guyana,
193 HongKong,
195 HeardIslandAndMcdonaldIslands,
197 Honduras,
199 Croatia,
201 Haiti,
203 Hungary,
205 Indonesia,
207 Ireland,
209 Israel,
211 IsleMan,
213 India,
215 BritishIndianOceanTerritory,
217 Iraq,
219 IranIslamicRepublic,
221 Iceland,
223 Italy,
225 Jersey,
227 Jamaica,
229 Jordan,
231 Japan,
233 Kenya,
235 Kyrgyzstan,
237 Cambodia,
239 Kiribati,
241 Comoros,
243 SaintKittsAndNevis,
245 KoreaDemocraticPeoplesRepublic,
247 KoreaRepublic,
249 Kuwait,
251 CaymanIslands,
253 Kazakhstan,
255 LaoPeoplesDemocraticRepublic,
257 Lebanon,
259 SaintLucia,
261 Liechtenstein,
263 SriLanka,
265 Liberia,
267 Lesotho,
269 Lithuania,
271 Luxembourg,
273 Latvia,
275 Libya,
277 Morocco,
279 Monaco,
281 MoldovaRepublic,
283 Montenegro,
285 SaintMartinFrenchPart,
287 Madagascar,
289 MarshallIslands,
291 NorthMacedonia,
293 Mali,
295 Myanmar,
297 Mongolia,
299 Macao,
301 NorthernMarianaIslands,
303 Martinique,
305 Mauritania,
307 Montserrat,
309 Malta,
311 Mauritius,
313 Maldives,
315 Malawi,
317 Mexico,
319 Malaysia,
321 Mozambique,
323 Namibia,
325 NewCaledonia,
327 Niger,
329 NorfolkIsland,
331 Nigeria,
333 Nicaragua,
335 Netherlands,
337 Norway,
339 Nepal,
341 Nauru,
343 Niue,
345 NewZealand,
347 Oman,
349 Panama,
351 Peru,
353 FrenchPolynesia,
355 PapuaNewGuinea,
357 Philippines,
359 Pakistan,
361 Poland,
363 SaintPierreAndMiquelon,
365 Pitcairn,
367 PuertoRico,
369 PalestineState,
371 Portugal,
373 Palau,
375 Paraguay,
377 Qatar,
379 Réunion,
381 Romania,
383 Serbia,
385 RussianFederation,
387 Rwanda,
389 SaudiArabia,
391 SolomonIslands,
393 Seychelles,
395 Sudan,
397 Sweden,
399 Singapore,
401 SaintHelenaAscensionAndTristanDaCunha,
403 Slovenia,
405 SvalbardAndJanMayen,
407 Slovakia,
409 SierraLeone,
411 SanMarino,
413 Senegal,
415 Somalia,
417 Suriname,
419 SouthSudan,
421 SaoTomeAndPrincipe,
423 ElSalvador,
425 SintMaartenDutchPart,
427 SyrianArabRepublic,
429 Eswatini,
431 TurksAndCaicosIslands,
433 Chad,
435 FrenchSouthernTerritories,
437 Togo,
439 Thailand,
441 Tajikistan,
443 Tokelau,
445 TimorLeste,
447 Turkmenistan,
449 Tunisia,
451 Tonga,
453 Türkiye,
455 TrinidadAndTobago,
457 Tuvalu,
459 TaiwanProvinceChina,
461 TanzaniaUnitedRepublic,
463 Ukraine,
465 Uganda,
467 UnitedStatesMinorOutlyingIslands,
469 UnitedStatesAmerica,
471 Uruguay,
473 Uzbekistan,
475 HolySee,
477 SaintVincentAndGrenadines,
479 VenezuelaBolivarianRepublic,
481 VirginIslandsBritish,
483 VirginIslandsUS,
485 VietNam,
487 Vanuatu,
489 WallisAndFutuna,
491 Samoa,
493 Yemen,
495 Mayotte,
497 SouthAfrica,
499 Zambia,
501 Zimbabwe,
503 Kosovo,
505 UnitedKingdomNorthernIreland,
507}
508
509impl crate::Code for Country {
510 fn code(&self) -> &str {
511 match self {
512 Country::Andorra => "AD",
513 Country::UnitedArabEmirates => "AE",
514 Country::Afghanistan => "AF",
515 Country::AntiguaAndBarbuda => "AG",
516 Country::Anguilla => "AI",
517 Country::Albania => "AL",
518 Country::Armenia => "AM",
519 Country::Angola => "AO",
520 Country::Antarctica => "AQ",
521 Country::Argentina => "AR",
522 Country::AmericanSamoa => "AS",
523 Country::Austria => "AT",
524 Country::Australia => "AU",
525 Country::Aruba => "AW",
526 Country::ÅlandIslands => "AX",
527 Country::Azerbaijan => "AZ",
528 Country::BosniaAndHerzegovina => "BA",
529 Country::Barbados => "BB",
530 Country::Bangladesh => "BD",
531 Country::Belgium => "BE",
532 Country::BurkinaFaso => "BF",
533 Country::Bulgaria => "BG",
534 Country::Bahrain => "BH",
535 Country::Burundi => "BI",
536 Country::Benin => "BJ",
537 Country::SaintBarthélemy => "BL",
538 Country::Bermuda => "BM",
539 Country::BruneiDarussalam => "BN",
540 Country::BoliviaPlurinationalState => "BO",
541 Country::BonaireSintEustatiusAndSaba => "BQ",
542 Country::Brazil => "BR",
543 Country::Bahamas => "BS",
544 Country::Bhutan => "BT",
545 Country::BouvetIsland => "BV",
546 Country::Botswana => "BW",
547 Country::Belarus => "BY",
548 Country::Belize => "BZ",
549 Country::Canada => "CA",
550 Country::CocosKeelingIslands => "CC",
551 Country::CongoDemocraticRepublic => "CD",
552 Country::CentralAfricanRepublic => "CF",
553 Country::Congo => "CG",
554 Country::Switzerland => "CH",
555 Country::CôteDivoire => "CI",
556 Country::CookIslands => "CK",
557 Country::Chile => "CL",
558 Country::Cameroon => "CM",
559 Country::China => "CN",
560 Country::Colombia => "CO",
561 Country::CostaRica => "CR",
562 Country::Cuba => "CU",
563 Country::CaboVerde => "CV",
564 Country::Curaçao => "CW",
565 Country::ChristmasIsland => "CX",
566 Country::Cyprus => "CY",
567 Country::Czechia => "CZ",
568 Country::Germany => "DE",
569 Country::Djibouti => "DJ",
570 Country::Denmark => "DK",
571 Country::Dominica => "DM",
572 Country::DominicanRepublic => "DO",
573 Country::Algeria => "DZ",
574 Country::Ecuador => "EC",
575 Country::Estonia => "EE",
576 Country::Egypt => "EG",
577 Country::WesternSahara => "EH",
578 Country::Eritrea => "ER",
579 Country::Spain => "ES",
580 Country::Ethiopia => "ET",
581 Country::Finland => "FI",
582 Country::Fiji => "FJ",
583 Country::FalklandIslandsMalvinas => "FK",
584 Country::MicronesiaFederatedStates => "FM",
585 Country::FaroeIslands => "FO",
586 Country::France => "FR",
587 Country::Gabon => "GA",
588 Country::UnitedKingdomGreatBritainAndNorthernIreland => "GB",
589 Country::Grenada => "GD",
590 Country::Georgia => "GE",
591 Country::FrenchGuiana => "GF",
592 Country::Guernsey => "GG",
593 Country::Ghana => "GH",
594 Country::Gibraltar => "GI",
595 Country::Greenland => "GL",
596 Country::Gambia => "GM",
597 Country::Guinea => "GN",
598 Country::Guadeloupe => "GP",
599 Country::EquatorialGuinea => "GQ",
600 Country::Greece => "GR",
601 Country::SouthGeorgiaAndSouthSandwichIslands => "GS",
602 Country::Guatemala => "GT",
603 Country::Guam => "GU",
604 Country::GuineaBissau => "GW",
605 Country::Guyana => "GY",
606 Country::HongKong => "HK",
607 Country::HeardIslandAndMcdonaldIslands => "HM",
608 Country::Honduras => "HN",
609 Country::Croatia => "HR",
610 Country::Haiti => "HT",
611 Country::Hungary => "HU",
612 Country::Indonesia => "ID",
613 Country::Ireland => "IE",
614 Country::Israel => "IL",
615 Country::IsleMan => "IM",
616 Country::India => "IN",
617 Country::BritishIndianOceanTerritory => "IO",
618 Country::Iraq => "IQ",
619 Country::IranIslamicRepublic => "IR",
620 Country::Iceland => "IS",
621 Country::Italy => "IT",
622 Country::Jersey => "JE",
623 Country::Jamaica => "JM",
624 Country::Jordan => "JO",
625 Country::Japan => "JP",
626 Country::Kenya => "KE",
627 Country::Kyrgyzstan => "KG",
628 Country::Cambodia => "KH",
629 Country::Kiribati => "KI",
630 Country::Comoros => "KM",
631 Country::SaintKittsAndNevis => "KN",
632 Country::KoreaDemocraticPeoplesRepublic => "KP",
633 Country::KoreaRepublic => "KR",
634 Country::Kuwait => "KW",
635 Country::CaymanIslands => "KY",
636 Country::Kazakhstan => "KZ",
637 Country::LaoPeoplesDemocraticRepublic => "LA",
638 Country::Lebanon => "LB",
639 Country::SaintLucia => "LC",
640 Country::Liechtenstein => "LI",
641 Country::SriLanka => "LK",
642 Country::Liberia => "LR",
643 Country::Lesotho => "LS",
644 Country::Lithuania => "LT",
645 Country::Luxembourg => "LU",
646 Country::Latvia => "LV",
647 Country::Libya => "LY",
648 Country::Morocco => "MA",
649 Country::Monaco => "MC",
650 Country::MoldovaRepublic => "MD",
651 Country::Montenegro => "ME",
652 Country::SaintMartinFrenchPart => "MF",
653 Country::Madagascar => "MG",
654 Country::MarshallIslands => "MH",
655 Country::NorthMacedonia => "MK",
656 Country::Mali => "ML",
657 Country::Myanmar => "MM",
658 Country::Mongolia => "MN",
659 Country::Macao => "MO",
660 Country::NorthernMarianaIslands => "MP",
661 Country::Martinique => "MQ",
662 Country::Mauritania => "MR",
663 Country::Montserrat => "MS",
664 Country::Malta => "MT",
665 Country::Mauritius => "MU",
666 Country::Maldives => "MV",
667 Country::Malawi => "MW",
668 Country::Mexico => "MX",
669 Country::Malaysia => "MY",
670 Country::Mozambique => "MZ",
671 Country::Namibia => "NA",
672 Country::NewCaledonia => "NC",
673 Country::Niger => "NE",
674 Country::NorfolkIsland => "NF",
675 Country::Nigeria => "NG",
676 Country::Nicaragua => "NI",
677 Country::Netherlands => "NL",
678 Country::Norway => "NO",
679 Country::Nepal => "NP",
680 Country::Nauru => "NR",
681 Country::Niue => "NU",
682 Country::NewZealand => "NZ",
683 Country::Oman => "OM",
684 Country::Panama => "PA",
685 Country::Peru => "PE",
686 Country::FrenchPolynesia => "PF",
687 Country::PapuaNewGuinea => "PG",
688 Country::Philippines => "PH",
689 Country::Pakistan => "PK",
690 Country::Poland => "PL",
691 Country::SaintPierreAndMiquelon => "PM",
692 Country::Pitcairn => "PN",
693 Country::PuertoRico => "PR",
694 Country::PalestineState => "PS",
695 Country::Portugal => "PT",
696 Country::Palau => "PW",
697 Country::Paraguay => "PY",
698 Country::Qatar => "QA",
699 Country::Réunion => "RE",
700 Country::Romania => "RO",
701 Country::Serbia => "RS",
702 Country::RussianFederation => "RU",
703 Country::Rwanda => "RW",
704 Country::SaudiArabia => "SA",
705 Country::SolomonIslands => "SB",
706 Country::Seychelles => "SC",
707 Country::Sudan => "SD",
708 Country::Sweden => "SE",
709 Country::Singapore => "SG",
710 Country::SaintHelenaAscensionAndTristanDaCunha => "SH",
711 Country::Slovenia => "SI",
712 Country::SvalbardAndJanMayen => "SJ",
713 Country::Slovakia => "SK",
714 Country::SierraLeone => "SL",
715 Country::SanMarino => "SM",
716 Country::Senegal => "SN",
717 Country::Somalia => "SO",
718 Country::Suriname => "SR",
719 Country::SouthSudan => "SS",
720 Country::SaoTomeAndPrincipe => "ST",
721 Country::ElSalvador => "SV",
722 Country::SintMaartenDutchPart => "SX",
723 Country::SyrianArabRepublic => "SY",
724 Country::Eswatini => "SZ",
725 Country::TurksAndCaicosIslands => "TC",
726 Country::Chad => "TD",
727 Country::FrenchSouthernTerritories => "TF",
728 Country::Togo => "TG",
729 Country::Thailand => "TH",
730 Country::Tajikistan => "TJ",
731 Country::Tokelau => "TK",
732 Country::TimorLeste => "TL",
733 Country::Turkmenistan => "TM",
734 Country::Tunisia => "TN",
735 Country::Tonga => "TO",
736 Country::Türkiye => "TR",
737 Country::TrinidadAndTobago => "TT",
738 Country::Tuvalu => "TV",
739 Country::TaiwanProvinceChina => "TW",
740 Country::TanzaniaUnitedRepublic => "TZ",
741 Country::Ukraine => "UA",
742 Country::Uganda => "UG",
743 Country::UnitedStatesMinorOutlyingIslands => "UM",
744 Country::UnitedStatesAmerica => "US",
745 Country::Uruguay => "UY",
746 Country::Uzbekistan => "UZ",
747 Country::HolySee => "VA",
748 Country::SaintVincentAndGrenadines => "VC",
749 Country::VenezuelaBolivarianRepublic => "VE",
750 Country::VirginIslandsBritish => "VG",
751 Country::VirginIslandsUS => "VI",
752 Country::VietNam => "VN",
753 Country::Vanuatu => "VU",
754 Country::WallisAndFutuna => "WF",
755 Country::Samoa => "WS",
756 Country::Yemen => "YE",
757 Country::Mayotte => "YT",
758 Country::SouthAfrica => "ZA",
759 Country::Zambia => "ZM",
760 Country::Zimbabwe => "ZW",
761 Country::Kosovo => "1A",
762 Country::UnitedKingdomNorthernIreland => "XI",
763 }
764 }
765}
766
767impl crate::Description for Country {
768 fn description(&self) -> &str {
769 match self {
770 Country::Andorra => "Andorra",
771 Country::UnitedArabEmirates => "United Arab Emirates (the)",
772 Country::Afghanistan => "Afghanistan",
773 Country::AntiguaAndBarbuda => "Antigua and Barbuda",
774 Country::Anguilla => "Anguilla",
775 Country::Albania => "Albania",
776 Country::Armenia => "Armenia",
777 Country::Angola => "Angola",
778 Country::Antarctica => "Antarctica",
779 Country::Argentina => "Argentina",
780 Country::AmericanSamoa => "American Samoa",
781 Country::Austria => "Austria",
782 Country::Australia => "Australia",
783 Country::Aruba => "Aruba",
784 Country::ÅlandIslands => "Åland Islands",
785 Country::Azerbaijan => "Azerbaijan",
786 Country::BosniaAndHerzegovina => "Bosnia and Herzegovina",
787 Country::Barbados => "Barbados",
788 Country::Bangladesh => "Bangladesh",
789 Country::Belgium => "Belgium",
790 Country::BurkinaFaso => "Burkina Faso",
791 Country::Bulgaria => "Bulgaria",
792 Country::Bahrain => "Bahrain",
793 Country::Burundi => "Burundi",
794 Country::Benin => "Benin",
795 Country::SaintBarthélemy => "Saint Barthélemy",
796 Country::Bermuda => "Bermuda",
797 Country::BruneiDarussalam => "Brunei Darussalam",
798 Country::BoliviaPlurinationalState => "Bolivia (Plurinational State of)",
799 Country::BonaireSintEustatiusAndSaba => "Bonaire, Sint Eustatius and Saba",
800 Country::Brazil => "Brazil",
801 Country::Bahamas => "Bahamas (the)",
802 Country::Bhutan => "Bhutan",
803 Country::BouvetIsland => "Bouvet Island",
804 Country::Botswana => "Botswana",
805 Country::Belarus => "Belarus",
806 Country::Belize => "Belize",
807 Country::Canada => "Canada",
808 Country::CocosKeelingIslands => "Cocos (Keeling) Islands (the)",
809 Country::CongoDemocraticRepublic => "Congo (the Democratic Republic of the)",
810 Country::CentralAfricanRepublic => "Central African Republic (the)",
811 Country::Congo => "Congo (the)",
812 Country::Switzerland => "Switzerland",
813 Country::CôteDivoire => "Côte d'Ivoire",
814 Country::CookIslands => "Cook Islands (the)",
815 Country::Chile => "Chile",
816 Country::Cameroon => "Cameroon",
817 Country::China => "China",
818 Country::Colombia => "Colombia",
819 Country::CostaRica => "Costa Rica",
820 Country::Cuba => "Cuba",
821 Country::CaboVerde => "Cabo Verde",
822 Country::Curaçao => "Curaçao",
823 Country::ChristmasIsland => "Christmas Island",
824 Country::Cyprus => "Cyprus",
825 Country::Czechia => "Czechia",
826 Country::Germany => "Germany",
827 Country::Djibouti => "Djibouti",
828 Country::Denmark => "Denmark",
829 Country::Dominica => "Dominica",
830 Country::DominicanRepublic => "Dominican Republic (the)",
831 Country::Algeria => "Algeria",
832 Country::Ecuador => "Ecuador",
833 Country::Estonia => "Estonia",
834 Country::Egypt => "Egypt",
835 Country::WesternSahara => "Western Sahara*",
836 Country::Eritrea => "Eritrea",
837 Country::Spain => "Spain",
838 Country::Ethiopia => "Ethiopia",
839 Country::Finland => "Finland",
840 Country::Fiji => "Fiji",
841 Country::FalklandIslandsMalvinas => "Falkland Islands (the) [Malvinas]",
842 Country::MicronesiaFederatedStates => "Micronesia (Federated States of)",
843 Country::FaroeIslands => "Faroe Islands (the)",
844 Country::France => "France",
845 Country::Gabon => "Gabon",
846 Country::UnitedKingdomGreatBritainAndNorthernIreland => {
847 "United Kingdom of Great Britain and Northern Ireland (the)"
848 }
849 Country::Grenada => "Grenada",
850 Country::Georgia => "Georgia",
851 Country::FrenchGuiana => "French Guiana",
852 Country::Guernsey => "Guernsey",
853 Country::Ghana => "Ghana",
854 Country::Gibraltar => "Gibraltar",
855 Country::Greenland => "Greenland",
856 Country::Gambia => "Gambia (the)",
857 Country::Guinea => "Guinea",
858 Country::Guadeloupe => "Guadeloupe",
859 Country::EquatorialGuinea => "Equatorial Guinea",
860 Country::Greece => "Greece",
861 Country::SouthGeorgiaAndSouthSandwichIslands => {
862 "South Georgia and the South Sandwich Islands"
863 }
864 Country::Guatemala => "Guatemala",
865 Country::Guam => "Guam",
866 Country::GuineaBissau => "Guinea-Bissau",
867 Country::Guyana => "Guyana",
868 Country::HongKong => "Hong Kong",
869 Country::HeardIslandAndMcdonaldIslands => "Heard Island and McDonald Islands",
870 Country::Honduras => "Honduras",
871 Country::Croatia => "Croatia",
872 Country::Haiti => "Haiti",
873 Country::Hungary => "Hungary",
874 Country::Indonesia => "Indonesia",
875 Country::Ireland => "Ireland",
876 Country::Israel => "Israel",
877 Country::IsleMan => "Isle of Man",
878 Country::India => "India",
879 Country::BritishIndianOceanTerritory => "British Indian Ocean Territory (the)",
880 Country::Iraq => "Iraq",
881 Country::IranIslamicRepublic => "Iran (Islamic Republic of)",
882 Country::Iceland => "Iceland",
883 Country::Italy => "Italy",
884 Country::Jersey => "Jersey",
885 Country::Jamaica => "Jamaica",
886 Country::Jordan => "Jordan",
887 Country::Japan => "Japan",
888 Country::Kenya => "Kenya",
889 Country::Kyrgyzstan => "Kyrgyzstan",
890 Country::Cambodia => "Cambodia",
891 Country::Kiribati => "Kiribati",
892 Country::Comoros => "Comoros (the)",
893 Country::SaintKittsAndNevis => "Saint Kitts and Nevis",
894 Country::KoreaDemocraticPeoplesRepublic => {
895 "Korea (the Democratic People's Republic of)"
896 }
897 Country::KoreaRepublic => "Korea (the Republic of)",
898 Country::Kuwait => "Kuwait",
899 Country::CaymanIslands => "Cayman Islands (the)",
900 Country::Kazakhstan => "Kazakhstan",
901 Country::LaoPeoplesDemocraticRepublic => "Lao People's Democratic Republic (the)",
902 Country::Lebanon => "Lebanon",
903 Country::SaintLucia => "Saint Lucia",
904 Country::Liechtenstein => "Liechtenstein",
905 Country::SriLanka => "Sri Lanka",
906 Country::Liberia => "Liberia",
907 Country::Lesotho => "Lesotho",
908 Country::Lithuania => "Lithuania",
909 Country::Luxembourg => "Luxembourg",
910 Country::Latvia => "Latvia",
911 Country::Libya => "Libya",
912 Country::Morocco => "Morocco",
913 Country::Monaco => "Monaco",
914 Country::MoldovaRepublic => "Moldova (the Republic of)",
915 Country::Montenegro => "Montenegro",
916 Country::SaintMartinFrenchPart => "Saint Martin (French part)",
917 Country::Madagascar => "Madagascar",
918 Country::MarshallIslands => "Marshall Islands (the)",
919 Country::NorthMacedonia => "North Macedonia",
920 Country::Mali => "Mali",
921 Country::Myanmar => "Myanmar",
922 Country::Mongolia => "Mongolia",
923 Country::Macao => "Macao",
924 Country::NorthernMarianaIslands => "Northern Mariana Islands (the)",
925 Country::Martinique => "Martinique",
926 Country::Mauritania => "Mauritania",
927 Country::Montserrat => "Montserrat",
928 Country::Malta => "Malta",
929 Country::Mauritius => "Mauritius",
930 Country::Maldives => "Maldives",
931 Country::Malawi => "Malawi",
932 Country::Mexico => "Mexico",
933 Country::Malaysia => "Malaysia",
934 Country::Mozambique => "Mozambique",
935 Country::Namibia => "Namibia",
936 Country::NewCaledonia => "New Caledonia",
937 Country::Niger => "Niger (the)",
938 Country::NorfolkIsland => "Norfolk Island",
939 Country::Nigeria => "Nigeria",
940 Country::Nicaragua => "Nicaragua",
941 Country::Netherlands => "Netherlands (the)",
942 Country::Norway => "Norway",
943 Country::Nepal => "Nepal",
944 Country::Nauru => "Nauru",
945 Country::Niue => "Niue",
946 Country::NewZealand => "New Zealand",
947 Country::Oman => "Oman",
948 Country::Panama => "Panama",
949 Country::Peru => "Peru",
950 Country::FrenchPolynesia => "French Polynesia",
951 Country::PapuaNewGuinea => "Papua New Guinea",
952 Country::Philippines => "Philippines (the)",
953 Country::Pakistan => "Pakistan",
954 Country::Poland => "Poland",
955 Country::SaintPierreAndMiquelon => "Saint Pierre and Miquelon",
956 Country::Pitcairn => "Pitcairn",
957 Country::PuertoRico => "Puerto Rico",
958 Country::PalestineState => "Palestine, State of",
959 Country::Portugal => "Portugal",
960 Country::Palau => "Palau",
961 Country::Paraguay => "Paraguay",
962 Country::Qatar => "Qatar",
963 Country::Réunion => "Réunion",
964 Country::Romania => "Romania",
965 Country::Serbia => "Serbia",
966 Country::RussianFederation => "Russian Federation (the)",
967 Country::Rwanda => "Rwanda",
968 Country::SaudiArabia => "Saudi Arabia",
969 Country::SolomonIslands => "Solomon Islands",
970 Country::Seychelles => "Seychelles",
971 Country::Sudan => "Sudan (the)",
972 Country::Sweden => "Sweden",
973 Country::Singapore => "Singapore",
974 Country::SaintHelenaAscensionAndTristanDaCunha => {
975 "Saint Helena, Ascension and Tristan da Cunha"
976 }
977 Country::Slovenia => "Slovenia",
978 Country::SvalbardAndJanMayen => "Svalbard and Jan Mayen",
979 Country::Slovakia => "Slovakia",
980 Country::SierraLeone => "Sierra Leone",
981 Country::SanMarino => "San Marino",
982 Country::Senegal => "Senegal",
983 Country::Somalia => "Somalia",
984 Country::Suriname => "Suriname",
985 Country::SouthSudan => "South Sudan",
986 Country::SaoTomeAndPrincipe => "Sao Tome and Principe",
987 Country::ElSalvador => "El Salvador",
988 Country::SintMaartenDutchPart => "Sint Maarten (Dutch part)",
989 Country::SyrianArabRepublic => "Syrian Arab Republic (the)",
990 Country::Eswatini => "Eswatini",
991 Country::TurksAndCaicosIslands => "Turks and Caicos Islands (the)",
992 Country::Chad => "Chad",
993 Country::FrenchSouthernTerritories => "French Southern Territories (the)",
994 Country::Togo => "Togo",
995 Country::Thailand => "Thailand",
996 Country::Tajikistan => "Tajikistan",
997 Country::Tokelau => "Tokelau",
998 Country::TimorLeste => "Timor-Leste",
999 Country::Turkmenistan => "Turkmenistan",
1000 Country::Tunisia => "Tunisia",
1001 Country::Tonga => "Tonga",
1002 Country::Türkiye => "Türkiye",
1003 Country::TrinidadAndTobago => "Trinidad and Tobago",
1004 Country::Tuvalu => "Tuvalu",
1005 Country::TaiwanProvinceChina => "Taiwan (Province of China)",
1006 Country::TanzaniaUnitedRepublic => "Tanzania, the United Republic of",
1007 Country::Ukraine => "Ukraine",
1008 Country::Uganda => "Uganda",
1009 Country::UnitedStatesMinorOutlyingIslands => {
1010 "United States Minor Outlying Islands (the)"
1011 }
1012 Country::UnitedStatesAmerica => "United States of America (the)",
1013 Country::Uruguay => "Uruguay",
1014 Country::Uzbekistan => "Uzbekistan",
1015 Country::HolySee => "Holy See (the)",
1016 Country::SaintVincentAndGrenadines => "Saint Vincent and the Grenadines",
1017 Country::VenezuelaBolivarianRepublic => "Venezuela (Bolivarian Republic of)",
1018 Country::VirginIslandsBritish => "Virgin Islands (British)",
1019 Country::VirginIslandsUS => "Virgin Islands (U.S.)",
1020 Country::VietNam => "Viet Nam",
1021 Country::Vanuatu => "Vanuatu",
1022 Country::WallisAndFutuna => "Wallis and Futuna",
1023 Country::Samoa => "Samoa",
1024 Country::Yemen => "Yemen",
1025 Country::Mayotte => "Mayotte",
1026 Country::SouthAfrica => "South Africa",
1027 Country::Zambia => "Zambia",
1028 Country::Zimbabwe => "Zimbabwe",
1029 Country::Kosovo => "Kosovo",
1030 Country::UnitedKingdomNorthernIreland => "United Kingdom (Northern Ireland)",
1031 }
1032 }
1033}
1034
1035impl crate::FromCode for Country {
1036 fn from_code(code: &str) -> Option<Self>
1037 where
1038 Self: Sized,
1039 {
1040 match code {
1041 "AD" => Some(Country::Andorra),
1042 "AE" => Some(Country::UnitedArabEmirates),
1043 "AF" => Some(Country::Afghanistan),
1044 "AG" => Some(Country::AntiguaAndBarbuda),
1045 "AI" => Some(Country::Anguilla),
1046 "AL" => Some(Country::Albania),
1047 "AM" => Some(Country::Armenia),
1048 "AO" => Some(Country::Angola),
1049 "AQ" => Some(Country::Antarctica),
1050 "AR" => Some(Country::Argentina),
1051 "AS" => Some(Country::AmericanSamoa),
1052 "AT" => Some(Country::Austria),
1053 "AU" => Some(Country::Australia),
1054 "AW" => Some(Country::Aruba),
1055 "AX" => Some(Country::ÅlandIslands),
1056 "AZ" => Some(Country::Azerbaijan),
1057 "BA" => Some(Country::BosniaAndHerzegovina),
1058 "BB" => Some(Country::Barbados),
1059 "BD" => Some(Country::Bangladesh),
1060 "BE" => Some(Country::Belgium),
1061 "BF" => Some(Country::BurkinaFaso),
1062 "BG" => Some(Country::Bulgaria),
1063 "BH" => Some(Country::Bahrain),
1064 "BI" => Some(Country::Burundi),
1065 "BJ" => Some(Country::Benin),
1066 "BL" => Some(Country::SaintBarthélemy),
1067 "BM" => Some(Country::Bermuda),
1068 "BN" => Some(Country::BruneiDarussalam),
1069 "BO" => Some(Country::BoliviaPlurinationalState),
1070 "BQ" => Some(Country::BonaireSintEustatiusAndSaba),
1071 "BR" => Some(Country::Brazil),
1072 "BS" => Some(Country::Bahamas),
1073 "BT" => Some(Country::Bhutan),
1074 "BV" => Some(Country::BouvetIsland),
1075 "BW" => Some(Country::Botswana),
1076 "BY" => Some(Country::Belarus),
1077 "BZ" => Some(Country::Belize),
1078 "CA" => Some(Country::Canada),
1079 "CC" => Some(Country::CocosKeelingIslands),
1080 "CD" => Some(Country::CongoDemocraticRepublic),
1081 "CF" => Some(Country::CentralAfricanRepublic),
1082 "CG" => Some(Country::Congo),
1083 "CH" => Some(Country::Switzerland),
1084 "CI" => Some(Country::CôteDivoire),
1085 "CK" => Some(Country::CookIslands),
1086 "CL" => Some(Country::Chile),
1087 "CM" => Some(Country::Cameroon),
1088 "CN" => Some(Country::China),
1089 "CO" => Some(Country::Colombia),
1090 "CR" => Some(Country::CostaRica),
1091 "CU" => Some(Country::Cuba),
1092 "CV" => Some(Country::CaboVerde),
1093 "CW" => Some(Country::Curaçao),
1094 "CX" => Some(Country::ChristmasIsland),
1095 "CY" => Some(Country::Cyprus),
1096 "CZ" => Some(Country::Czechia),
1097 "DE" => Some(Country::Germany),
1098 "DJ" => Some(Country::Djibouti),
1099 "DK" => Some(Country::Denmark),
1100 "DM" => Some(Country::Dominica),
1101 "DO" => Some(Country::DominicanRepublic),
1102 "DZ" => Some(Country::Algeria),
1103 "EC" => Some(Country::Ecuador),
1104 "EE" => Some(Country::Estonia),
1105 "EG" => Some(Country::Egypt),
1106 "EH" => Some(Country::WesternSahara),
1107 "ER" => Some(Country::Eritrea),
1108 "ES" => Some(Country::Spain),
1109 "ET" => Some(Country::Ethiopia),
1110 "FI" => Some(Country::Finland),
1111 "FJ" => Some(Country::Fiji),
1112 "FK" => Some(Country::FalklandIslandsMalvinas),
1113 "FM" => Some(Country::MicronesiaFederatedStates),
1114 "FO" => Some(Country::FaroeIslands),
1115 "FR" => Some(Country::France),
1116 "GA" => Some(Country::Gabon),
1117 "GB" => Some(Country::UnitedKingdomGreatBritainAndNorthernIreland),
1118 "GD" => Some(Country::Grenada),
1119 "GE" => Some(Country::Georgia),
1120 "GF" => Some(Country::FrenchGuiana),
1121 "GG" => Some(Country::Guernsey),
1122 "GH" => Some(Country::Ghana),
1123 "GI" => Some(Country::Gibraltar),
1124 "GL" => Some(Country::Greenland),
1125 "GM" => Some(Country::Gambia),
1126 "GN" => Some(Country::Guinea),
1127 "GP" => Some(Country::Guadeloupe),
1128 "GQ" => Some(Country::EquatorialGuinea),
1129 "GR" => Some(Country::Greece),
1130 "GS" => Some(Country::SouthGeorgiaAndSouthSandwichIslands),
1131 "GT" => Some(Country::Guatemala),
1132 "GU" => Some(Country::Guam),
1133 "GW" => Some(Country::GuineaBissau),
1134 "GY" => Some(Country::Guyana),
1135 "HK" => Some(Country::HongKong),
1136 "HM" => Some(Country::HeardIslandAndMcdonaldIslands),
1137 "HN" => Some(Country::Honduras),
1138 "HR" => Some(Country::Croatia),
1139 "HT" => Some(Country::Haiti),
1140 "HU" => Some(Country::Hungary),
1141 "ID" => Some(Country::Indonesia),
1142 "IE" => Some(Country::Ireland),
1143 "IL" => Some(Country::Israel),
1144 "IM" => Some(Country::IsleMan),
1145 "IN" => Some(Country::India),
1146 "IO" => Some(Country::BritishIndianOceanTerritory),
1147 "IQ" => Some(Country::Iraq),
1148 "IR" => Some(Country::IranIslamicRepublic),
1149 "IS" => Some(Country::Iceland),
1150 "IT" => Some(Country::Italy),
1151 "JE" => Some(Country::Jersey),
1152 "JM" => Some(Country::Jamaica),
1153 "JO" => Some(Country::Jordan),
1154 "JP" => Some(Country::Japan),
1155 "KE" => Some(Country::Kenya),
1156 "KG" => Some(Country::Kyrgyzstan),
1157 "KH" => Some(Country::Cambodia),
1158 "KI" => Some(Country::Kiribati),
1159 "KM" => Some(Country::Comoros),
1160 "KN" => Some(Country::SaintKittsAndNevis),
1161 "KP" => Some(Country::KoreaDemocraticPeoplesRepublic),
1162 "KR" => Some(Country::KoreaRepublic),
1163 "KW" => Some(Country::Kuwait),
1164 "KY" => Some(Country::CaymanIslands),
1165 "KZ" => Some(Country::Kazakhstan),
1166 "LA" => Some(Country::LaoPeoplesDemocraticRepublic),
1167 "LB" => Some(Country::Lebanon),
1168 "LC" => Some(Country::SaintLucia),
1169 "LI" => Some(Country::Liechtenstein),
1170 "LK" => Some(Country::SriLanka),
1171 "LR" => Some(Country::Liberia),
1172 "LS" => Some(Country::Lesotho),
1173 "LT" => Some(Country::Lithuania),
1174 "LU" => Some(Country::Luxembourg),
1175 "LV" => Some(Country::Latvia),
1176 "LY" => Some(Country::Libya),
1177 "MA" => Some(Country::Morocco),
1178 "MC" => Some(Country::Monaco),
1179 "MD" => Some(Country::MoldovaRepublic),
1180 "ME" => Some(Country::Montenegro),
1181 "MF" => Some(Country::SaintMartinFrenchPart),
1182 "MG" => Some(Country::Madagascar),
1183 "MH" => Some(Country::MarshallIslands),
1184 "MK" => Some(Country::NorthMacedonia),
1185 "ML" => Some(Country::Mali),
1186 "MM" => Some(Country::Myanmar),
1187 "MN" => Some(Country::Mongolia),
1188 "MO" => Some(Country::Macao),
1189 "MP" => Some(Country::NorthernMarianaIslands),
1190 "MQ" => Some(Country::Martinique),
1191 "MR" => Some(Country::Mauritania),
1192 "MS" => Some(Country::Montserrat),
1193 "MT" => Some(Country::Malta),
1194 "MU" => Some(Country::Mauritius),
1195 "MV" => Some(Country::Maldives),
1196 "MW" => Some(Country::Malawi),
1197 "MX" => Some(Country::Mexico),
1198 "MY" => Some(Country::Malaysia),
1199 "MZ" => Some(Country::Mozambique),
1200 "NA" => Some(Country::Namibia),
1201 "NC" => Some(Country::NewCaledonia),
1202 "NE" => Some(Country::Niger),
1203 "NF" => Some(Country::NorfolkIsland),
1204 "NG" => Some(Country::Nigeria),
1205 "NI" => Some(Country::Nicaragua),
1206 "NL" => Some(Country::Netherlands),
1207 "NO" => Some(Country::Norway),
1208 "NP" => Some(Country::Nepal),
1209 "NR" => Some(Country::Nauru),
1210 "NU" => Some(Country::Niue),
1211 "NZ" => Some(Country::NewZealand),
1212 "OM" => Some(Country::Oman),
1213 "PA" => Some(Country::Panama),
1214 "PE" => Some(Country::Peru),
1215 "PF" => Some(Country::FrenchPolynesia),
1216 "PG" => Some(Country::PapuaNewGuinea),
1217 "PH" => Some(Country::Philippines),
1218 "PK" => Some(Country::Pakistan),
1219 "PL" => Some(Country::Poland),
1220 "PM" => Some(Country::SaintPierreAndMiquelon),
1221 "PN" => Some(Country::Pitcairn),
1222 "PR" => Some(Country::PuertoRico),
1223 "PS" => Some(Country::PalestineState),
1224 "PT" => Some(Country::Portugal),
1225 "PW" => Some(Country::Palau),
1226 "PY" => Some(Country::Paraguay),
1227 "QA" => Some(Country::Qatar),
1228 "RE" => Some(Country::Réunion),
1229 "RO" => Some(Country::Romania),
1230 "RS" => Some(Country::Serbia),
1231 "RU" => Some(Country::RussianFederation),
1232 "RW" => Some(Country::Rwanda),
1233 "SA" => Some(Country::SaudiArabia),
1234 "SB" => Some(Country::SolomonIslands),
1235 "SC" => Some(Country::Seychelles),
1236 "SD" => Some(Country::Sudan),
1237 "SE" => Some(Country::Sweden),
1238 "SG" => Some(Country::Singapore),
1239 "SH" => Some(Country::SaintHelenaAscensionAndTristanDaCunha),
1240 "SI" => Some(Country::Slovenia),
1241 "SJ" => Some(Country::SvalbardAndJanMayen),
1242 "SK" => Some(Country::Slovakia),
1243 "SL" => Some(Country::SierraLeone),
1244 "SM" => Some(Country::SanMarino),
1245 "SN" => Some(Country::Senegal),
1246 "SO" => Some(Country::Somalia),
1247 "SR" => Some(Country::Suriname),
1248 "SS" => Some(Country::SouthSudan),
1249 "ST" => Some(Country::SaoTomeAndPrincipe),
1250 "SV" => Some(Country::ElSalvador),
1251 "SX" => Some(Country::SintMaartenDutchPart),
1252 "SY" => Some(Country::SyrianArabRepublic),
1253 "SZ" => Some(Country::Eswatini),
1254 "TC" => Some(Country::TurksAndCaicosIslands),
1255 "TD" => Some(Country::Chad),
1256 "TF" => Some(Country::FrenchSouthernTerritories),
1257 "TG" => Some(Country::Togo),
1258 "TH" => Some(Country::Thailand),
1259 "TJ" => Some(Country::Tajikistan),
1260 "TK" => Some(Country::Tokelau),
1261 "TL" => Some(Country::TimorLeste),
1262 "TM" => Some(Country::Turkmenistan),
1263 "TN" => Some(Country::Tunisia),
1264 "TO" => Some(Country::Tonga),
1265 "TR" => Some(Country::Türkiye),
1266 "TT" => Some(Country::TrinidadAndTobago),
1267 "TV" => Some(Country::Tuvalu),
1268 "TW" => Some(Country::TaiwanProvinceChina),
1269 "TZ" => Some(Country::TanzaniaUnitedRepublic),
1270 "UA" => Some(Country::Ukraine),
1271 "UG" => Some(Country::Uganda),
1272 "UM" => Some(Country::UnitedStatesMinorOutlyingIslands),
1273 "US" => Some(Country::UnitedStatesAmerica),
1274 "UY" => Some(Country::Uruguay),
1275 "UZ" => Some(Country::Uzbekistan),
1276 "VA" => Some(Country::HolySee),
1277 "VC" => Some(Country::SaintVincentAndGrenadines),
1278 "VE" => Some(Country::VenezuelaBolivarianRepublic),
1279 "VG" => Some(Country::VirginIslandsBritish),
1280 "VI" => Some(Country::VirginIslandsUS),
1281 "VN" => Some(Country::VietNam),
1282 "VU" => Some(Country::Vanuatu),
1283 "WF" => Some(Country::WallisAndFutuna),
1284 "WS" => Some(Country::Samoa),
1285 "YE" => Some(Country::Yemen),
1286 "YT" => Some(Country::Mayotte),
1287 "ZA" => Some(Country::SouthAfrica),
1288 "ZM" => Some(Country::Zambia),
1289 "ZW" => Some(Country::Zimbabwe),
1290 "1A" => Some(Country::Kosovo),
1291 "XI" => Some(Country::UnitedKingdomNorthernIreland),
1292 _ => None,
1293 }
1294 }
1295}
1296
1297#[cfg(feature = "iso_country")]
1298impl std::convert::TryFrom<Country> for iso_country::Country {
1299 type Error = ErrFromCountry;
1300 fn try_from(value: Country) -> Result<Self, Self::Error> {
1301 match value {
1302 Country::Andorra => Ok(iso_country::Country::AD),
1303 Country::UnitedArabEmirates => Ok(iso_country::Country::AE),
1304 Country::Afghanistan => Ok(iso_country::Country::AF),
1305 Country::AntiguaAndBarbuda => Ok(iso_country::Country::AG),
1306 Country::Anguilla => Ok(iso_country::Country::AI),
1307 Country::Albania => Ok(iso_country::Country::AL),
1308 Country::Armenia => Ok(iso_country::Country::AM),
1309 Country::Angola => Ok(iso_country::Country::AO),
1310 Country::Antarctica => Ok(iso_country::Country::AQ),
1311 Country::Argentina => Ok(iso_country::Country::AR),
1312 Country::AmericanSamoa => Ok(iso_country::Country::AS),
1313 Country::Austria => Ok(iso_country::Country::AT),
1314 Country::Australia => Ok(iso_country::Country::AU),
1315 Country::Aruba => Ok(iso_country::Country::AW),
1316 Country::ÅlandIslands => Ok(iso_country::Country::AX),
1317 Country::Azerbaijan => Ok(iso_country::Country::AZ),
1318 Country::BosniaAndHerzegovina => Ok(iso_country::Country::BA),
1319 Country::Barbados => Ok(iso_country::Country::BB),
1320 Country::Bangladesh => Ok(iso_country::Country::BD),
1321 Country::Belgium => Ok(iso_country::Country::BE),
1322 Country::BurkinaFaso => Ok(iso_country::Country::BF),
1323 Country::Bulgaria => Ok(iso_country::Country::BG),
1324 Country::Bahrain => Ok(iso_country::Country::BH),
1325 Country::Burundi => Ok(iso_country::Country::BI),
1326 Country::Benin => Ok(iso_country::Country::BJ),
1327 Country::SaintBarthélemy => Ok(iso_country::Country::BL),
1328 Country::Bermuda => Ok(iso_country::Country::BM),
1329 Country::BruneiDarussalam => Ok(iso_country::Country::BN),
1330 Country::BoliviaPlurinationalState => Ok(iso_country::Country::BO),
1331 Country::BonaireSintEustatiusAndSaba => Ok(iso_country::Country::BQ),
1332 Country::Brazil => Ok(iso_country::Country::BR),
1333 Country::Bahamas => Ok(iso_country::Country::BS),
1334 Country::Bhutan => Ok(iso_country::Country::BT),
1335 Country::BouvetIsland => Ok(iso_country::Country::BV),
1336 Country::Botswana => Ok(iso_country::Country::BW),
1337 Country::Belarus => Ok(iso_country::Country::BY),
1338 Country::Belize => Ok(iso_country::Country::BZ),
1339 Country::Canada => Ok(iso_country::Country::CA),
1340 Country::CocosKeelingIslands => Ok(iso_country::Country::CC),
1341 Country::CongoDemocraticRepublic => Ok(iso_country::Country::CD),
1342 Country::CentralAfricanRepublic => Ok(iso_country::Country::CF),
1343 Country::Congo => Ok(iso_country::Country::CG),
1344 Country::Switzerland => Ok(iso_country::Country::CH),
1345 Country::CôteDivoire => Ok(iso_country::Country::CI),
1346 Country::CookIslands => Ok(iso_country::Country::CK),
1347 Country::Chile => Ok(iso_country::Country::CL),
1348 Country::Cameroon => Ok(iso_country::Country::CM),
1349 Country::China => Ok(iso_country::Country::CN),
1350 Country::Colombia => Ok(iso_country::Country::CO),
1351 Country::CostaRica => Ok(iso_country::Country::CR),
1352 Country::Cuba => Ok(iso_country::Country::CU),
1353 Country::CaboVerde => Ok(iso_country::Country::CV),
1354 Country::Curaçao => Ok(iso_country::Country::CW),
1355 Country::ChristmasIsland => Ok(iso_country::Country::CX),
1356 Country::Cyprus => Ok(iso_country::Country::CY),
1357 Country::Czechia => Ok(iso_country::Country::CZ),
1358 Country::Germany => Ok(iso_country::Country::DE),
1359 Country::Djibouti => Ok(iso_country::Country::DJ),
1360 Country::Denmark => Ok(iso_country::Country::DK),
1361 Country::Dominica => Ok(iso_country::Country::DM),
1362 Country::DominicanRepublic => Ok(iso_country::Country::DO),
1363 Country::Algeria => Ok(iso_country::Country::DZ),
1364 Country::Ecuador => Ok(iso_country::Country::EC),
1365 Country::Estonia => Ok(iso_country::Country::EE),
1366 Country::Egypt => Ok(iso_country::Country::EG),
1367 Country::WesternSahara => Ok(iso_country::Country::EH),
1368 Country::Eritrea => Ok(iso_country::Country::ER),
1369 Country::Spain => Ok(iso_country::Country::ES),
1370 Country::Ethiopia => Ok(iso_country::Country::ET),
1371 Country::Finland => Ok(iso_country::Country::FI),
1372 Country::Fiji => Ok(iso_country::Country::FJ),
1373 Country::FalklandIslandsMalvinas => Ok(iso_country::Country::FK),
1374 Country::MicronesiaFederatedStates => Ok(iso_country::Country::FM),
1375 Country::FaroeIslands => Ok(iso_country::Country::FO),
1376 Country::France => Ok(iso_country::Country::FR),
1377 Country::Gabon => Ok(iso_country::Country::GA),
1378 Country::UnitedKingdomGreatBritainAndNorthernIreland => Ok(iso_country::Country::GB),
1379 Country::Grenada => Ok(iso_country::Country::GD),
1380 Country::Georgia => Ok(iso_country::Country::GE),
1381 Country::FrenchGuiana => Ok(iso_country::Country::GF),
1382 Country::Guernsey => Ok(iso_country::Country::GG),
1383 Country::Ghana => Ok(iso_country::Country::GH),
1384 Country::Gibraltar => Ok(iso_country::Country::GI),
1385 Country::Greenland => Ok(iso_country::Country::GL),
1386 Country::Gambia => Ok(iso_country::Country::GM),
1387 Country::Guinea => Ok(iso_country::Country::GN),
1388 Country::Guadeloupe => Ok(iso_country::Country::GP),
1389 Country::EquatorialGuinea => Ok(iso_country::Country::GQ),
1390 Country::Greece => Ok(iso_country::Country::GR),
1391 Country::SouthGeorgiaAndSouthSandwichIslands => Ok(iso_country::Country::GS),
1392 Country::Guatemala => Ok(iso_country::Country::GT),
1393 Country::Guam => Ok(iso_country::Country::GU),
1394 Country::GuineaBissau => Ok(iso_country::Country::GW),
1395 Country::Guyana => Ok(iso_country::Country::GY),
1396 Country::HongKong => Ok(iso_country::Country::HK),
1397 Country::HeardIslandAndMcdonaldIslands => Ok(iso_country::Country::HM),
1398 Country::Honduras => Ok(iso_country::Country::HN),
1399 Country::Croatia => Ok(iso_country::Country::HR),
1400 Country::Haiti => Ok(iso_country::Country::HT),
1401 Country::Hungary => Ok(iso_country::Country::HU),
1402 Country::Indonesia => Ok(iso_country::Country::ID),
1403 Country::Ireland => Ok(iso_country::Country::IE),
1404 Country::Israel => Ok(iso_country::Country::IL),
1405 Country::IsleMan => Ok(iso_country::Country::IM),
1406 Country::India => Ok(iso_country::Country::IN),
1407 Country::BritishIndianOceanTerritory => Ok(iso_country::Country::IO),
1408 Country::Iraq => Ok(iso_country::Country::IQ),
1409 Country::IranIslamicRepublic => Ok(iso_country::Country::IR),
1410 Country::Iceland => Ok(iso_country::Country::IS),
1411 Country::Italy => Ok(iso_country::Country::IT),
1412 Country::Jersey => Ok(iso_country::Country::JE),
1413 Country::Jamaica => Ok(iso_country::Country::JM),
1414 Country::Jordan => Ok(iso_country::Country::JO),
1415 Country::Japan => Ok(iso_country::Country::JP),
1416 Country::Kenya => Ok(iso_country::Country::KE),
1417 Country::Kyrgyzstan => Ok(iso_country::Country::KG),
1418 Country::Cambodia => Ok(iso_country::Country::KH),
1419 Country::Kiribati => Ok(iso_country::Country::KI),
1420 Country::Comoros => Ok(iso_country::Country::KM),
1421 Country::SaintKittsAndNevis => Ok(iso_country::Country::KN),
1422 Country::KoreaDemocraticPeoplesRepublic => Ok(iso_country::Country::KP),
1423 Country::KoreaRepublic => Ok(iso_country::Country::KR),
1424 Country::Kuwait => Ok(iso_country::Country::KW),
1425 Country::CaymanIslands => Ok(iso_country::Country::KY),
1426 Country::Kazakhstan => Ok(iso_country::Country::KZ),
1427 Country::LaoPeoplesDemocraticRepublic => Ok(iso_country::Country::LA),
1428 Country::Lebanon => Ok(iso_country::Country::LB),
1429 Country::SaintLucia => Ok(iso_country::Country::LC),
1430 Country::Liechtenstein => Ok(iso_country::Country::LI),
1431 Country::SriLanka => Ok(iso_country::Country::LK),
1432 Country::Liberia => Ok(iso_country::Country::LR),
1433 Country::Lesotho => Ok(iso_country::Country::LS),
1434 Country::Lithuania => Ok(iso_country::Country::LT),
1435 Country::Luxembourg => Ok(iso_country::Country::LU),
1436 Country::Latvia => Ok(iso_country::Country::LV),
1437 Country::Libya => Ok(iso_country::Country::LY),
1438 Country::Morocco => Ok(iso_country::Country::MA),
1439 Country::Monaco => Ok(iso_country::Country::MC),
1440 Country::MoldovaRepublic => Ok(iso_country::Country::MD),
1441 Country::Montenegro => Ok(iso_country::Country::ME),
1442 Country::SaintMartinFrenchPart => Ok(iso_country::Country::MF),
1443 Country::Madagascar => Ok(iso_country::Country::MG),
1444 Country::MarshallIslands => Ok(iso_country::Country::MH),
1445 Country::NorthMacedonia => Ok(iso_country::Country::MK),
1446 Country::Mali => Ok(iso_country::Country::ML),
1447 Country::Myanmar => Ok(iso_country::Country::MM),
1448 Country::Mongolia => Ok(iso_country::Country::MN),
1449 Country::Macao => Ok(iso_country::Country::MO),
1450 Country::NorthernMarianaIslands => Ok(iso_country::Country::MP),
1451 Country::Martinique => Ok(iso_country::Country::MQ),
1452 Country::Mauritania => Ok(iso_country::Country::MR),
1453 Country::Montserrat => Ok(iso_country::Country::MS),
1454 Country::Malta => Ok(iso_country::Country::MT),
1455 Country::Mauritius => Ok(iso_country::Country::MU),
1456 Country::Maldives => Ok(iso_country::Country::MV),
1457 Country::Malawi => Ok(iso_country::Country::MW),
1458 Country::Mexico => Ok(iso_country::Country::MX),
1459 Country::Malaysia => Ok(iso_country::Country::MY),
1460 Country::Mozambique => Ok(iso_country::Country::MZ),
1461 Country::Namibia => Ok(iso_country::Country::NA),
1462 Country::NewCaledonia => Ok(iso_country::Country::NC),
1463 Country::Niger => Ok(iso_country::Country::NE),
1464 Country::NorfolkIsland => Ok(iso_country::Country::NF),
1465 Country::Nigeria => Ok(iso_country::Country::NG),
1466 Country::Nicaragua => Ok(iso_country::Country::NI),
1467 Country::Netherlands => Ok(iso_country::Country::NL),
1468 Country::Norway => Ok(iso_country::Country::NO),
1469 Country::Nepal => Ok(iso_country::Country::NP),
1470 Country::Nauru => Ok(iso_country::Country::NR),
1471 Country::Niue => Ok(iso_country::Country::NU),
1472 Country::NewZealand => Ok(iso_country::Country::NZ),
1473 Country::Oman => Ok(iso_country::Country::OM),
1474 Country::Panama => Ok(iso_country::Country::PA),
1475 Country::Peru => Ok(iso_country::Country::PE),
1476 Country::FrenchPolynesia => Ok(iso_country::Country::PF),
1477 Country::PapuaNewGuinea => Ok(iso_country::Country::PG),
1478 Country::Philippines => Ok(iso_country::Country::PH),
1479 Country::Pakistan => Ok(iso_country::Country::PK),
1480 Country::Poland => Ok(iso_country::Country::PL),
1481 Country::SaintPierreAndMiquelon => Ok(iso_country::Country::PM),
1482 Country::Pitcairn => Ok(iso_country::Country::PN),
1483 Country::PuertoRico => Ok(iso_country::Country::PR),
1484 Country::PalestineState => Ok(iso_country::Country::PS),
1485 Country::Portugal => Ok(iso_country::Country::PT),
1486 Country::Palau => Ok(iso_country::Country::PW),
1487 Country::Paraguay => Ok(iso_country::Country::PY),
1488 Country::Qatar => Ok(iso_country::Country::QA),
1489 Country::Réunion => Ok(iso_country::Country::RE),
1490 Country::Romania => Ok(iso_country::Country::RO),
1491 Country::Serbia => Ok(iso_country::Country::RS),
1492 Country::RussianFederation => Ok(iso_country::Country::RU),
1493 Country::Rwanda => Ok(iso_country::Country::RW),
1494 Country::SaudiArabia => Ok(iso_country::Country::SA),
1495 Country::SolomonIslands => Ok(iso_country::Country::SB),
1496 Country::Seychelles => Ok(iso_country::Country::SC),
1497 Country::Sudan => Ok(iso_country::Country::SD),
1498 Country::Sweden => Ok(iso_country::Country::SE),
1499 Country::Singapore => Ok(iso_country::Country::SG),
1500 Country::SaintHelenaAscensionAndTristanDaCunha => Ok(iso_country::Country::SH),
1501 Country::Slovenia => Ok(iso_country::Country::SI),
1502 Country::SvalbardAndJanMayen => Ok(iso_country::Country::SJ),
1503 Country::Slovakia => Ok(iso_country::Country::SK),
1504 Country::SierraLeone => Ok(iso_country::Country::SL),
1505 Country::SanMarino => Ok(iso_country::Country::SM),
1506 Country::Senegal => Ok(iso_country::Country::SN),
1507 Country::Somalia => Ok(iso_country::Country::SO),
1508 Country::Suriname => Ok(iso_country::Country::SR),
1509 Country::SouthSudan => Ok(iso_country::Country::SS),
1510 Country::SaoTomeAndPrincipe => Ok(iso_country::Country::ST),
1511 Country::ElSalvador => Ok(iso_country::Country::SV),
1512 Country::SintMaartenDutchPart => Ok(iso_country::Country::SX),
1513 Country::SyrianArabRepublic => Ok(iso_country::Country::SY),
1514 Country::Eswatini => Ok(iso_country::Country::SZ),
1515 Country::TurksAndCaicosIslands => Ok(iso_country::Country::TC),
1516 Country::Chad => Ok(iso_country::Country::TD),
1517 Country::FrenchSouthernTerritories => Ok(iso_country::Country::TF),
1518 Country::Togo => Ok(iso_country::Country::TG),
1519 Country::Thailand => Ok(iso_country::Country::TH),
1520 Country::Tajikistan => Ok(iso_country::Country::TJ),
1521 Country::Tokelau => Ok(iso_country::Country::TK),
1522 Country::TimorLeste => Ok(iso_country::Country::TL),
1523 Country::Turkmenistan => Ok(iso_country::Country::TM),
1524 Country::Tunisia => Ok(iso_country::Country::TN),
1525 Country::Tonga => Ok(iso_country::Country::TO),
1526 Country::Türkiye => Ok(iso_country::Country::TR),
1527 Country::TrinidadAndTobago => Ok(iso_country::Country::TT),
1528 Country::Tuvalu => Ok(iso_country::Country::TV),
1529 Country::TaiwanProvinceChina => Ok(iso_country::Country::TW),
1530 Country::TanzaniaUnitedRepublic => Ok(iso_country::Country::TZ),
1531 Country::Ukraine => Ok(iso_country::Country::UA),
1532 Country::Uganda => Ok(iso_country::Country::UG),
1533 Country::UnitedStatesMinorOutlyingIslands => Ok(iso_country::Country::UM),
1534 Country::UnitedStatesAmerica => Ok(iso_country::Country::US),
1535 Country::Uruguay => Ok(iso_country::Country::UY),
1536 Country::Uzbekistan => Ok(iso_country::Country::UZ),
1537 Country::HolySee => Ok(iso_country::Country::VA),
1538 Country::SaintVincentAndGrenadines => Ok(iso_country::Country::VC),
1539 Country::VenezuelaBolivarianRepublic => Ok(iso_country::Country::VE),
1540 Country::VirginIslandsBritish => Ok(iso_country::Country::VG),
1541 Country::VirginIslandsUS => Ok(iso_country::Country::VI),
1542 Country::VietNam => Ok(iso_country::Country::VN),
1543 Country::Vanuatu => Ok(iso_country::Country::VU),
1544 Country::WallisAndFutuna => Ok(iso_country::Country::WF),
1545 Country::Samoa => Ok(iso_country::Country::WS),
1546 Country::Yemen => Ok(iso_country::Country::YE),
1547 Country::Mayotte => Ok(iso_country::Country::YT),
1548 Country::SouthAfrica => Ok(iso_country::Country::ZA),
1549 Country::Zambia => Ok(iso_country::Country::ZM),
1550 Country::Zimbabwe => Ok(iso_country::Country::ZW),
1551 Country::Kosovo => Err(ErrFromCountry::Kosovo),
1552 Country::UnitedKingdomNorthernIreland => {
1553 Err(ErrFromCountry::UnitedKingdomNorthernIreland)
1554 }
1555 }
1556 }
1557}
1558
1559#[cfg(feature = "iso_country")]
1560pub enum ErrFromCountry {
1562 Kosovo,
1563 UnitedKingdomNorthernIreland,
1564}
1565
1566#[cfg(feature = "iso_country")]
1567impl std::convert::TryFrom<iso_country::Country> for Country {
1568 type Error = ErrFromIsoCountryCountry;
1569 fn try_from(value: iso_country::Country) -> Result<Country, Self::Error> {
1570 match value {
1571 iso_country::Country::AD => Ok(Country::Andorra),
1572 iso_country::Country::AE => Ok(Country::UnitedArabEmirates),
1573 iso_country::Country::AF => Ok(Country::Afghanistan),
1574 iso_country::Country::AG => Ok(Country::AntiguaAndBarbuda),
1575 iso_country::Country::AI => Ok(Country::Anguilla),
1576 iso_country::Country::AL => Ok(Country::Albania),
1577 iso_country::Country::AM => Ok(Country::Armenia),
1578 iso_country::Country::AO => Ok(Country::Angola),
1579 iso_country::Country::AQ => Ok(Country::Antarctica),
1580 iso_country::Country::AR => Ok(Country::Argentina),
1581 iso_country::Country::AS => Ok(Country::AmericanSamoa),
1582 iso_country::Country::AT => Ok(Country::Austria),
1583 iso_country::Country::AU => Ok(Country::Australia),
1584 iso_country::Country::AW => Ok(Country::Aruba),
1585 iso_country::Country::AX => Ok(Country::ÅlandIslands),
1586 iso_country::Country::AZ => Ok(Country::Azerbaijan),
1587 iso_country::Country::BA => Ok(Country::BosniaAndHerzegovina),
1588 iso_country::Country::BB => Ok(Country::Barbados),
1589 iso_country::Country::BD => Ok(Country::Bangladesh),
1590 iso_country::Country::BE => Ok(Country::Belgium),
1591 iso_country::Country::BF => Ok(Country::BurkinaFaso),
1592 iso_country::Country::BG => Ok(Country::Bulgaria),
1593 iso_country::Country::BH => Ok(Country::Bahrain),
1594 iso_country::Country::BI => Ok(Country::Burundi),
1595 iso_country::Country::BJ => Ok(Country::Benin),
1596 iso_country::Country::BL => Ok(Country::SaintBarthélemy),
1597 iso_country::Country::BM => Ok(Country::Bermuda),
1598 iso_country::Country::BN => Ok(Country::BruneiDarussalam),
1599 iso_country::Country::BO => Ok(Country::BoliviaPlurinationalState),
1600 iso_country::Country::BQ => Ok(Country::BonaireSintEustatiusAndSaba),
1601 iso_country::Country::BR => Ok(Country::Brazil),
1602 iso_country::Country::BS => Ok(Country::Bahamas),
1603 iso_country::Country::BT => Ok(Country::Bhutan),
1604 iso_country::Country::BV => Ok(Country::BouvetIsland),
1605 iso_country::Country::BW => Ok(Country::Botswana),
1606 iso_country::Country::BY => Ok(Country::Belarus),
1607 iso_country::Country::BZ => Ok(Country::Belize),
1608 iso_country::Country::CA => Ok(Country::Canada),
1609 iso_country::Country::CC => Ok(Country::CocosKeelingIslands),
1610 iso_country::Country::CD => Ok(Country::CongoDemocraticRepublic),
1611 iso_country::Country::CF => Ok(Country::CentralAfricanRepublic),
1612 iso_country::Country::CG => Ok(Country::Congo),
1613 iso_country::Country::CH => Ok(Country::Switzerland),
1614 iso_country::Country::CI => Ok(Country::CôteDivoire),
1615 iso_country::Country::CK => Ok(Country::CookIslands),
1616 iso_country::Country::CL => Ok(Country::Chile),
1617 iso_country::Country::CM => Ok(Country::Cameroon),
1618 iso_country::Country::CN => Ok(Country::China),
1619 iso_country::Country::CO => Ok(Country::Colombia),
1620 iso_country::Country::CR => Ok(Country::CostaRica),
1621 iso_country::Country::CU => Ok(Country::Cuba),
1622 iso_country::Country::CV => Ok(Country::CaboVerde),
1623 iso_country::Country::CW => Ok(Country::Curaçao),
1624 iso_country::Country::CX => Ok(Country::ChristmasIsland),
1625 iso_country::Country::CY => Ok(Country::Cyprus),
1626 iso_country::Country::CZ => Ok(Country::Czechia),
1627 iso_country::Country::DE => Ok(Country::Germany),
1628 iso_country::Country::DJ => Ok(Country::Djibouti),
1629 iso_country::Country::DK => Ok(Country::Denmark),
1630 iso_country::Country::DM => Ok(Country::Dominica),
1631 iso_country::Country::DO => Ok(Country::DominicanRepublic),
1632 iso_country::Country::DZ => Ok(Country::Algeria),
1633 iso_country::Country::EC => Ok(Country::Ecuador),
1634 iso_country::Country::EE => Ok(Country::Estonia),
1635 iso_country::Country::EG => Ok(Country::Egypt),
1636 iso_country::Country::EH => Ok(Country::WesternSahara),
1637 iso_country::Country::ER => Ok(Country::Eritrea),
1638 iso_country::Country::ES => Ok(Country::Spain),
1639 iso_country::Country::ET => Ok(Country::Ethiopia),
1640 iso_country::Country::FI => Ok(Country::Finland),
1641 iso_country::Country::FJ => Ok(Country::Fiji),
1642 iso_country::Country::FK => Ok(Country::FalklandIslandsMalvinas),
1643 iso_country::Country::FM => Ok(Country::MicronesiaFederatedStates),
1644 iso_country::Country::FO => Ok(Country::FaroeIslands),
1645 iso_country::Country::FR => Ok(Country::France),
1646 iso_country::Country::GA => Ok(Country::Gabon),
1647 iso_country::Country::GB => Ok(Country::UnitedKingdomGreatBritainAndNorthernIreland),
1648 iso_country::Country::GD => Ok(Country::Grenada),
1649 iso_country::Country::GE => Ok(Country::Georgia),
1650 iso_country::Country::GF => Ok(Country::FrenchGuiana),
1651 iso_country::Country::GG => Ok(Country::Guernsey),
1652 iso_country::Country::GH => Ok(Country::Ghana),
1653 iso_country::Country::GI => Ok(Country::Gibraltar),
1654 iso_country::Country::GL => Ok(Country::Greenland),
1655 iso_country::Country::GM => Ok(Country::Gambia),
1656 iso_country::Country::GN => Ok(Country::Guinea),
1657 iso_country::Country::GP => Ok(Country::Guadeloupe),
1658 iso_country::Country::GQ => Ok(Country::EquatorialGuinea),
1659 iso_country::Country::GR => Ok(Country::Greece),
1660 iso_country::Country::GS => Ok(Country::SouthGeorgiaAndSouthSandwichIslands),
1661 iso_country::Country::GT => Ok(Country::Guatemala),
1662 iso_country::Country::GU => Ok(Country::Guam),
1663 iso_country::Country::GW => Ok(Country::GuineaBissau),
1664 iso_country::Country::GY => Ok(Country::Guyana),
1665 iso_country::Country::HK => Ok(Country::HongKong),
1666 iso_country::Country::HM => Ok(Country::HeardIslandAndMcdonaldIslands),
1667 iso_country::Country::HN => Ok(Country::Honduras),
1668 iso_country::Country::HR => Ok(Country::Croatia),
1669 iso_country::Country::HT => Ok(Country::Haiti),
1670 iso_country::Country::HU => Ok(Country::Hungary),
1671 iso_country::Country::ID => Ok(Country::Indonesia),
1672 iso_country::Country::IE => Ok(Country::Ireland),
1673 iso_country::Country::IL => Ok(Country::Israel),
1674 iso_country::Country::IM => Ok(Country::IsleMan),
1675 iso_country::Country::IN => Ok(Country::India),
1676 iso_country::Country::IO => Ok(Country::BritishIndianOceanTerritory),
1677 iso_country::Country::IQ => Ok(Country::Iraq),
1678 iso_country::Country::IR => Ok(Country::IranIslamicRepublic),
1679 iso_country::Country::IS => Ok(Country::Iceland),
1680 iso_country::Country::IT => Ok(Country::Italy),
1681 iso_country::Country::JE => Ok(Country::Jersey),
1682 iso_country::Country::JM => Ok(Country::Jamaica),
1683 iso_country::Country::JO => Ok(Country::Jordan),
1684 iso_country::Country::JP => Ok(Country::Japan),
1685 iso_country::Country::KE => Ok(Country::Kenya),
1686 iso_country::Country::KG => Ok(Country::Kyrgyzstan),
1687 iso_country::Country::KH => Ok(Country::Cambodia),
1688 iso_country::Country::KI => Ok(Country::Kiribati),
1689 iso_country::Country::KM => Ok(Country::Comoros),
1690 iso_country::Country::KN => Ok(Country::SaintKittsAndNevis),
1691 iso_country::Country::KP => Ok(Country::KoreaDemocraticPeoplesRepublic),
1692 iso_country::Country::KR => Ok(Country::KoreaRepublic),
1693 iso_country::Country::KW => Ok(Country::Kuwait),
1694 iso_country::Country::KY => Ok(Country::CaymanIslands),
1695 iso_country::Country::KZ => Ok(Country::Kazakhstan),
1696 iso_country::Country::LA => Ok(Country::LaoPeoplesDemocraticRepublic),
1697 iso_country::Country::LB => Ok(Country::Lebanon),
1698 iso_country::Country::LC => Ok(Country::SaintLucia),
1699 iso_country::Country::LI => Ok(Country::Liechtenstein),
1700 iso_country::Country::LK => Ok(Country::SriLanka),
1701 iso_country::Country::LR => Ok(Country::Liberia),
1702 iso_country::Country::LS => Ok(Country::Lesotho),
1703 iso_country::Country::LT => Ok(Country::Lithuania),
1704 iso_country::Country::LU => Ok(Country::Luxembourg),
1705 iso_country::Country::LV => Ok(Country::Latvia),
1706 iso_country::Country::LY => Ok(Country::Libya),
1707 iso_country::Country::MA => Ok(Country::Morocco),
1708 iso_country::Country::MC => Ok(Country::Monaco),
1709 iso_country::Country::MD => Ok(Country::MoldovaRepublic),
1710 iso_country::Country::ME => Ok(Country::Montenegro),
1711 iso_country::Country::MF => Ok(Country::SaintMartinFrenchPart),
1712 iso_country::Country::MG => Ok(Country::Madagascar),
1713 iso_country::Country::MH => Ok(Country::MarshallIslands),
1714 iso_country::Country::MK => Ok(Country::NorthMacedonia),
1715 iso_country::Country::ML => Ok(Country::Mali),
1716 iso_country::Country::MM => Ok(Country::Myanmar),
1717 iso_country::Country::MN => Ok(Country::Mongolia),
1718 iso_country::Country::MO => Ok(Country::Macao),
1719 iso_country::Country::MP => Ok(Country::NorthernMarianaIslands),
1720 iso_country::Country::MQ => Ok(Country::Martinique),
1721 iso_country::Country::MR => Ok(Country::Mauritania),
1722 iso_country::Country::MS => Ok(Country::Montserrat),
1723 iso_country::Country::MT => Ok(Country::Malta),
1724 iso_country::Country::MU => Ok(Country::Mauritius),
1725 iso_country::Country::MV => Ok(Country::Maldives),
1726 iso_country::Country::MW => Ok(Country::Malawi),
1727 iso_country::Country::MX => Ok(Country::Mexico),
1728 iso_country::Country::MY => Ok(Country::Malaysia),
1729 iso_country::Country::MZ => Ok(Country::Mozambique),
1730 iso_country::Country::NA => Ok(Country::Namibia),
1731 iso_country::Country::NC => Ok(Country::NewCaledonia),
1732 iso_country::Country::NE => Ok(Country::Niger),
1733 iso_country::Country::NF => Ok(Country::NorfolkIsland),
1734 iso_country::Country::NG => Ok(Country::Nigeria),
1735 iso_country::Country::NI => Ok(Country::Nicaragua),
1736 iso_country::Country::NL => Ok(Country::Netherlands),
1737 iso_country::Country::NO => Ok(Country::Norway),
1738 iso_country::Country::NP => Ok(Country::Nepal),
1739 iso_country::Country::NR => Ok(Country::Nauru),
1740 iso_country::Country::NU => Ok(Country::Niue),
1741 iso_country::Country::NZ => Ok(Country::NewZealand),
1742 iso_country::Country::OM => Ok(Country::Oman),
1743 iso_country::Country::PA => Ok(Country::Panama),
1744 iso_country::Country::PE => Ok(Country::Peru),
1745 iso_country::Country::PF => Ok(Country::FrenchPolynesia),
1746 iso_country::Country::PG => Ok(Country::PapuaNewGuinea),
1747 iso_country::Country::PH => Ok(Country::Philippines),
1748 iso_country::Country::PK => Ok(Country::Pakistan),
1749 iso_country::Country::PL => Ok(Country::Poland),
1750 iso_country::Country::PM => Ok(Country::SaintPierreAndMiquelon),
1751 iso_country::Country::PN => Ok(Country::Pitcairn),
1752 iso_country::Country::PR => Ok(Country::PuertoRico),
1753 iso_country::Country::PS => Ok(Country::PalestineState),
1754 iso_country::Country::PT => Ok(Country::Portugal),
1755 iso_country::Country::PW => Ok(Country::Palau),
1756 iso_country::Country::PY => Ok(Country::Paraguay),
1757 iso_country::Country::QA => Ok(Country::Qatar),
1758 iso_country::Country::RE => Ok(Country::Réunion),
1759 iso_country::Country::RO => Ok(Country::Romania),
1760 iso_country::Country::RS => Ok(Country::Serbia),
1761 iso_country::Country::RU => Ok(Country::RussianFederation),
1762 iso_country::Country::RW => Ok(Country::Rwanda),
1763 iso_country::Country::SA => Ok(Country::SaudiArabia),
1764 iso_country::Country::SB => Ok(Country::SolomonIslands),
1765 iso_country::Country::SC => Ok(Country::Seychelles),
1766 iso_country::Country::SD => Ok(Country::Sudan),
1767 iso_country::Country::SE => Ok(Country::Sweden),
1768 iso_country::Country::SG => Ok(Country::Singapore),
1769 iso_country::Country::SH => Ok(Country::SaintHelenaAscensionAndTristanDaCunha),
1770 iso_country::Country::SI => Ok(Country::Slovenia),
1771 iso_country::Country::SJ => Ok(Country::SvalbardAndJanMayen),
1772 iso_country::Country::SK => Ok(Country::Slovakia),
1773 iso_country::Country::SL => Ok(Country::SierraLeone),
1774 iso_country::Country::SM => Ok(Country::SanMarino),
1775 iso_country::Country::SN => Ok(Country::Senegal),
1776 iso_country::Country::SO => Ok(Country::Somalia),
1777 iso_country::Country::SR => Ok(Country::Suriname),
1778 iso_country::Country::SS => Ok(Country::SouthSudan),
1779 iso_country::Country::ST => Ok(Country::SaoTomeAndPrincipe),
1780 iso_country::Country::SV => Ok(Country::ElSalvador),
1781 iso_country::Country::SX => Ok(Country::SintMaartenDutchPart),
1782 iso_country::Country::SY => Ok(Country::SyrianArabRepublic),
1783 iso_country::Country::SZ => Ok(Country::Eswatini),
1784 iso_country::Country::TC => Ok(Country::TurksAndCaicosIslands),
1785 iso_country::Country::TD => Ok(Country::Chad),
1786 iso_country::Country::TF => Ok(Country::FrenchSouthernTerritories),
1787 iso_country::Country::TG => Ok(Country::Togo),
1788 iso_country::Country::TH => Ok(Country::Thailand),
1789 iso_country::Country::TJ => Ok(Country::Tajikistan),
1790 iso_country::Country::TK => Ok(Country::Tokelau),
1791 iso_country::Country::TL => Ok(Country::TimorLeste),
1792 iso_country::Country::TM => Ok(Country::Turkmenistan),
1793 iso_country::Country::TN => Ok(Country::Tunisia),
1794 iso_country::Country::TO => Ok(Country::Tonga),
1795 iso_country::Country::TR => Ok(Country::Türkiye),
1796 iso_country::Country::TT => Ok(Country::TrinidadAndTobago),
1797 iso_country::Country::TV => Ok(Country::Tuvalu),
1798 iso_country::Country::TW => Ok(Country::TaiwanProvinceChina),
1799 iso_country::Country::TZ => Ok(Country::TanzaniaUnitedRepublic),
1800 iso_country::Country::UA => Ok(Country::Ukraine),
1801 iso_country::Country::UG => Ok(Country::Uganda),
1802 iso_country::Country::UM => Ok(Country::UnitedStatesMinorOutlyingIslands),
1803 iso_country::Country::US => Ok(Country::UnitedStatesAmerica),
1804 iso_country::Country::UY => Ok(Country::Uruguay),
1805 iso_country::Country::UZ => Ok(Country::Uzbekistan),
1806 iso_country::Country::VA => Ok(Country::HolySee),
1807 iso_country::Country::VC => Ok(Country::SaintVincentAndGrenadines),
1808 iso_country::Country::VE => Ok(Country::VenezuelaBolivarianRepublic),
1809 iso_country::Country::VG => Ok(Country::VirginIslandsBritish),
1810 iso_country::Country::VI => Ok(Country::VirginIslandsUS),
1811 iso_country::Country::VN => Ok(Country::VietNam),
1812 iso_country::Country::VU => Ok(Country::Vanuatu),
1813 iso_country::Country::WF => Ok(Country::WallisAndFutuna),
1814 iso_country::Country::WS => Ok(Country::Samoa),
1815 iso_country::Country::YE => Ok(Country::Yemen),
1816 iso_country::Country::YT => Ok(Country::Mayotte),
1817 iso_country::Country::ZA => Ok(Country::SouthAfrica),
1818 iso_country::Country::ZM => Ok(Country::Zambia),
1819 iso_country::Country::ZW => Ok(Country::Zimbabwe),
1820 iso_country::Country::Unspecified => Err(ErrFromIsoCountryCountry::Unspecified),
1821 }
1822 }
1823}
1824
1825#[cfg(feature = "iso_country")]
1826pub enum ErrFromIsoCountryCountry {
1828 Unspecified,
1829}