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 => "nan",
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 "nan" => 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}