1#![allow(non_camel_case_types)]
2
3#[cfg_attr(feature = "specta", derive(specta::Type))]
4#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
5#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
6pub enum Country {
7 Andorra,
9 UnitedArabEmirates,
11 Afghanistan,
13 AntiguaAndBarbuda,
15 Anguilla,
17 Albania,
19 Armenia,
21 Angola,
23 Antarctica,
25 Argentina,
27 AmericanSamoa,
29 Austria,
31 Australia,
33 Aruba,
35 ÅlandIslands,
37 Azerbaijan,
39 BosniaAndHerzegovina,
41 Barbados,
43 Bangladesh,
45 Belgium,
47 BurkinaFaso,
49 Bulgaria,
51 Bahrain,
53 Burundi,
55 Benin,
57 SaintBarthélemy,
59 Bermuda,
61 BruneiDarussalam,
63 BoliviaPlurinationalState,
65 BonaireSintEustatiusAndSaba,
67 Brazil,
69 BahamasThe,
71 Bhutan,
73 BouvetIsland,
75 Botswana,
77 Belarus,
79 Belize,
81 Canada,
83 CocosKeelingIslands,
85 CongoDemocraticRepublic,
87 CentralAfricanRepublic,
89 Congo,
91 Switzerland,
93 CôteDivoire,
95 CookIslands,
97 Chile,
99 Cameroon,
101 China,
103 Colombia,
105 CostaRica,
107 Cuba,
109 CaboVerde,
111 Curaçao,
113 ChristmasIsland,
115 Cyprus,
117 Czechia,
119 Germany,
121 Djibouti,
123 Denmark,
125 Dominica,
127 DominicanRepublic,
129 Algeria,
131 Ecuador,
133 Estonia,
135 Egypt,
137 WesternSahara,
139 Eritrea,
141 Spain,
143 Ethiopia,
145 Finland,
147 Fiji,
149 FalklandIslandsMalvinas,
151 MicronesiaFederatedStates,
153 FaroeIslands,
155 France,
157 Gabon,
159 UnitedKingdomGreatBritainAndNorthernIreland,
161 Grenada,
163 Georgia,
165 FrenchGuiana,
167 Guernsey,
169 Ghana,
171 Gibraltar,
173 Greenland,
175 Gambia,
177 Guinea,
179 Guadeloupe,
181 EquatorialGuinea,
183 Greece,
185 SouthGeorgiaAndSouthSandwichIslands,
187 Guatemala,
189 Guam,
191 GuineaBissau,
193 Guyana,
195 HongKong,
197 HeardIslandAndMcdonaldIslands,
199 Honduras,
201 Croatia,
203 Haiti,
205 Hungary,
207 Indonesia,
209 Ireland,
211 Israel,
213 IsleMan,
215 India,
217 BritishIndianOceanTerritory,
219 Iraq,
221 IranIslamicRepublic,
223 Iceland,
225 Italy,
227 Jersey,
229 Jamaica,
231 Jordan,
233 Japan,
235 Kenya,
237 Kyrgyzstan,
239 Cambodia,
241 Kiribati,
243 Comoros,
245 SaintKittsAndNevis,
247 KoreaDemocraticPeoplesRepublic,
249 KoreaRepublic,
251 Kuwait,
253 CaymanIslands,
255 Kazakhstan,
257 LaoPeoplesDemocraticRepublic,
259 Lebanon,
261 SaintLucia,
263 Liechtenstein,
265 SriLanka,
267 Liberia,
269 Lesotho,
271 Lithuania,
273 Luxembourg,
275 Latvia,
277 Libya,
279 Morocco,
281 Monaco,
283 MoldovaRepublic,
285 Montenegro,
287 SaintMartinFrenchPart,
289 Madagascar,
291 MarshallIslands,
293 NorthMacedonia,
295 Mali,
297 Myanmar,
299 Mongolia,
301 Macao,
303 NorthernMarianaIslands,
305 Martinique,
307 Mauritania,
309 Montserrat,
311 Malta,
313 Mauritius,
315 Maldives,
317 Malawi,
319 Mexico,
321 Malaysia,
323 Mozambique,
325 Namibia,
327 NewCaledonia,
329 Niger,
331 NorfolkIsland,
333 Nigeria,
335 Nicaragua,
337 Netherlands,
339 Norway,
341 Nepal,
343 Nauru,
345 Niue,
347 NewZealand,
349 Oman,
351 Panama,
353 Peru,
355 FrenchPolynesia,
357 PapuaNewGuinea,
359 Philippines,
361 Pakistan,
363 Poland,
365 SaintPierreAndMiquelon,
367 Pitcairn,
369 PuertoRico,
371 PalestineState,
373 Portugal,
375 Palau,
377 Paraguay,
379 Qatar,
381 Réunion,
383 Romania,
385 Serbia,
387 RussianFederation,
389 Rwanda,
391 SaudiArabia,
393 SolomonIslands,
395 Seychelles,
397 Sudan,
399 Sweden,
401 Singapore,
403 SaintHelenaAscensionAndTristanDaCunha,
405 Slovenia,
407 SvalbardAndJanMayen,
409 Slovakia,
411 SierraLeone,
413 SanMarino,
415 Senegal,
417 Somalia,
419 Suriname,
421 SouthSudan,
423 SaoTomeAndPrincipe,
425 ElSalvador,
427 SintMaartenDutchPart,
429 SyrianArabRepublic,
431 Eswatini,
433 TurksAndCaicosIslands,
435 Chad,
437 FrenchSouthernTerritories,
439 Togo,
441 Thailand,
443 Tajikistan,
445 Tokelau,
447 TimorLeste,
449 Turkmenistan,
451 Tunisia,
453 Tonga,
455 Türkiye,
457 TrinidadAndTobago,
459 Tuvalu,
461 TaiwanProvinceChina,
463 TanzaniaUnitedRepublic,
465 Ukraine,
467 Uganda,
469 UnitedStatesMinorOutlyingIslands,
471 UnitedStatesAmerica,
473 Uruguay,
475 Uzbekistan,
477 HolySee,
479 SaintVincentAndGrenadines,
481 VenezuelaBolivarianRepublic,
483 VirginIslandsBritish,
485 VirginIslandsUS,
487 VietNam,
489 Vanuatu,
491 WallisAndFutuna,
493 Samoa,
495 Yemen,
497 Mayotte,
499 SouthAfrica,
501 Zambia,
503 Zimbabwe,
505 Kosovo,
507 UnitedKingdomNorthernIreland,
509}
510
511impl std::fmt::Display for Country {
512 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
513 write!(f, "{}", <Self as crate::Code>::code(*self))
514 }
515}
516
517impl std::str::FromStr for Country {
518 type Err = crate::ParseError<Self>;
519 fn from_str(s: &str) -> Result<Self, Self::Err> {
520 <Self as crate::FromCode>::from_code(s)
521 .ok_or_else(|| crate::ParseError::<Self>::new(s.to_owned()))
522 }
523}
524
525impl crate::Code for Country {
526 fn code(self) -> &'static str {
527 match self {
528 Country::Andorra => "AD",
529 Country::UnitedArabEmirates => "AE",
530 Country::Afghanistan => "AF",
531 Country::AntiguaAndBarbuda => "AG",
532 Country::Anguilla => "AI",
533 Country::Albania => "AL",
534 Country::Armenia => "AM",
535 Country::Angola => "AO",
536 Country::Antarctica => "AQ",
537 Country::Argentina => "AR",
538 Country::AmericanSamoa => "AS",
539 Country::Austria => "AT",
540 Country::Australia => "AU",
541 Country::Aruba => "AW",
542 Country::ÅlandIslands => "AX",
543 Country::Azerbaijan => "AZ",
544 Country::BosniaAndHerzegovina => "BA",
545 Country::Barbados => "BB",
546 Country::Bangladesh => "BD",
547 Country::Belgium => "BE",
548 Country::BurkinaFaso => "BF",
549 Country::Bulgaria => "BG",
550 Country::Bahrain => "BH",
551 Country::Burundi => "BI",
552 Country::Benin => "BJ",
553 Country::SaintBarthélemy => "BL",
554 Country::Bermuda => "BM",
555 Country::BruneiDarussalam => "BN",
556 Country::BoliviaPlurinationalState => "BO",
557 Country::BonaireSintEustatiusAndSaba => "BQ",
558 Country::Brazil => "BR",
559 Country::BahamasThe => "BS",
560 Country::Bhutan => "BT",
561 Country::BouvetIsland => "BV",
562 Country::Botswana => "BW",
563 Country::Belarus => "BY",
564 Country::Belize => "BZ",
565 Country::Canada => "CA",
566 Country::CocosKeelingIslands => "CC",
567 Country::CongoDemocraticRepublic => "CD",
568 Country::CentralAfricanRepublic => "CF",
569 Country::Congo => "CG",
570 Country::Switzerland => "CH",
571 Country::CôteDivoire => "CI",
572 Country::CookIslands => "CK",
573 Country::Chile => "CL",
574 Country::Cameroon => "CM",
575 Country::China => "CN",
576 Country::Colombia => "CO",
577 Country::CostaRica => "CR",
578 Country::Cuba => "CU",
579 Country::CaboVerde => "CV",
580 Country::Curaçao => "CW",
581 Country::ChristmasIsland => "CX",
582 Country::Cyprus => "CY",
583 Country::Czechia => "CZ",
584 Country::Germany => "DE",
585 Country::Djibouti => "DJ",
586 Country::Denmark => "DK",
587 Country::Dominica => "DM",
588 Country::DominicanRepublic => "DO",
589 Country::Algeria => "DZ",
590 Country::Ecuador => "EC",
591 Country::Estonia => "EE",
592 Country::Egypt => "EG",
593 Country::WesternSahara => "EH",
594 Country::Eritrea => "ER",
595 Country::Spain => "ES",
596 Country::Ethiopia => "ET",
597 Country::Finland => "FI",
598 Country::Fiji => "FJ",
599 Country::FalklandIslandsMalvinas => "FK",
600 Country::MicronesiaFederatedStates => "FM",
601 Country::FaroeIslands => "FO",
602 Country::France => "FR",
603 Country::Gabon => "GA",
604 Country::UnitedKingdomGreatBritainAndNorthernIreland => "GB",
605 Country::Grenada => "GD",
606 Country::Georgia => "GE",
607 Country::FrenchGuiana => "GF",
608 Country::Guernsey => "GG",
609 Country::Ghana => "GH",
610 Country::Gibraltar => "GI",
611 Country::Greenland => "GL",
612 Country::Gambia => "GM",
613 Country::Guinea => "GN",
614 Country::Guadeloupe => "GP",
615 Country::EquatorialGuinea => "GQ",
616 Country::Greece => "GR",
617 Country::SouthGeorgiaAndSouthSandwichIslands => "GS",
618 Country::Guatemala => "GT",
619 Country::Guam => "GU",
620 Country::GuineaBissau => "GW",
621 Country::Guyana => "GY",
622 Country::HongKong => "HK",
623 Country::HeardIslandAndMcdonaldIslands => "HM",
624 Country::Honduras => "HN",
625 Country::Croatia => "HR",
626 Country::Haiti => "HT",
627 Country::Hungary => "HU",
628 Country::Indonesia => "ID",
629 Country::Ireland => "IE",
630 Country::Israel => "IL",
631 Country::IsleMan => "IM",
632 Country::India => "IN",
633 Country::BritishIndianOceanTerritory => "IO",
634 Country::Iraq => "IQ",
635 Country::IranIslamicRepublic => "IR",
636 Country::Iceland => "IS",
637 Country::Italy => "IT",
638 Country::Jersey => "JE",
639 Country::Jamaica => "JM",
640 Country::Jordan => "JO",
641 Country::Japan => "JP",
642 Country::Kenya => "KE",
643 Country::Kyrgyzstan => "KG",
644 Country::Cambodia => "KH",
645 Country::Kiribati => "KI",
646 Country::Comoros => "KM",
647 Country::SaintKittsAndNevis => "KN",
648 Country::KoreaDemocraticPeoplesRepublic => "KP",
649 Country::KoreaRepublic => "KR",
650 Country::Kuwait => "KW",
651 Country::CaymanIslands => "KY",
652 Country::Kazakhstan => "KZ",
653 Country::LaoPeoplesDemocraticRepublic => "LA",
654 Country::Lebanon => "LB",
655 Country::SaintLucia => "LC",
656 Country::Liechtenstein => "LI",
657 Country::SriLanka => "LK",
658 Country::Liberia => "LR",
659 Country::Lesotho => "LS",
660 Country::Lithuania => "LT",
661 Country::Luxembourg => "LU",
662 Country::Latvia => "LV",
663 Country::Libya => "LY",
664 Country::Morocco => "MA",
665 Country::Monaco => "MC",
666 Country::MoldovaRepublic => "MD",
667 Country::Montenegro => "ME",
668 Country::SaintMartinFrenchPart => "MF",
669 Country::Madagascar => "MG",
670 Country::MarshallIslands => "MH",
671 Country::NorthMacedonia => "MK",
672 Country::Mali => "ML",
673 Country::Myanmar => "MM",
674 Country::Mongolia => "MN",
675 Country::Macao => "MO",
676 Country::NorthernMarianaIslands => "MP",
677 Country::Martinique => "MQ",
678 Country::Mauritania => "MR",
679 Country::Montserrat => "MS",
680 Country::Malta => "MT",
681 Country::Mauritius => "MU",
682 Country::Maldives => "MV",
683 Country::Malawi => "MW",
684 Country::Mexico => "MX",
685 Country::Malaysia => "MY",
686 Country::Mozambique => "MZ",
687 Country::Namibia => "NA",
688 Country::NewCaledonia => "NC",
689 Country::Niger => "NE",
690 Country::NorfolkIsland => "NF",
691 Country::Nigeria => "NG",
692 Country::Nicaragua => "NI",
693 Country::Netherlands => "NL",
694 Country::Norway => "NO",
695 Country::Nepal => "NP",
696 Country::Nauru => "NR",
697 Country::Niue => "NU",
698 Country::NewZealand => "NZ",
699 Country::Oman => "OM",
700 Country::Panama => "PA",
701 Country::Peru => "PE",
702 Country::FrenchPolynesia => "PF",
703 Country::PapuaNewGuinea => "PG",
704 Country::Philippines => "PH",
705 Country::Pakistan => "PK",
706 Country::Poland => "PL",
707 Country::SaintPierreAndMiquelon => "PM",
708 Country::Pitcairn => "PN",
709 Country::PuertoRico => "PR",
710 Country::PalestineState => "PS",
711 Country::Portugal => "PT",
712 Country::Palau => "PW",
713 Country::Paraguay => "PY",
714 Country::Qatar => "QA",
715 Country::Réunion => "RE",
716 Country::Romania => "RO",
717 Country::Serbia => "RS",
718 Country::RussianFederation => "RU",
719 Country::Rwanda => "RW",
720 Country::SaudiArabia => "SA",
721 Country::SolomonIslands => "SB",
722 Country::Seychelles => "SC",
723 Country::Sudan => "SD",
724 Country::Sweden => "SE",
725 Country::Singapore => "SG",
726 Country::SaintHelenaAscensionAndTristanDaCunha => "SH",
727 Country::Slovenia => "SI",
728 Country::SvalbardAndJanMayen => "SJ",
729 Country::Slovakia => "SK",
730 Country::SierraLeone => "SL",
731 Country::SanMarino => "SM",
732 Country::Senegal => "SN",
733 Country::Somalia => "SO",
734 Country::Suriname => "SR",
735 Country::SouthSudan => "SS",
736 Country::SaoTomeAndPrincipe => "ST",
737 Country::ElSalvador => "SV",
738 Country::SintMaartenDutchPart => "SX",
739 Country::SyrianArabRepublic => "SY",
740 Country::Eswatini => "SZ",
741 Country::TurksAndCaicosIslands => "TC",
742 Country::Chad => "TD",
743 Country::FrenchSouthernTerritories => "TF",
744 Country::Togo => "TG",
745 Country::Thailand => "TH",
746 Country::Tajikistan => "TJ",
747 Country::Tokelau => "TK",
748 Country::TimorLeste => "TL",
749 Country::Turkmenistan => "TM",
750 Country::Tunisia => "TN",
751 Country::Tonga => "TO",
752 Country::Türkiye => "TR",
753 Country::TrinidadAndTobago => "TT",
754 Country::Tuvalu => "TV",
755 Country::TaiwanProvinceChina => "TW",
756 Country::TanzaniaUnitedRepublic => "TZ",
757 Country::Ukraine => "UA",
758 Country::Uganda => "UG",
759 Country::UnitedStatesMinorOutlyingIslands => "UM",
760 Country::UnitedStatesAmerica => "US",
761 Country::Uruguay => "UY",
762 Country::Uzbekistan => "UZ",
763 Country::HolySee => "VA",
764 Country::SaintVincentAndGrenadines => "VC",
765 Country::VenezuelaBolivarianRepublic => "VE",
766 Country::VirginIslandsBritish => "VG",
767 Country::VirginIslandsUS => "VI",
768 Country::VietNam => "VN",
769 Country::Vanuatu => "VU",
770 Country::WallisAndFutuna => "WF",
771 Country::Samoa => "WS",
772 Country::Yemen => "YE",
773 Country::Mayotte => "YT",
774 Country::SouthAfrica => "ZA",
775 Country::Zambia => "ZM",
776 Country::Zimbabwe => "ZW",
777 Country::Kosovo => "1A",
778 Country::UnitedKingdomNorthernIreland => "XI",
779 }
780 }
781}
782
783impl crate::Description for Country {
784 fn description(self) -> &'static str {
785 match self {
786 Country::Andorra => "Andorra",
787 Country::UnitedArabEmirates => "United Arab Emirates (the)",
788 Country::Afghanistan => "Afghanistan",
789 Country::AntiguaAndBarbuda => "Antigua and Barbuda",
790 Country::Anguilla => "Anguilla",
791 Country::Albania => "Albania",
792 Country::Armenia => "Armenia",
793 Country::Angola => "Angola",
794 Country::Antarctica => "Antarctica",
795 Country::Argentina => "Argentina",
796 Country::AmericanSamoa => "American Samoa",
797 Country::Austria => "Austria",
798 Country::Australia => "Australia",
799 Country::Aruba => "Aruba",
800 Country::ÅlandIslands => "Åland Islands",
801 Country::Azerbaijan => "Azerbaijan",
802 Country::BosniaAndHerzegovina => "Bosnia and Herzegovina",
803 Country::Barbados => "Barbados",
804 Country::Bangladesh => "Bangladesh",
805 Country::Belgium => "Belgium",
806 Country::BurkinaFaso => "Burkina Faso",
807 Country::Bulgaria => "Bulgaria",
808 Country::Bahrain => "Bahrain",
809 Country::Burundi => "Burundi",
810 Country::Benin => "Benin",
811 Country::SaintBarthélemy => "Saint Barthélemy",
812 Country::Bermuda => "Bermuda",
813 Country::BruneiDarussalam => "Brunei Darussalam",
814 Country::BoliviaPlurinationalState => "Bolivia (Plurinational State of)",
815 Country::BonaireSintEustatiusAndSaba => "Bonaire, Sint Eustatius and Saba",
816 Country::Brazil => "Brazil",
817 Country::BahamasThe => "Bahamas (The)",
818 Country::Bhutan => "Bhutan",
819 Country::BouvetIsland => "Bouvet Island",
820 Country::Botswana => "Botswana",
821 Country::Belarus => "Belarus",
822 Country::Belize => "Belize",
823 Country::Canada => "Canada",
824 Country::CocosKeelingIslands => "Cocos (Keeling) Islands (the)",
825 Country::CongoDemocraticRepublic => "Congo (the Democratic Republic of the)",
826 Country::CentralAfricanRepublic => "Central African Republic (the)",
827 Country::Congo => "Congo (the)",
828 Country::Switzerland => "Switzerland",
829 Country::CôteDivoire => "Côte d'Ivoire",
830 Country::CookIslands => "Cook Islands (the)",
831 Country::Chile => "Chile",
832 Country::Cameroon => "Cameroon",
833 Country::China => "China",
834 Country::Colombia => "Colombia",
835 Country::CostaRica => "Costa Rica",
836 Country::Cuba => "Cuba",
837 Country::CaboVerde => "Cabo Verde",
838 Country::Curaçao => "Curaçao",
839 Country::ChristmasIsland => "Christmas Island",
840 Country::Cyprus => "Cyprus",
841 Country::Czechia => "Czechia",
842 Country::Germany => "Germany",
843 Country::Djibouti => "Djibouti",
844 Country::Denmark => "Denmark",
845 Country::Dominica => "Dominica",
846 Country::DominicanRepublic => "Dominican Republic (the)",
847 Country::Algeria => "Algeria",
848 Country::Ecuador => "Ecuador",
849 Country::Estonia => "Estonia",
850 Country::Egypt => "Egypt",
851 Country::WesternSahara => "Western Sahara*",
852 Country::Eritrea => "Eritrea",
853 Country::Spain => "Spain",
854 Country::Ethiopia => "Ethiopia",
855 Country::Finland => "Finland",
856 Country::Fiji => "Fiji",
857 Country::FalklandIslandsMalvinas => "Falkland Islands (the) [Malvinas]",
858 Country::MicronesiaFederatedStates => "Micronesia (Federated States of)",
859 Country::FaroeIslands => "Faroe Islands (the)",
860 Country::France => "France",
861 Country::Gabon => "Gabon",
862 Country::UnitedKingdomGreatBritainAndNorthernIreland => {
863 "United Kingdom of Great Britain and Northern Ireland (the)"
864 }
865 Country::Grenada => "Grenada",
866 Country::Georgia => "Georgia",
867 Country::FrenchGuiana => "French Guiana",
868 Country::Guernsey => "Guernsey",
869 Country::Ghana => "Ghana",
870 Country::Gibraltar => "Gibraltar",
871 Country::Greenland => "Greenland",
872 Country::Gambia => "Gambia (the)",
873 Country::Guinea => "Guinea",
874 Country::Guadeloupe => "Guadeloupe",
875 Country::EquatorialGuinea => "Equatorial Guinea",
876 Country::Greece => "Greece",
877 Country::SouthGeorgiaAndSouthSandwichIslands => {
878 "South Georgia and the South Sandwich Islands"
879 }
880 Country::Guatemala => "Guatemala",
881 Country::Guam => "Guam",
882 Country::GuineaBissau => "Guinea-Bissau",
883 Country::Guyana => "Guyana",
884 Country::HongKong => "Hong Kong",
885 Country::HeardIslandAndMcdonaldIslands => "Heard Island and McDonald Islands",
886 Country::Honduras => "Honduras",
887 Country::Croatia => "Croatia",
888 Country::Haiti => "Haiti",
889 Country::Hungary => "Hungary",
890 Country::Indonesia => "Indonesia",
891 Country::Ireland => "Ireland",
892 Country::Israel => "Israel",
893 Country::IsleMan => "Isle of Man",
894 Country::India => "India",
895 Country::BritishIndianOceanTerritory => "British Indian Ocean Territory (the)",
896 Country::Iraq => "Iraq",
897 Country::IranIslamicRepublic => "Iran (Islamic Republic of)",
898 Country::Iceland => "Iceland",
899 Country::Italy => "Italy",
900 Country::Jersey => "Jersey",
901 Country::Jamaica => "Jamaica",
902 Country::Jordan => "Jordan",
903 Country::Japan => "Japan",
904 Country::Kenya => "Kenya",
905 Country::Kyrgyzstan => "Kyrgyzstan",
906 Country::Cambodia => "Cambodia",
907 Country::Kiribati => "Kiribati",
908 Country::Comoros => "Comoros (the)",
909 Country::SaintKittsAndNevis => "Saint Kitts and Nevis",
910 Country::KoreaDemocraticPeoplesRepublic => {
911 "Korea (the Democratic People's Republic of)"
912 }
913 Country::KoreaRepublic => "Korea (the Republic of)",
914 Country::Kuwait => "Kuwait",
915 Country::CaymanIslands => "Cayman Islands (the)",
916 Country::Kazakhstan => "Kazakhstan",
917 Country::LaoPeoplesDemocraticRepublic => "Lao People's Democratic Republic (the)",
918 Country::Lebanon => "Lebanon",
919 Country::SaintLucia => "Saint Lucia",
920 Country::Liechtenstein => "Liechtenstein",
921 Country::SriLanka => "Sri Lanka",
922 Country::Liberia => "Liberia",
923 Country::Lesotho => "Lesotho",
924 Country::Lithuania => "Lithuania",
925 Country::Luxembourg => "Luxembourg",
926 Country::Latvia => "Latvia",
927 Country::Libya => "Libya",
928 Country::Morocco => "Morocco",
929 Country::Monaco => "Monaco",
930 Country::MoldovaRepublic => "Moldova (the Republic of)",
931 Country::Montenegro => "Montenegro",
932 Country::SaintMartinFrenchPart => "Saint Martin (French part)",
933 Country::Madagascar => "Madagascar",
934 Country::MarshallIslands => "Marshall Islands (the)",
935 Country::NorthMacedonia => "North Macedonia",
936 Country::Mali => "Mali",
937 Country::Myanmar => "Myanmar",
938 Country::Mongolia => "Mongolia",
939 Country::Macao => "Macao",
940 Country::NorthernMarianaIslands => "Northern Mariana Islands (the)",
941 Country::Martinique => "Martinique",
942 Country::Mauritania => "Mauritania",
943 Country::Montserrat => "Montserrat",
944 Country::Malta => "Malta",
945 Country::Mauritius => "Mauritius",
946 Country::Maldives => "Maldives",
947 Country::Malawi => "Malawi",
948 Country::Mexico => "Mexico",
949 Country::Malaysia => "Malaysia",
950 Country::Mozambique => "Mozambique",
951 Country::Namibia => "Namibia",
952 Country::NewCaledonia => "New Caledonia",
953 Country::Niger => "Niger (the)",
954 Country::NorfolkIsland => "Norfolk Island",
955 Country::Nigeria => "Nigeria",
956 Country::Nicaragua => "Nicaragua",
957 Country::Netherlands => "Netherlands (the)",
958 Country::Norway => "Norway",
959 Country::Nepal => "Nepal",
960 Country::Nauru => "Nauru",
961 Country::Niue => "Niue",
962 Country::NewZealand => "New Zealand",
963 Country::Oman => "Oman",
964 Country::Panama => "Panama",
965 Country::Peru => "Peru",
966 Country::FrenchPolynesia => "French Polynesia",
967 Country::PapuaNewGuinea => "Papua New Guinea",
968 Country::Philippines => "Philippines (the)",
969 Country::Pakistan => "Pakistan",
970 Country::Poland => "Poland",
971 Country::SaintPierreAndMiquelon => "Saint Pierre and Miquelon",
972 Country::Pitcairn => "Pitcairn",
973 Country::PuertoRico => "Puerto Rico",
974 Country::PalestineState => "Palestine, State of",
975 Country::Portugal => "Portugal",
976 Country::Palau => "Palau",
977 Country::Paraguay => "Paraguay",
978 Country::Qatar => "Qatar",
979 Country::Réunion => "Réunion",
980 Country::Romania => "Romania",
981 Country::Serbia => "Serbia",
982 Country::RussianFederation => "Russian Federation (the)",
983 Country::Rwanda => "Rwanda",
984 Country::SaudiArabia => "Saudi Arabia",
985 Country::SolomonIslands => "Solomon Islands",
986 Country::Seychelles => "Seychelles",
987 Country::Sudan => "Sudan (the)",
988 Country::Sweden => "Sweden",
989 Country::Singapore => "Singapore",
990 Country::SaintHelenaAscensionAndTristanDaCunha => {
991 "Saint Helena, Ascension and Tristan da Cunha"
992 }
993 Country::Slovenia => "Slovenia",
994 Country::SvalbardAndJanMayen => "Svalbard and Jan Mayen",
995 Country::Slovakia => "Slovakia",
996 Country::SierraLeone => "Sierra Leone",
997 Country::SanMarino => "San Marino",
998 Country::Senegal => "Senegal",
999 Country::Somalia => "Somalia",
1000 Country::Suriname => "Suriname",
1001 Country::SouthSudan => "South Sudan",
1002 Country::SaoTomeAndPrincipe => "Sao Tome and Principe",
1003 Country::ElSalvador => "El Salvador",
1004 Country::SintMaartenDutchPart => "Sint Maarten (Dutch part)",
1005 Country::SyrianArabRepublic => "Syrian Arab Republic (the)",
1006 Country::Eswatini => "Eswatini",
1007 Country::TurksAndCaicosIslands => "Turks and Caicos Islands (the)",
1008 Country::Chad => "Chad",
1009 Country::FrenchSouthernTerritories => "French Southern Territories (the)",
1010 Country::Togo => "Togo",
1011 Country::Thailand => "Thailand",
1012 Country::Tajikistan => "Tajikistan",
1013 Country::Tokelau => "Tokelau",
1014 Country::TimorLeste => "Timor-Leste",
1015 Country::Turkmenistan => "Turkmenistan",
1016 Country::Tunisia => "Tunisia",
1017 Country::Tonga => "Tonga",
1018 Country::Türkiye => "Türkiye",
1019 Country::TrinidadAndTobago => "Trinidad and Tobago",
1020 Country::Tuvalu => "Tuvalu",
1021 Country::TaiwanProvinceChina => "Taiwan (Province of China)",
1022 Country::TanzaniaUnitedRepublic => "Tanzania, the United Republic of",
1023 Country::Ukraine => "Ukraine",
1024 Country::Uganda => "Uganda",
1025 Country::UnitedStatesMinorOutlyingIslands => {
1026 "United States Minor Outlying Islands (the)"
1027 }
1028 Country::UnitedStatesAmerica => "United States of America (the)",
1029 Country::Uruguay => "Uruguay",
1030 Country::Uzbekistan => "Uzbekistan",
1031 Country::HolySee => "Holy See (the)",
1032 Country::SaintVincentAndGrenadines => "Saint Vincent and the Grenadines",
1033 Country::VenezuelaBolivarianRepublic => "Venezuela (Bolivarian Republic of)",
1034 Country::VirginIslandsBritish => "Virgin Islands (British)",
1035 Country::VirginIslandsUS => "Virgin Islands (U.S.)",
1036 Country::VietNam => "Viet Nam",
1037 Country::Vanuatu => "Vanuatu",
1038 Country::WallisAndFutuna => "Wallis and Futuna",
1039 Country::Samoa => "Samoa",
1040 Country::Yemen => "Yemen",
1041 Country::Mayotte => "Mayotte",
1042 Country::SouthAfrica => "South Africa",
1043 Country::Zambia => "Zambia",
1044 Country::Zimbabwe => "Zimbabwe",
1045 Country::Kosovo => "Kosovo",
1046 Country::UnitedKingdomNorthernIreland => "United Kingdom (Northern Ireland)",
1047 }
1048 }
1049}
1050
1051impl crate::FromCode for Country {
1052 fn from_code(code: &str) -> Option<Self>
1053 where
1054 Self: Sized,
1055 {
1056 match code {
1057 "AD" => Some(Country::Andorra),
1058 "AE" => Some(Country::UnitedArabEmirates),
1059 "AF" => Some(Country::Afghanistan),
1060 "AG" => Some(Country::AntiguaAndBarbuda),
1061 "AI" => Some(Country::Anguilla),
1062 "AL" => Some(Country::Albania),
1063 "AM" => Some(Country::Armenia),
1064 "AO" => Some(Country::Angola),
1065 "AQ" => Some(Country::Antarctica),
1066 "AR" => Some(Country::Argentina),
1067 "AS" => Some(Country::AmericanSamoa),
1068 "AT" => Some(Country::Austria),
1069 "AU" => Some(Country::Australia),
1070 "AW" => Some(Country::Aruba),
1071 "AX" => Some(Country::ÅlandIslands),
1072 "AZ" => Some(Country::Azerbaijan),
1073 "BA" => Some(Country::BosniaAndHerzegovina),
1074 "BB" => Some(Country::Barbados),
1075 "BD" => Some(Country::Bangladesh),
1076 "BE" => Some(Country::Belgium),
1077 "BF" => Some(Country::BurkinaFaso),
1078 "BG" => Some(Country::Bulgaria),
1079 "BH" => Some(Country::Bahrain),
1080 "BI" => Some(Country::Burundi),
1081 "BJ" => Some(Country::Benin),
1082 "BL" => Some(Country::SaintBarthélemy),
1083 "BM" => Some(Country::Bermuda),
1084 "BN" => Some(Country::BruneiDarussalam),
1085 "BO" => Some(Country::BoliviaPlurinationalState),
1086 "BQ" => Some(Country::BonaireSintEustatiusAndSaba),
1087 "BR" => Some(Country::Brazil),
1088 "BS" => Some(Country::BahamasThe),
1089 "BT" => Some(Country::Bhutan),
1090 "BV" => Some(Country::BouvetIsland),
1091 "BW" => Some(Country::Botswana),
1092 "BY" => Some(Country::Belarus),
1093 "BZ" => Some(Country::Belize),
1094 "CA" => Some(Country::Canada),
1095 "CC" => Some(Country::CocosKeelingIslands),
1096 "CD" => Some(Country::CongoDemocraticRepublic),
1097 "CF" => Some(Country::CentralAfricanRepublic),
1098 "CG" => Some(Country::Congo),
1099 "CH" => Some(Country::Switzerland),
1100 "CI" => Some(Country::CôteDivoire),
1101 "CK" => Some(Country::CookIslands),
1102 "CL" => Some(Country::Chile),
1103 "CM" => Some(Country::Cameroon),
1104 "CN" => Some(Country::China),
1105 "CO" => Some(Country::Colombia),
1106 "CR" => Some(Country::CostaRica),
1107 "CU" => Some(Country::Cuba),
1108 "CV" => Some(Country::CaboVerde),
1109 "CW" => Some(Country::Curaçao),
1110 "CX" => Some(Country::ChristmasIsland),
1111 "CY" => Some(Country::Cyprus),
1112 "CZ" => Some(Country::Czechia),
1113 "DE" => Some(Country::Germany),
1114 "DJ" => Some(Country::Djibouti),
1115 "DK" => Some(Country::Denmark),
1116 "DM" => Some(Country::Dominica),
1117 "DO" => Some(Country::DominicanRepublic),
1118 "DZ" => Some(Country::Algeria),
1119 "EC" => Some(Country::Ecuador),
1120 "EE" => Some(Country::Estonia),
1121 "EG" => Some(Country::Egypt),
1122 "EH" => Some(Country::WesternSahara),
1123 "ER" => Some(Country::Eritrea),
1124 "ES" => Some(Country::Spain),
1125 "ET" => Some(Country::Ethiopia),
1126 "FI" => Some(Country::Finland),
1127 "FJ" => Some(Country::Fiji),
1128 "FK" => Some(Country::FalklandIslandsMalvinas),
1129 "FM" => Some(Country::MicronesiaFederatedStates),
1130 "FO" => Some(Country::FaroeIslands),
1131 "FR" => Some(Country::France),
1132 "GA" => Some(Country::Gabon),
1133 "GB" => Some(Country::UnitedKingdomGreatBritainAndNorthernIreland),
1134 "GD" => Some(Country::Grenada),
1135 "GE" => Some(Country::Georgia),
1136 "GF" => Some(Country::FrenchGuiana),
1137 "GG" => Some(Country::Guernsey),
1138 "GH" => Some(Country::Ghana),
1139 "GI" => Some(Country::Gibraltar),
1140 "GL" => Some(Country::Greenland),
1141 "GM" => Some(Country::Gambia),
1142 "GN" => Some(Country::Guinea),
1143 "GP" => Some(Country::Guadeloupe),
1144 "GQ" => Some(Country::EquatorialGuinea),
1145 "GR" => Some(Country::Greece),
1146 "GS" => Some(Country::SouthGeorgiaAndSouthSandwichIslands),
1147 "GT" => Some(Country::Guatemala),
1148 "GU" => Some(Country::Guam),
1149 "GW" => Some(Country::GuineaBissau),
1150 "GY" => Some(Country::Guyana),
1151 "HK" => Some(Country::HongKong),
1152 "HM" => Some(Country::HeardIslandAndMcdonaldIslands),
1153 "HN" => Some(Country::Honduras),
1154 "HR" => Some(Country::Croatia),
1155 "HT" => Some(Country::Haiti),
1156 "HU" => Some(Country::Hungary),
1157 "ID" => Some(Country::Indonesia),
1158 "IE" => Some(Country::Ireland),
1159 "IL" => Some(Country::Israel),
1160 "IM" => Some(Country::IsleMan),
1161 "IN" => Some(Country::India),
1162 "IO" => Some(Country::BritishIndianOceanTerritory),
1163 "IQ" => Some(Country::Iraq),
1164 "IR" => Some(Country::IranIslamicRepublic),
1165 "IS" => Some(Country::Iceland),
1166 "IT" => Some(Country::Italy),
1167 "JE" => Some(Country::Jersey),
1168 "JM" => Some(Country::Jamaica),
1169 "JO" => Some(Country::Jordan),
1170 "JP" => Some(Country::Japan),
1171 "KE" => Some(Country::Kenya),
1172 "KG" => Some(Country::Kyrgyzstan),
1173 "KH" => Some(Country::Cambodia),
1174 "KI" => Some(Country::Kiribati),
1175 "KM" => Some(Country::Comoros),
1176 "KN" => Some(Country::SaintKittsAndNevis),
1177 "KP" => Some(Country::KoreaDemocraticPeoplesRepublic),
1178 "KR" => Some(Country::KoreaRepublic),
1179 "KW" => Some(Country::Kuwait),
1180 "KY" => Some(Country::CaymanIslands),
1181 "KZ" => Some(Country::Kazakhstan),
1182 "LA" => Some(Country::LaoPeoplesDemocraticRepublic),
1183 "LB" => Some(Country::Lebanon),
1184 "LC" => Some(Country::SaintLucia),
1185 "LI" => Some(Country::Liechtenstein),
1186 "LK" => Some(Country::SriLanka),
1187 "LR" => Some(Country::Liberia),
1188 "LS" => Some(Country::Lesotho),
1189 "LT" => Some(Country::Lithuania),
1190 "LU" => Some(Country::Luxembourg),
1191 "LV" => Some(Country::Latvia),
1192 "LY" => Some(Country::Libya),
1193 "MA" => Some(Country::Morocco),
1194 "MC" => Some(Country::Monaco),
1195 "MD" => Some(Country::MoldovaRepublic),
1196 "ME" => Some(Country::Montenegro),
1197 "MF" => Some(Country::SaintMartinFrenchPart),
1198 "MG" => Some(Country::Madagascar),
1199 "MH" => Some(Country::MarshallIslands),
1200 "MK" => Some(Country::NorthMacedonia),
1201 "ML" => Some(Country::Mali),
1202 "MM" => Some(Country::Myanmar),
1203 "MN" => Some(Country::Mongolia),
1204 "MO" => Some(Country::Macao),
1205 "MP" => Some(Country::NorthernMarianaIslands),
1206 "MQ" => Some(Country::Martinique),
1207 "MR" => Some(Country::Mauritania),
1208 "MS" => Some(Country::Montserrat),
1209 "MT" => Some(Country::Malta),
1210 "MU" => Some(Country::Mauritius),
1211 "MV" => Some(Country::Maldives),
1212 "MW" => Some(Country::Malawi),
1213 "MX" => Some(Country::Mexico),
1214 "MY" => Some(Country::Malaysia),
1215 "MZ" => Some(Country::Mozambique),
1216 "NA" => Some(Country::Namibia),
1217 "NC" => Some(Country::NewCaledonia),
1218 "NE" => Some(Country::Niger),
1219 "NF" => Some(Country::NorfolkIsland),
1220 "NG" => Some(Country::Nigeria),
1221 "NI" => Some(Country::Nicaragua),
1222 "NL" => Some(Country::Netherlands),
1223 "NO" => Some(Country::Norway),
1224 "NP" => Some(Country::Nepal),
1225 "NR" => Some(Country::Nauru),
1226 "NU" => Some(Country::Niue),
1227 "NZ" => Some(Country::NewZealand),
1228 "OM" => Some(Country::Oman),
1229 "PA" => Some(Country::Panama),
1230 "PE" => Some(Country::Peru),
1231 "PF" => Some(Country::FrenchPolynesia),
1232 "PG" => Some(Country::PapuaNewGuinea),
1233 "PH" => Some(Country::Philippines),
1234 "PK" => Some(Country::Pakistan),
1235 "PL" => Some(Country::Poland),
1236 "PM" => Some(Country::SaintPierreAndMiquelon),
1237 "PN" => Some(Country::Pitcairn),
1238 "PR" => Some(Country::PuertoRico),
1239 "PS" => Some(Country::PalestineState),
1240 "PT" => Some(Country::Portugal),
1241 "PW" => Some(Country::Palau),
1242 "PY" => Some(Country::Paraguay),
1243 "QA" => Some(Country::Qatar),
1244 "RE" => Some(Country::Réunion),
1245 "RO" => Some(Country::Romania),
1246 "RS" => Some(Country::Serbia),
1247 "RU" => Some(Country::RussianFederation),
1248 "RW" => Some(Country::Rwanda),
1249 "SA" => Some(Country::SaudiArabia),
1250 "SB" => Some(Country::SolomonIslands),
1251 "SC" => Some(Country::Seychelles),
1252 "SD" => Some(Country::Sudan),
1253 "SE" => Some(Country::Sweden),
1254 "SG" => Some(Country::Singapore),
1255 "SH" => Some(Country::SaintHelenaAscensionAndTristanDaCunha),
1256 "SI" => Some(Country::Slovenia),
1257 "SJ" => Some(Country::SvalbardAndJanMayen),
1258 "SK" => Some(Country::Slovakia),
1259 "SL" => Some(Country::SierraLeone),
1260 "SM" => Some(Country::SanMarino),
1261 "SN" => Some(Country::Senegal),
1262 "SO" => Some(Country::Somalia),
1263 "SR" => Some(Country::Suriname),
1264 "SS" => Some(Country::SouthSudan),
1265 "ST" => Some(Country::SaoTomeAndPrincipe),
1266 "SV" => Some(Country::ElSalvador),
1267 "SX" => Some(Country::SintMaartenDutchPart),
1268 "SY" => Some(Country::SyrianArabRepublic),
1269 "SZ" => Some(Country::Eswatini),
1270 "TC" => Some(Country::TurksAndCaicosIslands),
1271 "TD" => Some(Country::Chad),
1272 "TF" => Some(Country::FrenchSouthernTerritories),
1273 "TG" => Some(Country::Togo),
1274 "TH" => Some(Country::Thailand),
1275 "TJ" => Some(Country::Tajikistan),
1276 "TK" => Some(Country::Tokelau),
1277 "TL" => Some(Country::TimorLeste),
1278 "TM" => Some(Country::Turkmenistan),
1279 "TN" => Some(Country::Tunisia),
1280 "TO" => Some(Country::Tonga),
1281 "TR" => Some(Country::Türkiye),
1282 "TT" => Some(Country::TrinidadAndTobago),
1283 "TV" => Some(Country::Tuvalu),
1284 "TW" => Some(Country::TaiwanProvinceChina),
1285 "TZ" => Some(Country::TanzaniaUnitedRepublic),
1286 "UA" => Some(Country::Ukraine),
1287 "UG" => Some(Country::Uganda),
1288 "UM" => Some(Country::UnitedStatesMinorOutlyingIslands),
1289 "US" => Some(Country::UnitedStatesAmerica),
1290 "UY" => Some(Country::Uruguay),
1291 "UZ" => Some(Country::Uzbekistan),
1292 "VA" => Some(Country::HolySee),
1293 "VC" => Some(Country::SaintVincentAndGrenadines),
1294 "VE" => Some(Country::VenezuelaBolivarianRepublic),
1295 "VG" => Some(Country::VirginIslandsBritish),
1296 "VI" => Some(Country::VirginIslandsUS),
1297 "VN" => Some(Country::VietNam),
1298 "VU" => Some(Country::Vanuatu),
1299 "WF" => Some(Country::WallisAndFutuna),
1300 "WS" => Some(Country::Samoa),
1301 "YE" => Some(Country::Yemen),
1302 "YT" => Some(Country::Mayotte),
1303 "ZA" => Some(Country::SouthAfrica),
1304 "ZM" => Some(Country::Zambia),
1305 "ZW" => Some(Country::Zimbabwe),
1306 "1A" => Some(Country::Kosovo),
1307 "XI" => Some(Country::UnitedKingdomNorthernIreland),
1308 _ => None,
1309 }
1310 }
1311}
1312
1313#[cfg(feature = "iso_country")]
1315impl std::convert::TryFrom<Country> for iso_country::Country {
1316 type Error = ErrFromCountryToIsoCountryCountry;
1317 fn try_from(value: Country) -> Result<Self, Self::Error> {
1318 match value {
1319 Country::Andorra => Ok(iso_country::Country::AD),
1320 Country::UnitedArabEmirates => Ok(iso_country::Country::AE),
1321 Country::Afghanistan => Ok(iso_country::Country::AF),
1322 Country::AntiguaAndBarbuda => Ok(iso_country::Country::AG),
1323 Country::Anguilla => Ok(iso_country::Country::AI),
1324 Country::Albania => Ok(iso_country::Country::AL),
1325 Country::Armenia => Ok(iso_country::Country::AM),
1326 Country::Angola => Ok(iso_country::Country::AO),
1327 Country::Antarctica => Ok(iso_country::Country::AQ),
1328 Country::Argentina => Ok(iso_country::Country::AR),
1329 Country::AmericanSamoa => Ok(iso_country::Country::AS),
1330 Country::Austria => Ok(iso_country::Country::AT),
1331 Country::Australia => Ok(iso_country::Country::AU),
1332 Country::Aruba => Ok(iso_country::Country::AW),
1333 Country::ÅlandIslands => Ok(iso_country::Country::AX),
1334 Country::Azerbaijan => Ok(iso_country::Country::AZ),
1335 Country::BosniaAndHerzegovina => Ok(iso_country::Country::BA),
1336 Country::Barbados => Ok(iso_country::Country::BB),
1337 Country::Bangladesh => Ok(iso_country::Country::BD),
1338 Country::Belgium => Ok(iso_country::Country::BE),
1339 Country::BurkinaFaso => Ok(iso_country::Country::BF),
1340 Country::Bulgaria => Ok(iso_country::Country::BG),
1341 Country::Bahrain => Ok(iso_country::Country::BH),
1342 Country::Burundi => Ok(iso_country::Country::BI),
1343 Country::Benin => Ok(iso_country::Country::BJ),
1344 Country::SaintBarthélemy => Ok(iso_country::Country::BL),
1345 Country::Bermuda => Ok(iso_country::Country::BM),
1346 Country::BruneiDarussalam => Ok(iso_country::Country::BN),
1347 Country::BoliviaPlurinationalState => Ok(iso_country::Country::BO),
1348 Country::BonaireSintEustatiusAndSaba => Ok(iso_country::Country::BQ),
1349 Country::Brazil => Ok(iso_country::Country::BR),
1350 Country::BahamasThe => Ok(iso_country::Country::BS),
1351 Country::Bhutan => Ok(iso_country::Country::BT),
1352 Country::BouvetIsland => Ok(iso_country::Country::BV),
1353 Country::Botswana => Ok(iso_country::Country::BW),
1354 Country::Belarus => Ok(iso_country::Country::BY),
1355 Country::Belize => Ok(iso_country::Country::BZ),
1356 Country::Canada => Ok(iso_country::Country::CA),
1357 Country::CocosKeelingIslands => Ok(iso_country::Country::CC),
1358 Country::CongoDemocraticRepublic => Ok(iso_country::Country::CD),
1359 Country::CentralAfricanRepublic => Ok(iso_country::Country::CF),
1360 Country::Congo => Ok(iso_country::Country::CG),
1361 Country::Switzerland => Ok(iso_country::Country::CH),
1362 Country::CôteDivoire => Ok(iso_country::Country::CI),
1363 Country::CookIslands => Ok(iso_country::Country::CK),
1364 Country::Chile => Ok(iso_country::Country::CL),
1365 Country::Cameroon => Ok(iso_country::Country::CM),
1366 Country::China => Ok(iso_country::Country::CN),
1367 Country::Colombia => Ok(iso_country::Country::CO),
1368 Country::CostaRica => Ok(iso_country::Country::CR),
1369 Country::Cuba => Ok(iso_country::Country::CU),
1370 Country::CaboVerde => Ok(iso_country::Country::CV),
1371 Country::Curaçao => Ok(iso_country::Country::CW),
1372 Country::ChristmasIsland => Ok(iso_country::Country::CX),
1373 Country::Cyprus => Ok(iso_country::Country::CY),
1374 Country::Czechia => Ok(iso_country::Country::CZ),
1375 Country::Germany => Ok(iso_country::Country::DE),
1376 Country::Djibouti => Ok(iso_country::Country::DJ),
1377 Country::Denmark => Ok(iso_country::Country::DK),
1378 Country::Dominica => Ok(iso_country::Country::DM),
1379 Country::DominicanRepublic => Ok(iso_country::Country::DO),
1380 Country::Algeria => Ok(iso_country::Country::DZ),
1381 Country::Ecuador => Ok(iso_country::Country::EC),
1382 Country::Estonia => Ok(iso_country::Country::EE),
1383 Country::Egypt => Ok(iso_country::Country::EG),
1384 Country::WesternSahara => Ok(iso_country::Country::EH),
1385 Country::Eritrea => Ok(iso_country::Country::ER),
1386 Country::Spain => Ok(iso_country::Country::ES),
1387 Country::Ethiopia => Ok(iso_country::Country::ET),
1388 Country::Finland => Ok(iso_country::Country::FI),
1389 Country::Fiji => Ok(iso_country::Country::FJ),
1390 Country::FalklandIslandsMalvinas => Ok(iso_country::Country::FK),
1391 Country::MicronesiaFederatedStates => Ok(iso_country::Country::FM),
1392 Country::FaroeIslands => Ok(iso_country::Country::FO),
1393 Country::France => Ok(iso_country::Country::FR),
1394 Country::Gabon => Ok(iso_country::Country::GA),
1395 Country::UnitedKingdomGreatBritainAndNorthernIreland => Ok(iso_country::Country::GB),
1396 Country::Grenada => Ok(iso_country::Country::GD),
1397 Country::Georgia => Ok(iso_country::Country::GE),
1398 Country::FrenchGuiana => Ok(iso_country::Country::GF),
1399 Country::Guernsey => Ok(iso_country::Country::GG),
1400 Country::Ghana => Ok(iso_country::Country::GH),
1401 Country::Gibraltar => Ok(iso_country::Country::GI),
1402 Country::Greenland => Ok(iso_country::Country::GL),
1403 Country::Gambia => Ok(iso_country::Country::GM),
1404 Country::Guinea => Ok(iso_country::Country::GN),
1405 Country::Guadeloupe => Ok(iso_country::Country::GP),
1406 Country::EquatorialGuinea => Ok(iso_country::Country::GQ),
1407 Country::Greece => Ok(iso_country::Country::GR),
1408 Country::SouthGeorgiaAndSouthSandwichIslands => Ok(iso_country::Country::GS),
1409 Country::Guatemala => Ok(iso_country::Country::GT),
1410 Country::Guam => Ok(iso_country::Country::GU),
1411 Country::GuineaBissau => Ok(iso_country::Country::GW),
1412 Country::Guyana => Ok(iso_country::Country::GY),
1413 Country::HongKong => Ok(iso_country::Country::HK),
1414 Country::HeardIslandAndMcdonaldIslands => Ok(iso_country::Country::HM),
1415 Country::Honduras => Ok(iso_country::Country::HN),
1416 Country::Croatia => Ok(iso_country::Country::HR),
1417 Country::Haiti => Ok(iso_country::Country::HT),
1418 Country::Hungary => Ok(iso_country::Country::HU),
1419 Country::Indonesia => Ok(iso_country::Country::ID),
1420 Country::Ireland => Ok(iso_country::Country::IE),
1421 Country::Israel => Ok(iso_country::Country::IL),
1422 Country::IsleMan => Ok(iso_country::Country::IM),
1423 Country::India => Ok(iso_country::Country::IN),
1424 Country::BritishIndianOceanTerritory => Ok(iso_country::Country::IO),
1425 Country::Iraq => Ok(iso_country::Country::IQ),
1426 Country::IranIslamicRepublic => Ok(iso_country::Country::IR),
1427 Country::Iceland => Ok(iso_country::Country::IS),
1428 Country::Italy => Ok(iso_country::Country::IT),
1429 Country::Jersey => Ok(iso_country::Country::JE),
1430 Country::Jamaica => Ok(iso_country::Country::JM),
1431 Country::Jordan => Ok(iso_country::Country::JO),
1432 Country::Japan => Ok(iso_country::Country::JP),
1433 Country::Kenya => Ok(iso_country::Country::KE),
1434 Country::Kyrgyzstan => Ok(iso_country::Country::KG),
1435 Country::Cambodia => Ok(iso_country::Country::KH),
1436 Country::Kiribati => Ok(iso_country::Country::KI),
1437 Country::Comoros => Ok(iso_country::Country::KM),
1438 Country::SaintKittsAndNevis => Ok(iso_country::Country::KN),
1439 Country::KoreaDemocraticPeoplesRepublic => Ok(iso_country::Country::KP),
1440 Country::KoreaRepublic => Ok(iso_country::Country::KR),
1441 Country::Kuwait => Ok(iso_country::Country::KW),
1442 Country::CaymanIslands => Ok(iso_country::Country::KY),
1443 Country::Kazakhstan => Ok(iso_country::Country::KZ),
1444 Country::LaoPeoplesDemocraticRepublic => Ok(iso_country::Country::LA),
1445 Country::Lebanon => Ok(iso_country::Country::LB),
1446 Country::SaintLucia => Ok(iso_country::Country::LC),
1447 Country::Liechtenstein => Ok(iso_country::Country::LI),
1448 Country::SriLanka => Ok(iso_country::Country::LK),
1449 Country::Liberia => Ok(iso_country::Country::LR),
1450 Country::Lesotho => Ok(iso_country::Country::LS),
1451 Country::Lithuania => Ok(iso_country::Country::LT),
1452 Country::Luxembourg => Ok(iso_country::Country::LU),
1453 Country::Latvia => Ok(iso_country::Country::LV),
1454 Country::Libya => Ok(iso_country::Country::LY),
1455 Country::Morocco => Ok(iso_country::Country::MA),
1456 Country::Monaco => Ok(iso_country::Country::MC),
1457 Country::MoldovaRepublic => Ok(iso_country::Country::MD),
1458 Country::Montenegro => Ok(iso_country::Country::ME),
1459 Country::SaintMartinFrenchPart => Ok(iso_country::Country::MF),
1460 Country::Madagascar => Ok(iso_country::Country::MG),
1461 Country::MarshallIslands => Ok(iso_country::Country::MH),
1462 Country::NorthMacedonia => Ok(iso_country::Country::MK),
1463 Country::Mali => Ok(iso_country::Country::ML),
1464 Country::Myanmar => Ok(iso_country::Country::MM),
1465 Country::Mongolia => Ok(iso_country::Country::MN),
1466 Country::Macao => Ok(iso_country::Country::MO),
1467 Country::NorthernMarianaIslands => Ok(iso_country::Country::MP),
1468 Country::Martinique => Ok(iso_country::Country::MQ),
1469 Country::Mauritania => Ok(iso_country::Country::MR),
1470 Country::Montserrat => Ok(iso_country::Country::MS),
1471 Country::Malta => Ok(iso_country::Country::MT),
1472 Country::Mauritius => Ok(iso_country::Country::MU),
1473 Country::Maldives => Ok(iso_country::Country::MV),
1474 Country::Malawi => Ok(iso_country::Country::MW),
1475 Country::Mexico => Ok(iso_country::Country::MX),
1476 Country::Malaysia => Ok(iso_country::Country::MY),
1477 Country::Mozambique => Ok(iso_country::Country::MZ),
1478 Country::Namibia => Ok(iso_country::Country::NA),
1479 Country::NewCaledonia => Ok(iso_country::Country::NC),
1480 Country::Niger => Ok(iso_country::Country::NE),
1481 Country::NorfolkIsland => Ok(iso_country::Country::NF),
1482 Country::Nigeria => Ok(iso_country::Country::NG),
1483 Country::Nicaragua => Ok(iso_country::Country::NI),
1484 Country::Netherlands => Ok(iso_country::Country::NL),
1485 Country::Norway => Ok(iso_country::Country::NO),
1486 Country::Nepal => Ok(iso_country::Country::NP),
1487 Country::Nauru => Ok(iso_country::Country::NR),
1488 Country::Niue => Ok(iso_country::Country::NU),
1489 Country::NewZealand => Ok(iso_country::Country::NZ),
1490 Country::Oman => Ok(iso_country::Country::OM),
1491 Country::Panama => Ok(iso_country::Country::PA),
1492 Country::Peru => Ok(iso_country::Country::PE),
1493 Country::FrenchPolynesia => Ok(iso_country::Country::PF),
1494 Country::PapuaNewGuinea => Ok(iso_country::Country::PG),
1495 Country::Philippines => Ok(iso_country::Country::PH),
1496 Country::Pakistan => Ok(iso_country::Country::PK),
1497 Country::Poland => Ok(iso_country::Country::PL),
1498 Country::SaintPierreAndMiquelon => Ok(iso_country::Country::PM),
1499 Country::Pitcairn => Ok(iso_country::Country::PN),
1500 Country::PuertoRico => Ok(iso_country::Country::PR),
1501 Country::PalestineState => Ok(iso_country::Country::PS),
1502 Country::Portugal => Ok(iso_country::Country::PT),
1503 Country::Palau => Ok(iso_country::Country::PW),
1504 Country::Paraguay => Ok(iso_country::Country::PY),
1505 Country::Qatar => Ok(iso_country::Country::QA),
1506 Country::Réunion => Ok(iso_country::Country::RE),
1507 Country::Romania => Ok(iso_country::Country::RO),
1508 Country::Serbia => Ok(iso_country::Country::RS),
1509 Country::RussianFederation => Ok(iso_country::Country::RU),
1510 Country::Rwanda => Ok(iso_country::Country::RW),
1511 Country::SaudiArabia => Ok(iso_country::Country::SA),
1512 Country::SolomonIslands => Ok(iso_country::Country::SB),
1513 Country::Seychelles => Ok(iso_country::Country::SC),
1514 Country::Sudan => Ok(iso_country::Country::SD),
1515 Country::Sweden => Ok(iso_country::Country::SE),
1516 Country::Singapore => Ok(iso_country::Country::SG),
1517 Country::SaintHelenaAscensionAndTristanDaCunha => Ok(iso_country::Country::SH),
1518 Country::Slovenia => Ok(iso_country::Country::SI),
1519 Country::SvalbardAndJanMayen => Ok(iso_country::Country::SJ),
1520 Country::Slovakia => Ok(iso_country::Country::SK),
1521 Country::SierraLeone => Ok(iso_country::Country::SL),
1522 Country::SanMarino => Ok(iso_country::Country::SM),
1523 Country::Senegal => Ok(iso_country::Country::SN),
1524 Country::Somalia => Ok(iso_country::Country::SO),
1525 Country::Suriname => Ok(iso_country::Country::SR),
1526 Country::SouthSudan => Ok(iso_country::Country::SS),
1527 Country::SaoTomeAndPrincipe => Ok(iso_country::Country::ST),
1528 Country::ElSalvador => Ok(iso_country::Country::SV),
1529 Country::SintMaartenDutchPart => Ok(iso_country::Country::SX),
1530 Country::SyrianArabRepublic => Ok(iso_country::Country::SY),
1531 Country::Eswatini => Ok(iso_country::Country::SZ),
1532 Country::TurksAndCaicosIslands => Ok(iso_country::Country::TC),
1533 Country::Chad => Ok(iso_country::Country::TD),
1534 Country::FrenchSouthernTerritories => Ok(iso_country::Country::TF),
1535 Country::Togo => Ok(iso_country::Country::TG),
1536 Country::Thailand => Ok(iso_country::Country::TH),
1537 Country::Tajikistan => Ok(iso_country::Country::TJ),
1538 Country::Tokelau => Ok(iso_country::Country::TK),
1539 Country::TimorLeste => Ok(iso_country::Country::TL),
1540 Country::Turkmenistan => Ok(iso_country::Country::TM),
1541 Country::Tunisia => Ok(iso_country::Country::TN),
1542 Country::Tonga => Ok(iso_country::Country::TO),
1543 Country::Türkiye => Ok(iso_country::Country::TR),
1544 Country::TrinidadAndTobago => Ok(iso_country::Country::TT),
1545 Country::Tuvalu => Ok(iso_country::Country::TV),
1546 Country::TaiwanProvinceChina => Ok(iso_country::Country::TW),
1547 Country::TanzaniaUnitedRepublic => Ok(iso_country::Country::TZ),
1548 Country::Ukraine => Ok(iso_country::Country::UA),
1549 Country::Uganda => Ok(iso_country::Country::UG),
1550 Country::UnitedStatesMinorOutlyingIslands => Ok(iso_country::Country::UM),
1551 Country::UnitedStatesAmerica => Ok(iso_country::Country::US),
1552 Country::Uruguay => Ok(iso_country::Country::UY),
1553 Country::Uzbekistan => Ok(iso_country::Country::UZ),
1554 Country::HolySee => Ok(iso_country::Country::VA),
1555 Country::SaintVincentAndGrenadines => Ok(iso_country::Country::VC),
1556 Country::VenezuelaBolivarianRepublic => Ok(iso_country::Country::VE),
1557 Country::VirginIslandsBritish => Ok(iso_country::Country::VG),
1558 Country::VirginIslandsUS => Ok(iso_country::Country::VI),
1559 Country::VietNam => Ok(iso_country::Country::VN),
1560 Country::Vanuatu => Ok(iso_country::Country::VU),
1561 Country::WallisAndFutuna => Ok(iso_country::Country::WF),
1562 Country::Samoa => Ok(iso_country::Country::WS),
1563 Country::Yemen => Ok(iso_country::Country::YE),
1564 Country::Mayotte => Ok(iso_country::Country::YT),
1565 Country::SouthAfrica => Ok(iso_country::Country::ZA),
1566 Country::Zambia => Ok(iso_country::Country::ZM),
1567 Country::Zimbabwe => Ok(iso_country::Country::ZW),
1568 Country::Kosovo => Err(ErrFromCountryToIsoCountryCountry::Kosovo),
1569 Country::UnitedKingdomNorthernIreland => {
1570 Err(ErrFromCountryToIsoCountryCountry::UnitedKingdomNorthernIreland)
1571 }
1572 }
1573 }
1574}
1575
1576#[cfg(feature = "iso_country")]
1577#[derive(Debug, PartialEq, Eq, Hash)]
1579pub enum ErrFromCountryToIsoCountryCountry {
1580 Kosovo,
1581 UnitedKingdomNorthernIreland,
1582}
1583
1584#[cfg(feature = "iso_country")]
1585impl std::fmt::Display for ErrFromCountryToIsoCountryCountry {
1586 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1587 match self {
1588 ErrFromCountryToIsoCountryCountry::Kosovo => write!(
1589 f,
1590 "Kosovo has no corresponding value in iso_country::Country"
1591 ),
1592 ErrFromCountryToIsoCountryCountry::UnitedKingdomNorthernIreland => write!(
1593 f,
1594 "UnitedKingdomNorthernIreland has no corresponding value in iso_country::Country"
1595 ),
1596 }
1597 }
1598}
1599
1600#[cfg(feature = "iso_country")]
1601impl std::error::Error for ErrFromCountryToIsoCountryCountry {}
1602
1603#[cfg(feature = "iso_country")]
1604impl std::convert::TryFrom<iso_country::Country> for Country {
1605 type Error = ErrFromIsoCountryCountryToCountry;
1606 fn try_from(value: iso_country::Country) -> Result<Country, Self::Error> {
1607 match value {
1608 iso_country::Country::AD => Ok(Country::Andorra),
1609 iso_country::Country::AE => Ok(Country::UnitedArabEmirates),
1610 iso_country::Country::AF => Ok(Country::Afghanistan),
1611 iso_country::Country::AG => Ok(Country::AntiguaAndBarbuda),
1612 iso_country::Country::AI => Ok(Country::Anguilla),
1613 iso_country::Country::AL => Ok(Country::Albania),
1614 iso_country::Country::AM => Ok(Country::Armenia),
1615 iso_country::Country::AO => Ok(Country::Angola),
1616 iso_country::Country::AQ => Ok(Country::Antarctica),
1617 iso_country::Country::AR => Ok(Country::Argentina),
1618 iso_country::Country::AS => Ok(Country::AmericanSamoa),
1619 iso_country::Country::AT => Ok(Country::Austria),
1620 iso_country::Country::AU => Ok(Country::Australia),
1621 iso_country::Country::AW => Ok(Country::Aruba),
1622 iso_country::Country::AX => Ok(Country::ÅlandIslands),
1623 iso_country::Country::AZ => Ok(Country::Azerbaijan),
1624 iso_country::Country::BA => Ok(Country::BosniaAndHerzegovina),
1625 iso_country::Country::BB => Ok(Country::Barbados),
1626 iso_country::Country::BD => Ok(Country::Bangladesh),
1627 iso_country::Country::BE => Ok(Country::Belgium),
1628 iso_country::Country::BF => Ok(Country::BurkinaFaso),
1629 iso_country::Country::BG => Ok(Country::Bulgaria),
1630 iso_country::Country::BH => Ok(Country::Bahrain),
1631 iso_country::Country::BI => Ok(Country::Burundi),
1632 iso_country::Country::BJ => Ok(Country::Benin),
1633 iso_country::Country::BL => Ok(Country::SaintBarthélemy),
1634 iso_country::Country::BM => Ok(Country::Bermuda),
1635 iso_country::Country::BN => Ok(Country::BruneiDarussalam),
1636 iso_country::Country::BO => Ok(Country::BoliviaPlurinationalState),
1637 iso_country::Country::BQ => Ok(Country::BonaireSintEustatiusAndSaba),
1638 iso_country::Country::BR => Ok(Country::Brazil),
1639 iso_country::Country::BS => Ok(Country::BahamasThe),
1640 iso_country::Country::BT => Ok(Country::Bhutan),
1641 iso_country::Country::BV => Ok(Country::BouvetIsland),
1642 iso_country::Country::BW => Ok(Country::Botswana),
1643 iso_country::Country::BY => Ok(Country::Belarus),
1644 iso_country::Country::BZ => Ok(Country::Belize),
1645 iso_country::Country::CA => Ok(Country::Canada),
1646 iso_country::Country::CC => Ok(Country::CocosKeelingIslands),
1647 iso_country::Country::CD => Ok(Country::CongoDemocraticRepublic),
1648 iso_country::Country::CF => Ok(Country::CentralAfricanRepublic),
1649 iso_country::Country::CG => Ok(Country::Congo),
1650 iso_country::Country::CH => Ok(Country::Switzerland),
1651 iso_country::Country::CI => Ok(Country::CôteDivoire),
1652 iso_country::Country::CK => Ok(Country::CookIslands),
1653 iso_country::Country::CL => Ok(Country::Chile),
1654 iso_country::Country::CM => Ok(Country::Cameroon),
1655 iso_country::Country::CN => Ok(Country::China),
1656 iso_country::Country::CO => Ok(Country::Colombia),
1657 iso_country::Country::CR => Ok(Country::CostaRica),
1658 iso_country::Country::CU => Ok(Country::Cuba),
1659 iso_country::Country::CV => Ok(Country::CaboVerde),
1660 iso_country::Country::CW => Ok(Country::Curaçao),
1661 iso_country::Country::CX => Ok(Country::ChristmasIsland),
1662 iso_country::Country::CY => Ok(Country::Cyprus),
1663 iso_country::Country::CZ => Ok(Country::Czechia),
1664 iso_country::Country::DE => Ok(Country::Germany),
1665 iso_country::Country::DJ => Ok(Country::Djibouti),
1666 iso_country::Country::DK => Ok(Country::Denmark),
1667 iso_country::Country::DM => Ok(Country::Dominica),
1668 iso_country::Country::DO => Ok(Country::DominicanRepublic),
1669 iso_country::Country::DZ => Ok(Country::Algeria),
1670 iso_country::Country::EC => Ok(Country::Ecuador),
1671 iso_country::Country::EE => Ok(Country::Estonia),
1672 iso_country::Country::EG => Ok(Country::Egypt),
1673 iso_country::Country::EH => Ok(Country::WesternSahara),
1674 iso_country::Country::ER => Ok(Country::Eritrea),
1675 iso_country::Country::ES => Ok(Country::Spain),
1676 iso_country::Country::ET => Ok(Country::Ethiopia),
1677 iso_country::Country::FI => Ok(Country::Finland),
1678 iso_country::Country::FJ => Ok(Country::Fiji),
1679 iso_country::Country::FK => Ok(Country::FalklandIslandsMalvinas),
1680 iso_country::Country::FM => Ok(Country::MicronesiaFederatedStates),
1681 iso_country::Country::FO => Ok(Country::FaroeIslands),
1682 iso_country::Country::FR => Ok(Country::France),
1683 iso_country::Country::GA => Ok(Country::Gabon),
1684 iso_country::Country::GB => Ok(Country::UnitedKingdomGreatBritainAndNorthernIreland),
1685 iso_country::Country::GD => Ok(Country::Grenada),
1686 iso_country::Country::GE => Ok(Country::Georgia),
1687 iso_country::Country::GF => Ok(Country::FrenchGuiana),
1688 iso_country::Country::GG => Ok(Country::Guernsey),
1689 iso_country::Country::GH => Ok(Country::Ghana),
1690 iso_country::Country::GI => Ok(Country::Gibraltar),
1691 iso_country::Country::GL => Ok(Country::Greenland),
1692 iso_country::Country::GM => Ok(Country::Gambia),
1693 iso_country::Country::GN => Ok(Country::Guinea),
1694 iso_country::Country::GP => Ok(Country::Guadeloupe),
1695 iso_country::Country::GQ => Ok(Country::EquatorialGuinea),
1696 iso_country::Country::GR => Ok(Country::Greece),
1697 iso_country::Country::GS => Ok(Country::SouthGeorgiaAndSouthSandwichIslands),
1698 iso_country::Country::GT => Ok(Country::Guatemala),
1699 iso_country::Country::GU => Ok(Country::Guam),
1700 iso_country::Country::GW => Ok(Country::GuineaBissau),
1701 iso_country::Country::GY => Ok(Country::Guyana),
1702 iso_country::Country::HK => Ok(Country::HongKong),
1703 iso_country::Country::HM => Ok(Country::HeardIslandAndMcdonaldIslands),
1704 iso_country::Country::HN => Ok(Country::Honduras),
1705 iso_country::Country::HR => Ok(Country::Croatia),
1706 iso_country::Country::HT => Ok(Country::Haiti),
1707 iso_country::Country::HU => Ok(Country::Hungary),
1708 iso_country::Country::ID => Ok(Country::Indonesia),
1709 iso_country::Country::IE => Ok(Country::Ireland),
1710 iso_country::Country::IL => Ok(Country::Israel),
1711 iso_country::Country::IM => Ok(Country::IsleMan),
1712 iso_country::Country::IN => Ok(Country::India),
1713 iso_country::Country::IO => Ok(Country::BritishIndianOceanTerritory),
1714 iso_country::Country::IQ => Ok(Country::Iraq),
1715 iso_country::Country::IR => Ok(Country::IranIslamicRepublic),
1716 iso_country::Country::IS => Ok(Country::Iceland),
1717 iso_country::Country::IT => Ok(Country::Italy),
1718 iso_country::Country::JE => Ok(Country::Jersey),
1719 iso_country::Country::JM => Ok(Country::Jamaica),
1720 iso_country::Country::JO => Ok(Country::Jordan),
1721 iso_country::Country::JP => Ok(Country::Japan),
1722 iso_country::Country::KE => Ok(Country::Kenya),
1723 iso_country::Country::KG => Ok(Country::Kyrgyzstan),
1724 iso_country::Country::KH => Ok(Country::Cambodia),
1725 iso_country::Country::KI => Ok(Country::Kiribati),
1726 iso_country::Country::KM => Ok(Country::Comoros),
1727 iso_country::Country::KN => Ok(Country::SaintKittsAndNevis),
1728 iso_country::Country::KP => Ok(Country::KoreaDemocraticPeoplesRepublic),
1729 iso_country::Country::KR => Ok(Country::KoreaRepublic),
1730 iso_country::Country::KW => Ok(Country::Kuwait),
1731 iso_country::Country::KY => Ok(Country::CaymanIslands),
1732 iso_country::Country::KZ => Ok(Country::Kazakhstan),
1733 iso_country::Country::LA => Ok(Country::LaoPeoplesDemocraticRepublic),
1734 iso_country::Country::LB => Ok(Country::Lebanon),
1735 iso_country::Country::LC => Ok(Country::SaintLucia),
1736 iso_country::Country::LI => Ok(Country::Liechtenstein),
1737 iso_country::Country::LK => Ok(Country::SriLanka),
1738 iso_country::Country::LR => Ok(Country::Liberia),
1739 iso_country::Country::LS => Ok(Country::Lesotho),
1740 iso_country::Country::LT => Ok(Country::Lithuania),
1741 iso_country::Country::LU => Ok(Country::Luxembourg),
1742 iso_country::Country::LV => Ok(Country::Latvia),
1743 iso_country::Country::LY => Ok(Country::Libya),
1744 iso_country::Country::MA => Ok(Country::Morocco),
1745 iso_country::Country::MC => Ok(Country::Monaco),
1746 iso_country::Country::MD => Ok(Country::MoldovaRepublic),
1747 iso_country::Country::ME => Ok(Country::Montenegro),
1748 iso_country::Country::MF => Ok(Country::SaintMartinFrenchPart),
1749 iso_country::Country::MG => Ok(Country::Madagascar),
1750 iso_country::Country::MH => Ok(Country::MarshallIslands),
1751 iso_country::Country::MK => Ok(Country::NorthMacedonia),
1752 iso_country::Country::ML => Ok(Country::Mali),
1753 iso_country::Country::MM => Ok(Country::Myanmar),
1754 iso_country::Country::MN => Ok(Country::Mongolia),
1755 iso_country::Country::MO => Ok(Country::Macao),
1756 iso_country::Country::MP => Ok(Country::NorthernMarianaIslands),
1757 iso_country::Country::MQ => Ok(Country::Martinique),
1758 iso_country::Country::MR => Ok(Country::Mauritania),
1759 iso_country::Country::MS => Ok(Country::Montserrat),
1760 iso_country::Country::MT => Ok(Country::Malta),
1761 iso_country::Country::MU => Ok(Country::Mauritius),
1762 iso_country::Country::MV => Ok(Country::Maldives),
1763 iso_country::Country::MW => Ok(Country::Malawi),
1764 iso_country::Country::MX => Ok(Country::Mexico),
1765 iso_country::Country::MY => Ok(Country::Malaysia),
1766 iso_country::Country::MZ => Ok(Country::Mozambique),
1767 iso_country::Country::NA => Ok(Country::Namibia),
1768 iso_country::Country::NC => Ok(Country::NewCaledonia),
1769 iso_country::Country::NE => Ok(Country::Niger),
1770 iso_country::Country::NF => Ok(Country::NorfolkIsland),
1771 iso_country::Country::NG => Ok(Country::Nigeria),
1772 iso_country::Country::NI => Ok(Country::Nicaragua),
1773 iso_country::Country::NL => Ok(Country::Netherlands),
1774 iso_country::Country::NO => Ok(Country::Norway),
1775 iso_country::Country::NP => Ok(Country::Nepal),
1776 iso_country::Country::NR => Ok(Country::Nauru),
1777 iso_country::Country::NU => Ok(Country::Niue),
1778 iso_country::Country::NZ => Ok(Country::NewZealand),
1779 iso_country::Country::OM => Ok(Country::Oman),
1780 iso_country::Country::PA => Ok(Country::Panama),
1781 iso_country::Country::PE => Ok(Country::Peru),
1782 iso_country::Country::PF => Ok(Country::FrenchPolynesia),
1783 iso_country::Country::PG => Ok(Country::PapuaNewGuinea),
1784 iso_country::Country::PH => Ok(Country::Philippines),
1785 iso_country::Country::PK => Ok(Country::Pakistan),
1786 iso_country::Country::PL => Ok(Country::Poland),
1787 iso_country::Country::PM => Ok(Country::SaintPierreAndMiquelon),
1788 iso_country::Country::PN => Ok(Country::Pitcairn),
1789 iso_country::Country::PR => Ok(Country::PuertoRico),
1790 iso_country::Country::PS => Ok(Country::PalestineState),
1791 iso_country::Country::PT => Ok(Country::Portugal),
1792 iso_country::Country::PW => Ok(Country::Palau),
1793 iso_country::Country::PY => Ok(Country::Paraguay),
1794 iso_country::Country::QA => Ok(Country::Qatar),
1795 iso_country::Country::RE => Ok(Country::Réunion),
1796 iso_country::Country::RO => Ok(Country::Romania),
1797 iso_country::Country::RS => Ok(Country::Serbia),
1798 iso_country::Country::RU => Ok(Country::RussianFederation),
1799 iso_country::Country::RW => Ok(Country::Rwanda),
1800 iso_country::Country::SA => Ok(Country::SaudiArabia),
1801 iso_country::Country::SB => Ok(Country::SolomonIslands),
1802 iso_country::Country::SC => Ok(Country::Seychelles),
1803 iso_country::Country::SD => Ok(Country::Sudan),
1804 iso_country::Country::SE => Ok(Country::Sweden),
1805 iso_country::Country::SG => Ok(Country::Singapore),
1806 iso_country::Country::SH => Ok(Country::SaintHelenaAscensionAndTristanDaCunha),
1807 iso_country::Country::SI => Ok(Country::Slovenia),
1808 iso_country::Country::SJ => Ok(Country::SvalbardAndJanMayen),
1809 iso_country::Country::SK => Ok(Country::Slovakia),
1810 iso_country::Country::SL => Ok(Country::SierraLeone),
1811 iso_country::Country::SM => Ok(Country::SanMarino),
1812 iso_country::Country::SN => Ok(Country::Senegal),
1813 iso_country::Country::SO => Ok(Country::Somalia),
1814 iso_country::Country::SR => Ok(Country::Suriname),
1815 iso_country::Country::SS => Ok(Country::SouthSudan),
1816 iso_country::Country::ST => Ok(Country::SaoTomeAndPrincipe),
1817 iso_country::Country::SV => Ok(Country::ElSalvador),
1818 iso_country::Country::SX => Ok(Country::SintMaartenDutchPart),
1819 iso_country::Country::SY => Ok(Country::SyrianArabRepublic),
1820 iso_country::Country::SZ => Ok(Country::Eswatini),
1821 iso_country::Country::TC => Ok(Country::TurksAndCaicosIslands),
1822 iso_country::Country::TD => Ok(Country::Chad),
1823 iso_country::Country::TF => Ok(Country::FrenchSouthernTerritories),
1824 iso_country::Country::TG => Ok(Country::Togo),
1825 iso_country::Country::TH => Ok(Country::Thailand),
1826 iso_country::Country::TJ => Ok(Country::Tajikistan),
1827 iso_country::Country::TK => Ok(Country::Tokelau),
1828 iso_country::Country::TL => Ok(Country::TimorLeste),
1829 iso_country::Country::TM => Ok(Country::Turkmenistan),
1830 iso_country::Country::TN => Ok(Country::Tunisia),
1831 iso_country::Country::TO => Ok(Country::Tonga),
1832 iso_country::Country::TR => Ok(Country::Türkiye),
1833 iso_country::Country::TT => Ok(Country::TrinidadAndTobago),
1834 iso_country::Country::TV => Ok(Country::Tuvalu),
1835 iso_country::Country::TW => Ok(Country::TaiwanProvinceChina),
1836 iso_country::Country::TZ => Ok(Country::TanzaniaUnitedRepublic),
1837 iso_country::Country::UA => Ok(Country::Ukraine),
1838 iso_country::Country::UG => Ok(Country::Uganda),
1839 iso_country::Country::UM => Ok(Country::UnitedStatesMinorOutlyingIslands),
1840 iso_country::Country::US => Ok(Country::UnitedStatesAmerica),
1841 iso_country::Country::UY => Ok(Country::Uruguay),
1842 iso_country::Country::UZ => Ok(Country::Uzbekistan),
1843 iso_country::Country::VA => Ok(Country::HolySee),
1844 iso_country::Country::VC => Ok(Country::SaintVincentAndGrenadines),
1845 iso_country::Country::VE => Ok(Country::VenezuelaBolivarianRepublic),
1846 iso_country::Country::VG => Ok(Country::VirginIslandsBritish),
1847 iso_country::Country::VI => Ok(Country::VirginIslandsUS),
1848 iso_country::Country::VN => Ok(Country::VietNam),
1849 iso_country::Country::VU => Ok(Country::Vanuatu),
1850 iso_country::Country::WF => Ok(Country::WallisAndFutuna),
1851 iso_country::Country::WS => Ok(Country::Samoa),
1852 iso_country::Country::YE => Ok(Country::Yemen),
1853 iso_country::Country::YT => Ok(Country::Mayotte),
1854 iso_country::Country::ZA => Ok(Country::SouthAfrica),
1855 iso_country::Country::ZM => Ok(Country::Zambia),
1856 iso_country::Country::ZW => Ok(Country::Zimbabwe),
1857 iso_country::Country::Unspecified => {
1858 Err(ErrFromIsoCountryCountryToCountry::Unspecified)
1859 }
1860 }
1861 }
1862}
1863
1864#[cfg(feature = "iso_country")]
1865#[derive(Debug, PartialEq, Eq, Hash)]
1867pub enum ErrFromIsoCountryCountryToCountry {
1868 Unspecified,
1869}
1870
1871#[cfg(feature = "iso_country")]
1872impl std::fmt::Display for ErrFromIsoCountryCountryToCountry {
1873 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1874 match self {
1875 ErrFromIsoCountryCountryToCountry::Unspecified => {
1876 write!(f, "Unspecified has no corresponding value in Country")
1877 }
1878 }
1879 }
1880}
1881
1882#[cfg(feature = "iso_country")]
1883impl std::error::Error for ErrFromIsoCountryCountryToCountry {}
1884impl std::convert::TryFrom<Country> for crate::zugferd_2_3_3::Country {
1887 type Error = std::convert::Infallible;
1888 fn try_from(value: Country) -> Result<Self, Self::Error> {
1889 match value {
1890 Country::Andorra => Ok(crate::zugferd_2_3_3::Country::Andorra),
1891 Country::UnitedArabEmirates => Ok(crate::zugferd_2_3_3::Country::UnitedArabEmirates),
1892 Country::Afghanistan => Ok(crate::zugferd_2_3_3::Country::Afghanistan),
1893 Country::AntiguaAndBarbuda => Ok(crate::zugferd_2_3_3::Country::AntiguaAndBarbuda),
1894 Country::Anguilla => Ok(crate::zugferd_2_3_3::Country::Anguilla),
1895 Country::Albania => Ok(crate::zugferd_2_3_3::Country::Albania),
1896 Country::Armenia => Ok(crate::zugferd_2_3_3::Country::Armenia),
1897 Country::Angola => Ok(crate::zugferd_2_3_3::Country::Angola),
1898 Country::Antarctica => Ok(crate::zugferd_2_3_3::Country::Antarctica),
1899 Country::Argentina => Ok(crate::zugferd_2_3_3::Country::Argentina),
1900 Country::AmericanSamoa => Ok(crate::zugferd_2_3_3::Country::AmericanSamoa),
1901 Country::Austria => Ok(crate::zugferd_2_3_3::Country::Austria),
1902 Country::Australia => Ok(crate::zugferd_2_3_3::Country::Australia),
1903 Country::Aruba => Ok(crate::zugferd_2_3_3::Country::Aruba),
1904 Country::ÅlandIslands => Ok(crate::zugferd_2_3_3::Country::ÅlandIslands),
1905 Country::Azerbaijan => Ok(crate::zugferd_2_3_3::Country::Azerbaijan),
1906 Country::BosniaAndHerzegovina => {
1907 Ok(crate::zugferd_2_3_3::Country::BosniaAndHerzegovina)
1908 }
1909 Country::Barbados => Ok(crate::zugferd_2_3_3::Country::Barbados),
1910 Country::Bangladesh => Ok(crate::zugferd_2_3_3::Country::Bangladesh),
1911 Country::Belgium => Ok(crate::zugferd_2_3_3::Country::Belgium),
1912 Country::BurkinaFaso => Ok(crate::zugferd_2_3_3::Country::BurkinaFaso),
1913 Country::Bulgaria => Ok(crate::zugferd_2_3_3::Country::Bulgaria),
1914 Country::Bahrain => Ok(crate::zugferd_2_3_3::Country::Bahrain),
1915 Country::Burundi => Ok(crate::zugferd_2_3_3::Country::Burundi),
1916 Country::Benin => Ok(crate::zugferd_2_3_3::Country::Benin),
1917 Country::SaintBarthélemy => Ok(crate::zugferd_2_3_3::Country::SaintBarthélemy),
1918 Country::Bermuda => Ok(crate::zugferd_2_3_3::Country::Bermuda),
1919 Country::BruneiDarussalam => Ok(crate::zugferd_2_3_3::Country::BruneiDarussalam),
1920 Country::BoliviaPlurinationalState => {
1921 Ok(crate::zugferd_2_3_3::Country::BoliviaPlurinationalState)
1922 }
1923 Country::BonaireSintEustatiusAndSaba => {
1924 Ok(crate::zugferd_2_3_3::Country::BonaireSintEustatiusAndSaba)
1925 }
1926 Country::Brazil => Ok(crate::zugferd_2_3_3::Country::Brazil),
1927 Country::BahamasThe => Ok(crate::zugferd_2_3_3::Country::Bahamas),
1928 Country::Bhutan => Ok(crate::zugferd_2_3_3::Country::Bhutan),
1929 Country::BouvetIsland => Ok(crate::zugferd_2_3_3::Country::BouvetIsland),
1930 Country::Botswana => Ok(crate::zugferd_2_3_3::Country::Botswana),
1931 Country::Belarus => Ok(crate::zugferd_2_3_3::Country::Belarus),
1932 Country::Belize => Ok(crate::zugferd_2_3_3::Country::Belize),
1933 Country::Canada => Ok(crate::zugferd_2_3_3::Country::Canada),
1934 Country::CocosKeelingIslands => Ok(crate::zugferd_2_3_3::Country::CocosKeelingIslands),
1935 Country::CongoDemocraticRepublic => {
1936 Ok(crate::zugferd_2_3_3::Country::CongoDemocraticRepublic)
1937 }
1938 Country::CentralAfricanRepublic => {
1939 Ok(crate::zugferd_2_3_3::Country::CentralAfricanRepublic)
1940 }
1941 Country::Congo => Ok(crate::zugferd_2_3_3::Country::Congo),
1942 Country::Switzerland => Ok(crate::zugferd_2_3_3::Country::Switzerland),
1943 Country::CôteDivoire => Ok(crate::zugferd_2_3_3::Country::CôteDivoire),
1944 Country::CookIslands => Ok(crate::zugferd_2_3_3::Country::CookIslands),
1945 Country::Chile => Ok(crate::zugferd_2_3_3::Country::Chile),
1946 Country::Cameroon => Ok(crate::zugferd_2_3_3::Country::Cameroon),
1947 Country::China => Ok(crate::zugferd_2_3_3::Country::China),
1948 Country::Colombia => Ok(crate::zugferd_2_3_3::Country::Colombia),
1949 Country::CostaRica => Ok(crate::zugferd_2_3_3::Country::CostaRica),
1950 Country::Cuba => Ok(crate::zugferd_2_3_3::Country::Cuba),
1951 Country::CaboVerde => Ok(crate::zugferd_2_3_3::Country::CaboVerde),
1952 Country::Curaçao => Ok(crate::zugferd_2_3_3::Country::Curaçao),
1953 Country::ChristmasIsland => Ok(crate::zugferd_2_3_3::Country::ChristmasIsland),
1954 Country::Cyprus => Ok(crate::zugferd_2_3_3::Country::Cyprus),
1955 Country::Czechia => Ok(crate::zugferd_2_3_3::Country::Czechia),
1956 Country::Germany => Ok(crate::zugferd_2_3_3::Country::Germany),
1957 Country::Djibouti => Ok(crate::zugferd_2_3_3::Country::Djibouti),
1958 Country::Denmark => Ok(crate::zugferd_2_3_3::Country::Denmark),
1959 Country::Dominica => Ok(crate::zugferd_2_3_3::Country::Dominica),
1960 Country::DominicanRepublic => Ok(crate::zugferd_2_3_3::Country::DominicanRepublic),
1961 Country::Algeria => Ok(crate::zugferd_2_3_3::Country::Algeria),
1962 Country::Ecuador => Ok(crate::zugferd_2_3_3::Country::Ecuador),
1963 Country::Estonia => Ok(crate::zugferd_2_3_3::Country::Estonia),
1964 Country::Egypt => Ok(crate::zugferd_2_3_3::Country::Egypt),
1965 Country::WesternSahara => Ok(crate::zugferd_2_3_3::Country::WesternSahara),
1966 Country::Eritrea => Ok(crate::zugferd_2_3_3::Country::Eritrea),
1967 Country::Spain => Ok(crate::zugferd_2_3_3::Country::Spain),
1968 Country::Ethiopia => Ok(crate::zugferd_2_3_3::Country::Ethiopia),
1969 Country::Finland => Ok(crate::zugferd_2_3_3::Country::Finland),
1970 Country::Fiji => Ok(crate::zugferd_2_3_3::Country::Fiji),
1971 Country::FalklandIslandsMalvinas => {
1972 Ok(crate::zugferd_2_3_3::Country::FalklandIslandsMalvinas)
1973 }
1974 Country::MicronesiaFederatedStates => {
1975 Ok(crate::zugferd_2_3_3::Country::MicronesiaFederatedStates)
1976 }
1977 Country::FaroeIslands => Ok(crate::zugferd_2_3_3::Country::FaroeIslands),
1978 Country::France => Ok(crate::zugferd_2_3_3::Country::France),
1979 Country::Gabon => Ok(crate::zugferd_2_3_3::Country::Gabon),
1980 Country::UnitedKingdomGreatBritainAndNorthernIreland => {
1981 Ok(crate::zugferd_2_3_3::Country::UnitedKingdomGreatBritainAndNorthernIreland)
1982 }
1983 Country::Grenada => Ok(crate::zugferd_2_3_3::Country::Grenada),
1984 Country::Georgia => Ok(crate::zugferd_2_3_3::Country::Georgia),
1985 Country::FrenchGuiana => Ok(crate::zugferd_2_3_3::Country::FrenchGuiana),
1986 Country::Guernsey => Ok(crate::zugferd_2_3_3::Country::Guernsey),
1987 Country::Ghana => Ok(crate::zugferd_2_3_3::Country::Ghana),
1988 Country::Gibraltar => Ok(crate::zugferd_2_3_3::Country::Gibraltar),
1989 Country::Greenland => Ok(crate::zugferd_2_3_3::Country::Greenland),
1990 Country::Gambia => Ok(crate::zugferd_2_3_3::Country::Gambia),
1991 Country::Guinea => Ok(crate::zugferd_2_3_3::Country::Guinea),
1992 Country::Guadeloupe => Ok(crate::zugferd_2_3_3::Country::Guadeloupe),
1993 Country::EquatorialGuinea => Ok(crate::zugferd_2_3_3::Country::EquatorialGuinea),
1994 Country::Greece => Ok(crate::zugferd_2_3_3::Country::Greece),
1995 Country::SouthGeorgiaAndSouthSandwichIslands => {
1996 Ok(crate::zugferd_2_3_3::Country::SouthGeorgiaAndSouthSandwichIslands)
1997 }
1998 Country::Guatemala => Ok(crate::zugferd_2_3_3::Country::Guatemala),
1999 Country::Guam => Ok(crate::zugferd_2_3_3::Country::Guam),
2000 Country::GuineaBissau => Ok(crate::zugferd_2_3_3::Country::GuineaBissau),
2001 Country::Guyana => Ok(crate::zugferd_2_3_3::Country::Guyana),
2002 Country::HongKong => Ok(crate::zugferd_2_3_3::Country::HongKong),
2003 Country::HeardIslandAndMcdonaldIslands => {
2004 Ok(crate::zugferd_2_3_3::Country::HeardIslandAndMcdonaldIslands)
2005 }
2006 Country::Honduras => Ok(crate::zugferd_2_3_3::Country::Honduras),
2007 Country::Croatia => Ok(crate::zugferd_2_3_3::Country::Croatia),
2008 Country::Haiti => Ok(crate::zugferd_2_3_3::Country::Haiti),
2009 Country::Hungary => Ok(crate::zugferd_2_3_3::Country::Hungary),
2010 Country::Indonesia => Ok(crate::zugferd_2_3_3::Country::Indonesia),
2011 Country::Ireland => Ok(crate::zugferd_2_3_3::Country::Ireland),
2012 Country::Israel => Ok(crate::zugferd_2_3_3::Country::Israel),
2013 Country::IsleMan => Ok(crate::zugferd_2_3_3::Country::IsleMan),
2014 Country::India => Ok(crate::zugferd_2_3_3::Country::India),
2015 Country::BritishIndianOceanTerritory => {
2016 Ok(crate::zugferd_2_3_3::Country::BritishIndianOceanTerritory)
2017 }
2018 Country::Iraq => Ok(crate::zugferd_2_3_3::Country::Iraq),
2019 Country::IranIslamicRepublic => Ok(crate::zugferd_2_3_3::Country::IranIslamicRepublic),
2020 Country::Iceland => Ok(crate::zugferd_2_3_3::Country::Iceland),
2021 Country::Italy => Ok(crate::zugferd_2_3_3::Country::Italy),
2022 Country::Jersey => Ok(crate::zugferd_2_3_3::Country::Jersey),
2023 Country::Jamaica => Ok(crate::zugferd_2_3_3::Country::Jamaica),
2024 Country::Jordan => Ok(crate::zugferd_2_3_3::Country::Jordan),
2025 Country::Japan => Ok(crate::zugferd_2_3_3::Country::Japan),
2026 Country::Kenya => Ok(crate::zugferd_2_3_3::Country::Kenya),
2027 Country::Kyrgyzstan => Ok(crate::zugferd_2_3_3::Country::Kyrgyzstan),
2028 Country::Cambodia => Ok(crate::zugferd_2_3_3::Country::Cambodia),
2029 Country::Kiribati => Ok(crate::zugferd_2_3_3::Country::Kiribati),
2030 Country::Comoros => Ok(crate::zugferd_2_3_3::Country::Comoros),
2031 Country::SaintKittsAndNevis => Ok(crate::zugferd_2_3_3::Country::SaintKittsAndNevis),
2032 Country::KoreaDemocraticPeoplesRepublic => {
2033 Ok(crate::zugferd_2_3_3::Country::KoreaDemocraticPeoplesRepublic)
2034 }
2035 Country::KoreaRepublic => Ok(crate::zugferd_2_3_3::Country::KoreaRepublic),
2036 Country::Kuwait => Ok(crate::zugferd_2_3_3::Country::Kuwait),
2037 Country::CaymanIslands => Ok(crate::zugferd_2_3_3::Country::CaymanIslands),
2038 Country::Kazakhstan => Ok(crate::zugferd_2_3_3::Country::Kazakhstan),
2039 Country::LaoPeoplesDemocraticRepublic => {
2040 Ok(crate::zugferd_2_3_3::Country::LaoPeoplesDemocraticRepublic)
2041 }
2042 Country::Lebanon => Ok(crate::zugferd_2_3_3::Country::Lebanon),
2043 Country::SaintLucia => Ok(crate::zugferd_2_3_3::Country::SaintLucia),
2044 Country::Liechtenstein => Ok(crate::zugferd_2_3_3::Country::Liechtenstein),
2045 Country::SriLanka => Ok(crate::zugferd_2_3_3::Country::SriLanka),
2046 Country::Liberia => Ok(crate::zugferd_2_3_3::Country::Liberia),
2047 Country::Lesotho => Ok(crate::zugferd_2_3_3::Country::Lesotho),
2048 Country::Lithuania => Ok(crate::zugferd_2_3_3::Country::Lithuania),
2049 Country::Luxembourg => Ok(crate::zugferd_2_3_3::Country::Luxembourg),
2050 Country::Latvia => Ok(crate::zugferd_2_3_3::Country::Latvia),
2051 Country::Libya => Ok(crate::zugferd_2_3_3::Country::Libya),
2052 Country::Morocco => Ok(crate::zugferd_2_3_3::Country::Morocco),
2053 Country::Monaco => Ok(crate::zugferd_2_3_3::Country::Monaco),
2054 Country::MoldovaRepublic => Ok(crate::zugferd_2_3_3::Country::MoldovaRepublic),
2055 Country::Montenegro => Ok(crate::zugferd_2_3_3::Country::Montenegro),
2056 Country::SaintMartinFrenchPart => {
2057 Ok(crate::zugferd_2_3_3::Country::SaintMartinFrenchPart)
2058 }
2059 Country::Madagascar => Ok(crate::zugferd_2_3_3::Country::Madagascar),
2060 Country::MarshallIslands => Ok(crate::zugferd_2_3_3::Country::MarshallIslands),
2061 Country::NorthMacedonia => Ok(crate::zugferd_2_3_3::Country::NorthMacedonia),
2062 Country::Mali => Ok(crate::zugferd_2_3_3::Country::Mali),
2063 Country::Myanmar => Ok(crate::zugferd_2_3_3::Country::Myanmar),
2064 Country::Mongolia => Ok(crate::zugferd_2_3_3::Country::Mongolia),
2065 Country::Macao => Ok(crate::zugferd_2_3_3::Country::Macao),
2066 Country::NorthernMarianaIslands => {
2067 Ok(crate::zugferd_2_3_3::Country::NorthernMarianaIslands)
2068 }
2069 Country::Martinique => Ok(crate::zugferd_2_3_3::Country::Martinique),
2070 Country::Mauritania => Ok(crate::zugferd_2_3_3::Country::Mauritania),
2071 Country::Montserrat => Ok(crate::zugferd_2_3_3::Country::Montserrat),
2072 Country::Malta => Ok(crate::zugferd_2_3_3::Country::Malta),
2073 Country::Mauritius => Ok(crate::zugferd_2_3_3::Country::Mauritius),
2074 Country::Maldives => Ok(crate::zugferd_2_3_3::Country::Maldives),
2075 Country::Malawi => Ok(crate::zugferd_2_3_3::Country::Malawi),
2076 Country::Mexico => Ok(crate::zugferd_2_3_3::Country::Mexico),
2077 Country::Malaysia => Ok(crate::zugferd_2_3_3::Country::Malaysia),
2078 Country::Mozambique => Ok(crate::zugferd_2_3_3::Country::Mozambique),
2079 Country::Namibia => Ok(crate::zugferd_2_3_3::Country::Namibia),
2080 Country::NewCaledonia => Ok(crate::zugferd_2_3_3::Country::NewCaledonia),
2081 Country::Niger => Ok(crate::zugferd_2_3_3::Country::Niger),
2082 Country::NorfolkIsland => Ok(crate::zugferd_2_3_3::Country::NorfolkIsland),
2083 Country::Nigeria => Ok(crate::zugferd_2_3_3::Country::Nigeria),
2084 Country::Nicaragua => Ok(crate::zugferd_2_3_3::Country::Nicaragua),
2085 Country::Netherlands => Ok(crate::zugferd_2_3_3::Country::Netherlands),
2086 Country::Norway => Ok(crate::zugferd_2_3_3::Country::Norway),
2087 Country::Nepal => Ok(crate::zugferd_2_3_3::Country::Nepal),
2088 Country::Nauru => Ok(crate::zugferd_2_3_3::Country::Nauru),
2089 Country::Niue => Ok(crate::zugferd_2_3_3::Country::Niue),
2090 Country::NewZealand => Ok(crate::zugferd_2_3_3::Country::NewZealand),
2091 Country::Oman => Ok(crate::zugferd_2_3_3::Country::Oman),
2092 Country::Panama => Ok(crate::zugferd_2_3_3::Country::Panama),
2093 Country::Peru => Ok(crate::zugferd_2_3_3::Country::Peru),
2094 Country::FrenchPolynesia => Ok(crate::zugferd_2_3_3::Country::FrenchPolynesia),
2095 Country::PapuaNewGuinea => Ok(crate::zugferd_2_3_3::Country::PapuaNewGuinea),
2096 Country::Philippines => Ok(crate::zugferd_2_3_3::Country::Philippines),
2097 Country::Pakistan => Ok(crate::zugferd_2_3_3::Country::Pakistan),
2098 Country::Poland => Ok(crate::zugferd_2_3_3::Country::Poland),
2099 Country::SaintPierreAndMiquelon => {
2100 Ok(crate::zugferd_2_3_3::Country::SaintPierreAndMiquelon)
2101 }
2102 Country::Pitcairn => Ok(crate::zugferd_2_3_3::Country::Pitcairn),
2103 Country::PuertoRico => Ok(crate::zugferd_2_3_3::Country::PuertoRico),
2104 Country::PalestineState => Ok(crate::zugferd_2_3_3::Country::PalestineState),
2105 Country::Portugal => Ok(crate::zugferd_2_3_3::Country::Portugal),
2106 Country::Palau => Ok(crate::zugferd_2_3_3::Country::Palau),
2107 Country::Paraguay => Ok(crate::zugferd_2_3_3::Country::Paraguay),
2108 Country::Qatar => Ok(crate::zugferd_2_3_3::Country::Qatar),
2109 Country::Réunion => Ok(crate::zugferd_2_3_3::Country::Réunion),
2110 Country::Romania => Ok(crate::zugferd_2_3_3::Country::Romania),
2111 Country::Serbia => Ok(crate::zugferd_2_3_3::Country::Serbia),
2112 Country::RussianFederation => Ok(crate::zugferd_2_3_3::Country::RussianFederation),
2113 Country::Rwanda => Ok(crate::zugferd_2_3_3::Country::Rwanda),
2114 Country::SaudiArabia => Ok(crate::zugferd_2_3_3::Country::SaudiArabia),
2115 Country::SolomonIslands => Ok(crate::zugferd_2_3_3::Country::SolomonIslands),
2116 Country::Seychelles => Ok(crate::zugferd_2_3_3::Country::Seychelles),
2117 Country::Sudan => Ok(crate::zugferd_2_3_3::Country::Sudan),
2118 Country::Sweden => Ok(crate::zugferd_2_3_3::Country::Sweden),
2119 Country::Singapore => Ok(crate::zugferd_2_3_3::Country::Singapore),
2120 Country::SaintHelenaAscensionAndTristanDaCunha => {
2121 Ok(crate::zugferd_2_3_3::Country::SaintHelenaAscensionAndTristanDaCunha)
2122 }
2123 Country::Slovenia => Ok(crate::zugferd_2_3_3::Country::Slovenia),
2124 Country::SvalbardAndJanMayen => Ok(crate::zugferd_2_3_3::Country::SvalbardAndJanMayen),
2125 Country::Slovakia => Ok(crate::zugferd_2_3_3::Country::Slovakia),
2126 Country::SierraLeone => Ok(crate::zugferd_2_3_3::Country::SierraLeone),
2127 Country::SanMarino => Ok(crate::zugferd_2_3_3::Country::SanMarino),
2128 Country::Senegal => Ok(crate::zugferd_2_3_3::Country::Senegal),
2129 Country::Somalia => Ok(crate::zugferd_2_3_3::Country::Somalia),
2130 Country::Suriname => Ok(crate::zugferd_2_3_3::Country::Suriname),
2131 Country::SouthSudan => Ok(crate::zugferd_2_3_3::Country::SouthSudan),
2132 Country::SaoTomeAndPrincipe => Ok(crate::zugferd_2_3_3::Country::SaoTomeAndPrincipe),
2133 Country::ElSalvador => Ok(crate::zugferd_2_3_3::Country::ElSalvador),
2134 Country::SintMaartenDutchPart => {
2135 Ok(crate::zugferd_2_3_3::Country::SintMaartenDutchPart)
2136 }
2137 Country::SyrianArabRepublic => Ok(crate::zugferd_2_3_3::Country::SyrianArabRepublic),
2138 Country::Eswatini => Ok(crate::zugferd_2_3_3::Country::Eswatini),
2139 Country::TurksAndCaicosIslands => {
2140 Ok(crate::zugferd_2_3_3::Country::TurksAndCaicosIslands)
2141 }
2142 Country::Chad => Ok(crate::zugferd_2_3_3::Country::Chad),
2143 Country::FrenchSouthernTerritories => {
2144 Ok(crate::zugferd_2_3_3::Country::FrenchSouthernTerritories)
2145 }
2146 Country::Togo => Ok(crate::zugferd_2_3_3::Country::Togo),
2147 Country::Thailand => Ok(crate::zugferd_2_3_3::Country::Thailand),
2148 Country::Tajikistan => Ok(crate::zugferd_2_3_3::Country::Tajikistan),
2149 Country::Tokelau => Ok(crate::zugferd_2_3_3::Country::Tokelau),
2150 Country::TimorLeste => Ok(crate::zugferd_2_3_3::Country::TimorLeste),
2151 Country::Turkmenistan => Ok(crate::zugferd_2_3_3::Country::Turkmenistan),
2152 Country::Tunisia => Ok(crate::zugferd_2_3_3::Country::Tunisia),
2153 Country::Tonga => Ok(crate::zugferd_2_3_3::Country::Tonga),
2154 Country::Türkiye => Ok(crate::zugferd_2_3_3::Country::Türkiye),
2155 Country::TrinidadAndTobago => Ok(crate::zugferd_2_3_3::Country::TrinidadAndTobago),
2156 Country::Tuvalu => Ok(crate::zugferd_2_3_3::Country::Tuvalu),
2157 Country::TaiwanProvinceChina => Ok(crate::zugferd_2_3_3::Country::TaiwanProvinceChina),
2158 Country::TanzaniaUnitedRepublic => {
2159 Ok(crate::zugferd_2_3_3::Country::TanzaniaUnitedRepublic)
2160 }
2161 Country::Ukraine => Ok(crate::zugferd_2_3_3::Country::Ukraine),
2162 Country::Uganda => Ok(crate::zugferd_2_3_3::Country::Uganda),
2163 Country::UnitedStatesMinorOutlyingIslands => {
2164 Ok(crate::zugferd_2_3_3::Country::UnitedStatesMinorOutlyingIslands)
2165 }
2166 Country::UnitedStatesAmerica => Ok(crate::zugferd_2_3_3::Country::UnitedStatesAmerica),
2167 Country::Uruguay => Ok(crate::zugferd_2_3_3::Country::Uruguay),
2168 Country::Uzbekistan => Ok(crate::zugferd_2_3_3::Country::Uzbekistan),
2169 Country::HolySee => Ok(crate::zugferd_2_3_3::Country::HolySee),
2170 Country::SaintVincentAndGrenadines => {
2171 Ok(crate::zugferd_2_3_3::Country::SaintVincentAndGrenadines)
2172 }
2173 Country::VenezuelaBolivarianRepublic => {
2174 Ok(crate::zugferd_2_3_3::Country::VenezuelaBolivarianRepublic)
2175 }
2176 Country::VirginIslandsBritish => {
2177 Ok(crate::zugferd_2_3_3::Country::VirginIslandsBritish)
2178 }
2179 Country::VirginIslandsUS => Ok(crate::zugferd_2_3_3::Country::VirginIslandsUS),
2180 Country::VietNam => Ok(crate::zugferd_2_3_3::Country::VietNam),
2181 Country::Vanuatu => Ok(crate::zugferd_2_3_3::Country::Vanuatu),
2182 Country::WallisAndFutuna => Ok(crate::zugferd_2_3_3::Country::WallisAndFutuna),
2183 Country::Samoa => Ok(crate::zugferd_2_3_3::Country::Samoa),
2184 Country::Yemen => Ok(crate::zugferd_2_3_3::Country::Yemen),
2185 Country::Mayotte => Ok(crate::zugferd_2_3_3::Country::Mayotte),
2186 Country::SouthAfrica => Ok(crate::zugferd_2_3_3::Country::SouthAfrica),
2187 Country::Zambia => Ok(crate::zugferd_2_3_3::Country::Zambia),
2188 Country::Zimbabwe => Ok(crate::zugferd_2_3_3::Country::Zimbabwe),
2189 Country::Kosovo => Ok(crate::zugferd_2_3_3::Country::Kosovo),
2190 Country::UnitedKingdomNorthernIreland => {
2191 Ok(crate::zugferd_2_3_3::Country::UnitedKingdomNorthernIreland)
2192 }
2193 }
2194 }
2195}
2196
2197impl std::convert::TryFrom<crate::zugferd_2_3_3::Country> for Country {
2198 type Error = std::convert::Infallible;
2199 fn try_from(value: crate::zugferd_2_3_3::Country) -> Result<Country, Self::Error> {
2200 match value {
2201 crate::zugferd_2_3_3::Country::Andorra => Ok(Country::Andorra),
2202 crate::zugferd_2_3_3::Country::UnitedArabEmirates => Ok(Country::UnitedArabEmirates),
2203 crate::zugferd_2_3_3::Country::Afghanistan => Ok(Country::Afghanistan),
2204 crate::zugferd_2_3_3::Country::AntiguaAndBarbuda => Ok(Country::AntiguaAndBarbuda),
2205 crate::zugferd_2_3_3::Country::Anguilla => Ok(Country::Anguilla),
2206 crate::zugferd_2_3_3::Country::Albania => Ok(Country::Albania),
2207 crate::zugferd_2_3_3::Country::Armenia => Ok(Country::Armenia),
2208 crate::zugferd_2_3_3::Country::Angola => Ok(Country::Angola),
2209 crate::zugferd_2_3_3::Country::Antarctica => Ok(Country::Antarctica),
2210 crate::zugferd_2_3_3::Country::Argentina => Ok(Country::Argentina),
2211 crate::zugferd_2_3_3::Country::AmericanSamoa => Ok(Country::AmericanSamoa),
2212 crate::zugferd_2_3_3::Country::Austria => Ok(Country::Austria),
2213 crate::zugferd_2_3_3::Country::Australia => Ok(Country::Australia),
2214 crate::zugferd_2_3_3::Country::Aruba => Ok(Country::Aruba),
2215 crate::zugferd_2_3_3::Country::ÅlandIslands => Ok(Country::ÅlandIslands),
2216 crate::zugferd_2_3_3::Country::Azerbaijan => Ok(Country::Azerbaijan),
2217 crate::zugferd_2_3_3::Country::BosniaAndHerzegovina => {
2218 Ok(Country::BosniaAndHerzegovina)
2219 }
2220 crate::zugferd_2_3_3::Country::Barbados => Ok(Country::Barbados),
2221 crate::zugferd_2_3_3::Country::Bangladesh => Ok(Country::Bangladesh),
2222 crate::zugferd_2_3_3::Country::Belgium => Ok(Country::Belgium),
2223 crate::zugferd_2_3_3::Country::BurkinaFaso => Ok(Country::BurkinaFaso),
2224 crate::zugferd_2_3_3::Country::Bulgaria => Ok(Country::Bulgaria),
2225 crate::zugferd_2_3_3::Country::Bahrain => Ok(Country::Bahrain),
2226 crate::zugferd_2_3_3::Country::Burundi => Ok(Country::Burundi),
2227 crate::zugferd_2_3_3::Country::Benin => Ok(Country::Benin),
2228 crate::zugferd_2_3_3::Country::SaintBarthélemy => Ok(Country::SaintBarthélemy),
2229 crate::zugferd_2_3_3::Country::Bermuda => Ok(Country::Bermuda),
2230 crate::zugferd_2_3_3::Country::BruneiDarussalam => Ok(Country::BruneiDarussalam),
2231 crate::zugferd_2_3_3::Country::BoliviaPlurinationalState => {
2232 Ok(Country::BoliviaPlurinationalState)
2233 }
2234 crate::zugferd_2_3_3::Country::BonaireSintEustatiusAndSaba => {
2235 Ok(Country::BonaireSintEustatiusAndSaba)
2236 }
2237 crate::zugferd_2_3_3::Country::Brazil => Ok(Country::Brazil),
2238 crate::zugferd_2_3_3::Country::Bahamas => Ok(Country::BahamasThe),
2239 crate::zugferd_2_3_3::Country::Bhutan => Ok(Country::Bhutan),
2240 crate::zugferd_2_3_3::Country::BouvetIsland => Ok(Country::BouvetIsland),
2241 crate::zugferd_2_3_3::Country::Botswana => Ok(Country::Botswana),
2242 crate::zugferd_2_3_3::Country::Belarus => Ok(Country::Belarus),
2243 crate::zugferd_2_3_3::Country::Belize => Ok(Country::Belize),
2244 crate::zugferd_2_3_3::Country::Canada => Ok(Country::Canada),
2245 crate::zugferd_2_3_3::Country::CocosKeelingIslands => Ok(Country::CocosKeelingIslands),
2246 crate::zugferd_2_3_3::Country::CongoDemocraticRepublic => {
2247 Ok(Country::CongoDemocraticRepublic)
2248 }
2249 crate::zugferd_2_3_3::Country::CentralAfricanRepublic => {
2250 Ok(Country::CentralAfricanRepublic)
2251 }
2252 crate::zugferd_2_3_3::Country::Congo => Ok(Country::Congo),
2253 crate::zugferd_2_3_3::Country::Switzerland => Ok(Country::Switzerland),
2254 crate::zugferd_2_3_3::Country::CôteDivoire => Ok(Country::CôteDivoire),
2255 crate::zugferd_2_3_3::Country::CookIslands => Ok(Country::CookIslands),
2256 crate::zugferd_2_3_3::Country::Chile => Ok(Country::Chile),
2257 crate::zugferd_2_3_3::Country::Cameroon => Ok(Country::Cameroon),
2258 crate::zugferd_2_3_3::Country::China => Ok(Country::China),
2259 crate::zugferd_2_3_3::Country::Colombia => Ok(Country::Colombia),
2260 crate::zugferd_2_3_3::Country::CostaRica => Ok(Country::CostaRica),
2261 crate::zugferd_2_3_3::Country::Cuba => Ok(Country::Cuba),
2262 crate::zugferd_2_3_3::Country::CaboVerde => Ok(Country::CaboVerde),
2263 crate::zugferd_2_3_3::Country::Curaçao => Ok(Country::Curaçao),
2264 crate::zugferd_2_3_3::Country::ChristmasIsland => Ok(Country::ChristmasIsland),
2265 crate::zugferd_2_3_3::Country::Cyprus => Ok(Country::Cyprus),
2266 crate::zugferd_2_3_3::Country::Czechia => Ok(Country::Czechia),
2267 crate::zugferd_2_3_3::Country::Germany => Ok(Country::Germany),
2268 crate::zugferd_2_3_3::Country::Djibouti => Ok(Country::Djibouti),
2269 crate::zugferd_2_3_3::Country::Denmark => Ok(Country::Denmark),
2270 crate::zugferd_2_3_3::Country::Dominica => Ok(Country::Dominica),
2271 crate::zugferd_2_3_3::Country::DominicanRepublic => Ok(Country::DominicanRepublic),
2272 crate::zugferd_2_3_3::Country::Algeria => Ok(Country::Algeria),
2273 crate::zugferd_2_3_3::Country::Ecuador => Ok(Country::Ecuador),
2274 crate::zugferd_2_3_3::Country::Estonia => Ok(Country::Estonia),
2275 crate::zugferd_2_3_3::Country::Egypt => Ok(Country::Egypt),
2276 crate::zugferd_2_3_3::Country::WesternSahara => Ok(Country::WesternSahara),
2277 crate::zugferd_2_3_3::Country::Eritrea => Ok(Country::Eritrea),
2278 crate::zugferd_2_3_3::Country::Spain => Ok(Country::Spain),
2279 crate::zugferd_2_3_3::Country::Ethiopia => Ok(Country::Ethiopia),
2280 crate::zugferd_2_3_3::Country::Finland => Ok(Country::Finland),
2281 crate::zugferd_2_3_3::Country::Fiji => Ok(Country::Fiji),
2282 crate::zugferd_2_3_3::Country::FalklandIslandsMalvinas => {
2283 Ok(Country::FalklandIslandsMalvinas)
2284 }
2285 crate::zugferd_2_3_3::Country::MicronesiaFederatedStates => {
2286 Ok(Country::MicronesiaFederatedStates)
2287 }
2288 crate::zugferd_2_3_3::Country::FaroeIslands => Ok(Country::FaroeIslands),
2289 crate::zugferd_2_3_3::Country::France => Ok(Country::France),
2290 crate::zugferd_2_3_3::Country::Gabon => Ok(Country::Gabon),
2291 crate::zugferd_2_3_3::Country::UnitedKingdomGreatBritainAndNorthernIreland => {
2292 Ok(Country::UnitedKingdomGreatBritainAndNorthernIreland)
2293 }
2294 crate::zugferd_2_3_3::Country::Grenada => Ok(Country::Grenada),
2295 crate::zugferd_2_3_3::Country::Georgia => Ok(Country::Georgia),
2296 crate::zugferd_2_3_3::Country::FrenchGuiana => Ok(Country::FrenchGuiana),
2297 crate::zugferd_2_3_3::Country::Guernsey => Ok(Country::Guernsey),
2298 crate::zugferd_2_3_3::Country::Ghana => Ok(Country::Ghana),
2299 crate::zugferd_2_3_3::Country::Gibraltar => Ok(Country::Gibraltar),
2300 crate::zugferd_2_3_3::Country::Greenland => Ok(Country::Greenland),
2301 crate::zugferd_2_3_3::Country::Gambia => Ok(Country::Gambia),
2302 crate::zugferd_2_3_3::Country::Guinea => Ok(Country::Guinea),
2303 crate::zugferd_2_3_3::Country::Guadeloupe => Ok(Country::Guadeloupe),
2304 crate::zugferd_2_3_3::Country::EquatorialGuinea => Ok(Country::EquatorialGuinea),
2305 crate::zugferd_2_3_3::Country::Greece => Ok(Country::Greece),
2306 crate::zugferd_2_3_3::Country::SouthGeorgiaAndSouthSandwichIslands => {
2307 Ok(Country::SouthGeorgiaAndSouthSandwichIslands)
2308 }
2309 crate::zugferd_2_3_3::Country::Guatemala => Ok(Country::Guatemala),
2310 crate::zugferd_2_3_3::Country::Guam => Ok(Country::Guam),
2311 crate::zugferd_2_3_3::Country::GuineaBissau => Ok(Country::GuineaBissau),
2312 crate::zugferd_2_3_3::Country::Guyana => Ok(Country::Guyana),
2313 crate::zugferd_2_3_3::Country::HongKong => Ok(Country::HongKong),
2314 crate::zugferd_2_3_3::Country::HeardIslandAndMcdonaldIslands => {
2315 Ok(Country::HeardIslandAndMcdonaldIslands)
2316 }
2317 crate::zugferd_2_3_3::Country::Honduras => Ok(Country::Honduras),
2318 crate::zugferd_2_3_3::Country::Croatia => Ok(Country::Croatia),
2319 crate::zugferd_2_3_3::Country::Haiti => Ok(Country::Haiti),
2320 crate::zugferd_2_3_3::Country::Hungary => Ok(Country::Hungary),
2321 crate::zugferd_2_3_3::Country::Indonesia => Ok(Country::Indonesia),
2322 crate::zugferd_2_3_3::Country::Ireland => Ok(Country::Ireland),
2323 crate::zugferd_2_3_3::Country::Israel => Ok(Country::Israel),
2324 crate::zugferd_2_3_3::Country::IsleMan => Ok(Country::IsleMan),
2325 crate::zugferd_2_3_3::Country::India => Ok(Country::India),
2326 crate::zugferd_2_3_3::Country::BritishIndianOceanTerritory => {
2327 Ok(Country::BritishIndianOceanTerritory)
2328 }
2329 crate::zugferd_2_3_3::Country::Iraq => Ok(Country::Iraq),
2330 crate::zugferd_2_3_3::Country::IranIslamicRepublic => Ok(Country::IranIslamicRepublic),
2331 crate::zugferd_2_3_3::Country::Iceland => Ok(Country::Iceland),
2332 crate::zugferd_2_3_3::Country::Italy => Ok(Country::Italy),
2333 crate::zugferd_2_3_3::Country::Jersey => Ok(Country::Jersey),
2334 crate::zugferd_2_3_3::Country::Jamaica => Ok(Country::Jamaica),
2335 crate::zugferd_2_3_3::Country::Jordan => Ok(Country::Jordan),
2336 crate::zugferd_2_3_3::Country::Japan => Ok(Country::Japan),
2337 crate::zugferd_2_3_3::Country::Kenya => Ok(Country::Kenya),
2338 crate::zugferd_2_3_3::Country::Kyrgyzstan => Ok(Country::Kyrgyzstan),
2339 crate::zugferd_2_3_3::Country::Cambodia => Ok(Country::Cambodia),
2340 crate::zugferd_2_3_3::Country::Kiribati => Ok(Country::Kiribati),
2341 crate::zugferd_2_3_3::Country::Comoros => Ok(Country::Comoros),
2342 crate::zugferd_2_3_3::Country::SaintKittsAndNevis => Ok(Country::SaintKittsAndNevis),
2343 crate::zugferd_2_3_3::Country::KoreaDemocraticPeoplesRepublic => {
2344 Ok(Country::KoreaDemocraticPeoplesRepublic)
2345 }
2346 crate::zugferd_2_3_3::Country::KoreaRepublic => Ok(Country::KoreaRepublic),
2347 crate::zugferd_2_3_3::Country::Kuwait => Ok(Country::Kuwait),
2348 crate::zugferd_2_3_3::Country::CaymanIslands => Ok(Country::CaymanIslands),
2349 crate::zugferd_2_3_3::Country::Kazakhstan => Ok(Country::Kazakhstan),
2350 crate::zugferd_2_3_3::Country::LaoPeoplesDemocraticRepublic => {
2351 Ok(Country::LaoPeoplesDemocraticRepublic)
2352 }
2353 crate::zugferd_2_3_3::Country::Lebanon => Ok(Country::Lebanon),
2354 crate::zugferd_2_3_3::Country::SaintLucia => Ok(Country::SaintLucia),
2355 crate::zugferd_2_3_3::Country::Liechtenstein => Ok(Country::Liechtenstein),
2356 crate::zugferd_2_3_3::Country::SriLanka => Ok(Country::SriLanka),
2357 crate::zugferd_2_3_3::Country::Liberia => Ok(Country::Liberia),
2358 crate::zugferd_2_3_3::Country::Lesotho => Ok(Country::Lesotho),
2359 crate::zugferd_2_3_3::Country::Lithuania => Ok(Country::Lithuania),
2360 crate::zugferd_2_3_3::Country::Luxembourg => Ok(Country::Luxembourg),
2361 crate::zugferd_2_3_3::Country::Latvia => Ok(Country::Latvia),
2362 crate::zugferd_2_3_3::Country::Libya => Ok(Country::Libya),
2363 crate::zugferd_2_3_3::Country::Morocco => Ok(Country::Morocco),
2364 crate::zugferd_2_3_3::Country::Monaco => Ok(Country::Monaco),
2365 crate::zugferd_2_3_3::Country::MoldovaRepublic => Ok(Country::MoldovaRepublic),
2366 crate::zugferd_2_3_3::Country::Montenegro => Ok(Country::Montenegro),
2367 crate::zugferd_2_3_3::Country::SaintMartinFrenchPart => {
2368 Ok(Country::SaintMartinFrenchPart)
2369 }
2370 crate::zugferd_2_3_3::Country::Madagascar => Ok(Country::Madagascar),
2371 crate::zugferd_2_3_3::Country::MarshallIslands => Ok(Country::MarshallIslands),
2372 crate::zugferd_2_3_3::Country::NorthMacedonia => Ok(Country::NorthMacedonia),
2373 crate::zugferd_2_3_3::Country::Mali => Ok(Country::Mali),
2374 crate::zugferd_2_3_3::Country::Myanmar => Ok(Country::Myanmar),
2375 crate::zugferd_2_3_3::Country::Mongolia => Ok(Country::Mongolia),
2376 crate::zugferd_2_3_3::Country::Macao => Ok(Country::Macao),
2377 crate::zugferd_2_3_3::Country::NorthernMarianaIslands => {
2378 Ok(Country::NorthernMarianaIslands)
2379 }
2380 crate::zugferd_2_3_3::Country::Martinique => Ok(Country::Martinique),
2381 crate::zugferd_2_3_3::Country::Mauritania => Ok(Country::Mauritania),
2382 crate::zugferd_2_3_3::Country::Montserrat => Ok(Country::Montserrat),
2383 crate::zugferd_2_3_3::Country::Malta => Ok(Country::Malta),
2384 crate::zugferd_2_3_3::Country::Mauritius => Ok(Country::Mauritius),
2385 crate::zugferd_2_3_3::Country::Maldives => Ok(Country::Maldives),
2386 crate::zugferd_2_3_3::Country::Malawi => Ok(Country::Malawi),
2387 crate::zugferd_2_3_3::Country::Mexico => Ok(Country::Mexico),
2388 crate::zugferd_2_3_3::Country::Malaysia => Ok(Country::Malaysia),
2389 crate::zugferd_2_3_3::Country::Mozambique => Ok(Country::Mozambique),
2390 crate::zugferd_2_3_3::Country::Namibia => Ok(Country::Namibia),
2391 crate::zugferd_2_3_3::Country::NewCaledonia => Ok(Country::NewCaledonia),
2392 crate::zugferd_2_3_3::Country::Niger => Ok(Country::Niger),
2393 crate::zugferd_2_3_3::Country::NorfolkIsland => Ok(Country::NorfolkIsland),
2394 crate::zugferd_2_3_3::Country::Nigeria => Ok(Country::Nigeria),
2395 crate::zugferd_2_3_3::Country::Nicaragua => Ok(Country::Nicaragua),
2396 crate::zugferd_2_3_3::Country::Netherlands => Ok(Country::Netherlands),
2397 crate::zugferd_2_3_3::Country::Norway => Ok(Country::Norway),
2398 crate::zugferd_2_3_3::Country::Nepal => Ok(Country::Nepal),
2399 crate::zugferd_2_3_3::Country::Nauru => Ok(Country::Nauru),
2400 crate::zugferd_2_3_3::Country::Niue => Ok(Country::Niue),
2401 crate::zugferd_2_3_3::Country::NewZealand => Ok(Country::NewZealand),
2402 crate::zugferd_2_3_3::Country::Oman => Ok(Country::Oman),
2403 crate::zugferd_2_3_3::Country::Panama => Ok(Country::Panama),
2404 crate::zugferd_2_3_3::Country::Peru => Ok(Country::Peru),
2405 crate::zugferd_2_3_3::Country::FrenchPolynesia => Ok(Country::FrenchPolynesia),
2406 crate::zugferd_2_3_3::Country::PapuaNewGuinea => Ok(Country::PapuaNewGuinea),
2407 crate::zugferd_2_3_3::Country::Philippines => Ok(Country::Philippines),
2408 crate::zugferd_2_3_3::Country::Pakistan => Ok(Country::Pakistan),
2409 crate::zugferd_2_3_3::Country::Poland => Ok(Country::Poland),
2410 crate::zugferd_2_3_3::Country::SaintPierreAndMiquelon => {
2411 Ok(Country::SaintPierreAndMiquelon)
2412 }
2413 crate::zugferd_2_3_3::Country::Pitcairn => Ok(Country::Pitcairn),
2414 crate::zugferd_2_3_3::Country::PuertoRico => Ok(Country::PuertoRico),
2415 crate::zugferd_2_3_3::Country::PalestineState => Ok(Country::PalestineState),
2416 crate::zugferd_2_3_3::Country::Portugal => Ok(Country::Portugal),
2417 crate::zugferd_2_3_3::Country::Palau => Ok(Country::Palau),
2418 crate::zugferd_2_3_3::Country::Paraguay => Ok(Country::Paraguay),
2419 crate::zugferd_2_3_3::Country::Qatar => Ok(Country::Qatar),
2420 crate::zugferd_2_3_3::Country::Réunion => Ok(Country::Réunion),
2421 crate::zugferd_2_3_3::Country::Romania => Ok(Country::Romania),
2422 crate::zugferd_2_3_3::Country::Serbia => Ok(Country::Serbia),
2423 crate::zugferd_2_3_3::Country::RussianFederation => Ok(Country::RussianFederation),
2424 crate::zugferd_2_3_3::Country::Rwanda => Ok(Country::Rwanda),
2425 crate::zugferd_2_3_3::Country::SaudiArabia => Ok(Country::SaudiArabia),
2426 crate::zugferd_2_3_3::Country::SolomonIslands => Ok(Country::SolomonIslands),
2427 crate::zugferd_2_3_3::Country::Seychelles => Ok(Country::Seychelles),
2428 crate::zugferd_2_3_3::Country::Sudan => Ok(Country::Sudan),
2429 crate::zugferd_2_3_3::Country::Sweden => Ok(Country::Sweden),
2430 crate::zugferd_2_3_3::Country::Singapore => Ok(Country::Singapore),
2431 crate::zugferd_2_3_3::Country::SaintHelenaAscensionAndTristanDaCunha => {
2432 Ok(Country::SaintHelenaAscensionAndTristanDaCunha)
2433 }
2434 crate::zugferd_2_3_3::Country::Slovenia => Ok(Country::Slovenia),
2435 crate::zugferd_2_3_3::Country::SvalbardAndJanMayen => Ok(Country::SvalbardAndJanMayen),
2436 crate::zugferd_2_3_3::Country::Slovakia => Ok(Country::Slovakia),
2437 crate::zugferd_2_3_3::Country::SierraLeone => Ok(Country::SierraLeone),
2438 crate::zugferd_2_3_3::Country::SanMarino => Ok(Country::SanMarino),
2439 crate::zugferd_2_3_3::Country::Senegal => Ok(Country::Senegal),
2440 crate::zugferd_2_3_3::Country::Somalia => Ok(Country::Somalia),
2441 crate::zugferd_2_3_3::Country::Suriname => Ok(Country::Suriname),
2442 crate::zugferd_2_3_3::Country::SouthSudan => Ok(Country::SouthSudan),
2443 crate::zugferd_2_3_3::Country::SaoTomeAndPrincipe => Ok(Country::SaoTomeAndPrincipe),
2444 crate::zugferd_2_3_3::Country::ElSalvador => Ok(Country::ElSalvador),
2445 crate::zugferd_2_3_3::Country::SintMaartenDutchPart => {
2446 Ok(Country::SintMaartenDutchPart)
2447 }
2448 crate::zugferd_2_3_3::Country::SyrianArabRepublic => Ok(Country::SyrianArabRepublic),
2449 crate::zugferd_2_3_3::Country::Eswatini => Ok(Country::Eswatini),
2450 crate::zugferd_2_3_3::Country::TurksAndCaicosIslands => {
2451 Ok(Country::TurksAndCaicosIslands)
2452 }
2453 crate::zugferd_2_3_3::Country::Chad => Ok(Country::Chad),
2454 crate::zugferd_2_3_3::Country::FrenchSouthernTerritories => {
2455 Ok(Country::FrenchSouthernTerritories)
2456 }
2457 crate::zugferd_2_3_3::Country::Togo => Ok(Country::Togo),
2458 crate::zugferd_2_3_3::Country::Thailand => Ok(Country::Thailand),
2459 crate::zugferd_2_3_3::Country::Tajikistan => Ok(Country::Tajikistan),
2460 crate::zugferd_2_3_3::Country::Tokelau => Ok(Country::Tokelau),
2461 crate::zugferd_2_3_3::Country::TimorLeste => Ok(Country::TimorLeste),
2462 crate::zugferd_2_3_3::Country::Turkmenistan => Ok(Country::Turkmenistan),
2463 crate::zugferd_2_3_3::Country::Tunisia => Ok(Country::Tunisia),
2464 crate::zugferd_2_3_3::Country::Tonga => Ok(Country::Tonga),
2465 crate::zugferd_2_3_3::Country::Türkiye => Ok(Country::Türkiye),
2466 crate::zugferd_2_3_3::Country::TrinidadAndTobago => Ok(Country::TrinidadAndTobago),
2467 crate::zugferd_2_3_3::Country::Tuvalu => Ok(Country::Tuvalu),
2468 crate::zugferd_2_3_3::Country::TaiwanProvinceChina => Ok(Country::TaiwanProvinceChina),
2469 crate::zugferd_2_3_3::Country::TanzaniaUnitedRepublic => {
2470 Ok(Country::TanzaniaUnitedRepublic)
2471 }
2472 crate::zugferd_2_3_3::Country::Ukraine => Ok(Country::Ukraine),
2473 crate::zugferd_2_3_3::Country::Uganda => Ok(Country::Uganda),
2474 crate::zugferd_2_3_3::Country::UnitedStatesMinorOutlyingIslands => {
2475 Ok(Country::UnitedStatesMinorOutlyingIslands)
2476 }
2477 crate::zugferd_2_3_3::Country::UnitedStatesAmerica => Ok(Country::UnitedStatesAmerica),
2478 crate::zugferd_2_3_3::Country::Uruguay => Ok(Country::Uruguay),
2479 crate::zugferd_2_3_3::Country::Uzbekistan => Ok(Country::Uzbekistan),
2480 crate::zugferd_2_3_3::Country::HolySee => Ok(Country::HolySee),
2481 crate::zugferd_2_3_3::Country::SaintVincentAndGrenadines => {
2482 Ok(Country::SaintVincentAndGrenadines)
2483 }
2484 crate::zugferd_2_3_3::Country::VenezuelaBolivarianRepublic => {
2485 Ok(Country::VenezuelaBolivarianRepublic)
2486 }
2487 crate::zugferd_2_3_3::Country::VirginIslandsBritish => {
2488 Ok(Country::VirginIslandsBritish)
2489 }
2490 crate::zugferd_2_3_3::Country::VirginIslandsUS => Ok(Country::VirginIslandsUS),
2491 crate::zugferd_2_3_3::Country::VietNam => Ok(Country::VietNam),
2492 crate::zugferd_2_3_3::Country::Vanuatu => Ok(Country::Vanuatu),
2493 crate::zugferd_2_3_3::Country::WallisAndFutuna => Ok(Country::WallisAndFutuna),
2494 crate::zugferd_2_3_3::Country::Samoa => Ok(Country::Samoa),
2495 crate::zugferd_2_3_3::Country::Yemen => Ok(Country::Yemen),
2496 crate::zugferd_2_3_3::Country::Mayotte => Ok(Country::Mayotte),
2497 crate::zugferd_2_3_3::Country::SouthAfrica => Ok(Country::SouthAfrica),
2498 crate::zugferd_2_3_3::Country::Zambia => Ok(Country::Zambia),
2499 crate::zugferd_2_3_3::Country::Zimbabwe => Ok(Country::Zimbabwe),
2500 crate::zugferd_2_3_3::Country::Kosovo => Ok(Country::Kosovo),
2501 crate::zugferd_2_3_3::Country::UnitedKingdomNorthernIreland => {
2502 Ok(Country::UnitedKingdomNorthernIreland)
2503 }
2504 }
2505 }
2506}
2507