#[cfg(all(feature = "gg", feature = "constants"))]
pub mod consts {
#[allow(unused_imports)]
use crate::{
Alpha2, Alpha3, Continent, CurrencyCode, DistanceUnit, Region, SubRegion, WeekDay,
WorldRegion, GEC, IOC,
};
pub const ADDRESS_FORMAT: Option<&str> = None;
pub const ALPHA2: Alpha2 = Alpha2::GG;
pub const ALPHA3: Alpha3 = Alpha3::GGY;
pub const CONTINENT: Continent = Continent::Europe;
pub const COUNTRY_CODE: usize = 44;
pub const CURRENCY_CODE: CurrencyCode = CurrencyCode::GBP;
pub const GEC: Option<GEC> = Some(GEC::GK);
pub const INTERNATIONAL_PREFIX: &str = "";
pub const IOC: Option<IOC> = None;
pub const ISO_SHORT_NAME: &str = "Guernsey";
pub const ISO_LONG_NAME: &str = "The Bailiwick of Guernsey";
pub const OFFICIAL_LANGUAGE_LIST: &[&str] = &["en", "fr"];
pub const SPOKEN_LANGUAGE_LIST: &[&str] = &["en", "fr"];
pub const NATIONAL_DESTINATION_CODE_LENGTH_LIST: &[usize] = &[];
pub const NATIONAL_NUMBER_LENGTH_LIST: &[usize] = &[];
pub const NATIONAL_PREFIX: &str = "";
pub const NATIONALITY: Option<&str> = Some("Channel Islander");
pub const NUMBER: &str = "831";
pub const POSTAL_CODE: bool = true;
pub const POSTAL_CODE_FORMAT: Option<&str> = Some("GY\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}");
pub const REGION: Option<Region> = Some(Region::Europe);
pub const START_DAY_OF_WEEK: WeekDay = WeekDay::Monday;
pub const SUBREGION: Option<SubRegion> = Some(SubRegion::NorthernEurope);
pub const UN_LOCODE: &str = "GG";
pub const UNOFFICIAL_NAME_LIST: &[&str] = &[
"Guernsey and Alderney",
"Guernsey und Alderney",
"Guernsey et Alderney",
"Guernsey y Alderney",
"ガーンジー",
"Guernsey",
];
pub const WORLD_REGION: WorldRegion = WorldRegion::EMEA;
pub const G7_MEMBER: bool = false;
pub const G20_MEMBER: bool = false;
pub const EU_MEMBER: bool = false;
pub const EEA_MEMBER: bool = false;
pub const DISTANCE_UNIT: DistanceUnit = DistanceUnit::Km;
pub const POPULATION: Option<u64> = None;
#[cfg(feature = "emojis")]
pub const EMOJI: &str = "🇬🇬";
#[cfg(feature = "translations")]
pub const TRANSLATIONS: &[(&str, &str)] = &[
("ab", "Guernsey"),
("af", "Guernsey"),
("ak", "Guernsey"),
("am", "Guernsey"),
("an", "Guernsey"),
("ar", "جزيرة جويرزني"),
("as", "গ\u{9c1}য়েৰ\u{9cd}ন\u{9cd}সে"),
("ay", "Guernsey"),
("az", "Guernsey"),
("ba", "Guernsey"),
("be", "Гернсі"),
("bg", "Гърнсей"),
("bi", "Guernsey"),
("bn", "গ\u{9c1}য়ের\u{9cd}নসে"),
("bn_IN", "গ\u{9c1}য়ের\u{9cd}নসে"),
("br", "Gwernenez"),
("bs", "Gernzi"),
("ca", "Guernsey"),
("ce", "Guernsey"),
("ch", "Guernsey"),
("cs", "Guernsey"),
("cv", "Guernsey"),
("cy", "Guernsey"),
("da", "Guernsey"),
("de", "Guernsey"),
("dv", "ގ\u{7aa}އ\u{7a7}ނ\u{7b0}ސ\u{7ad}"),
("dz", "ག\u{f74}་ར\u{f7a}ན་ས\u{f7a}།"),
("ee", "Guernsey"),
("el", "Γκέρνσεϊ"),
("en", "Guernsey"),
("eo", "Gernezejo"),
("es", "Guernsey"),
("et", "Guernsey"),
("eu", "Guernsey"),
("fa", "گرنزی"),
("ff", "Guernsey"),
("fi", "Guernsey"),
("fo", "Guernsey"),
("fr", "Guernesey"),
("fy", "Guernsey"),
("ga", "Geansaí"),
("gl", "Guernsey"),
("gn", "Guernsey"),
("gu", "ગ\u{ac1}ર\u{acd}નસ\u{ac7}"),
("gv", "Guernsey"),
("ha", "Guernsey"),
("he", "גרנזי"),
("hi", "ग\u{94d}व\u{947}र\u{94d}नस\u{947}"),
("hr", "Guernsey"),
("ht", "Guernsey"),
("hu", "Guernsey"),
("hy", "Գերնսի"),
("ia", "Guernsey"),
("id", "Guernsey"),
("io", "Guernsey"),
("is", "Guernsey"),
("it", "Guernsey"),
("iu", "Guernsey"),
("ja", "ガーンジー"),
("ka", "გუერნსი"),
("ki", "Guernsey"),
("kk", "Гернси"),
("kl", "Guernsey"),
("km", "Guernsey"),
("kn", "Guernsey"),
("ko", "건지 섬"),
("ku", "Guernsey"),
("kv", "Guernsey"),
("kw", "Gernsi"),
("ky", "Гернси"),
("lo", "Guernsey"),
("lt", "Gernsis"),
("lv", "Gērnsija"),
("mi", "Kōnihi"),
("mk", "Гурнези"),
("ml", "ജേണ\u{d4d}\u{200d}സി"),
("mn", "Guernsey"),
("mr", "ग\u{94d}विर\u{94d}नस\u{947}"),
("ms", "Guernsey"),
("mt", "Guernsey"),
("my", "Guernsey"),
("na", "Guernsey"),
("nb", "Guernsey"),
("ne", "ग\u{941}इन\u{94d}सी"),
("nl", "Guernsey"),
("nn", "Guernsey"),
("nv", "Guernsey"),
("oc", "Guernsey"),
("or", "ଗ\u{b41}ୟେର\u{b4d}ନସୀ"),
("pa", "ਗ\u{a41}ਰੀਨਸ\u{a47}"),
("pi", "Guernsey"),
("pl", "Guernsey"),
("ps", "Guernsey"),
("pt", "Guernsey"),
("pt_BR", "Guernsey"),
("ro", "Guernsey"),
("ru", "Гернси"),
("rw", "Guernsey"),
("sc", "Guernsey"),
("sd", "Guernsey"),
("si", "ග\u{dd4}වන\u{dca}ස\u{dd2}"),
("sk", "Guernsey"),
("sl", "Guernsey"),
("so", "Guernsey"),
("sq", "Gërnsi"),
("sr", "Гернси"),
("sv", "Guernsey"),
("sw", "Guernsey"),
("ta", "க\u{bcd}ரென\u{bcd}சி"),
("te", "గ\u{c4d}వ\u{c3f}ర\u{c4d}నస\u{c47}"),
("tg", "Гернси"),
("th", "เก\u{e34}ร\u{e4c}นซ\u{e35}ย\u{e4c}"),
("ti", "Guernsey"),
("tk", "Gernsi"),
("tl", "Guernsey"),
("tr", "Guernsey"),
("tt", "Guernsey"),
("ug", "گېرىنسى"),
("uk", "Острів Гернсі"),
("ur", "گرنزی"),
("uz", "Guernsey"),
("ve", "Guernsey"),
("vi", "Gơnh-xị"),
("wa", "Guernsey"),
("wo", "Guernsey"),
("xh", "Guernsey"),
("yo", "Guernsey"),
("zh_CN", "根西岛"),
("zh_HK", "根息"),
("zh_TW", "根息島"),
("zu", "Guernsey"),
];
#[cfg(all(feature = "gg", feature = "geo", feature = "constants"))]
pub mod geo {
pub const LATITUDE: f64 = 49.4481982;
pub const LONGITUDE: f64 = -2.58949;
pub const MAX_LATITUDE: f64 = 49.5094108;
pub const MAX_LONGITUDE: f64 = -2.5016885;
pub const MIN_LATITUDE: f64 = 49.4167199;
pub const MIN_LONGITUDE: f64 = -2.6745361;
pub const NORTHEAST_LATITUDE: f64 = 49.5094108;
pub const NORTHEAST_LONGITUDE: f64 = -2.5016885;
pub const SOUTHWEST_LATITUDE: f64 = 49.4167199;
pub const SOUTHWEST_LONGITUDE: f64 = -2.6745361;
}
}
#[cfg(all(feature = "gg", feature = "geo"))]
pub mod geo {
use crate::{CountryGeo, CountryGeoBound, CountryGeoBounds};
pub fn new() -> CountryGeo {
CountryGeo {
latitude: 49.4481982,
longitude: -2.58949,
max_latitude: 49.5094108,
max_longitude: -2.5016885,
min_latitude: 49.4167199,
min_longitude: -2.6745361,
bounds: CountryGeoBounds {
northeast: CountryGeoBound {
latitude: 49.5094108,
longitude: -2.5016885,
},
southwest: CountryGeoBound {
latitude: 49.4167199,
longitude: -2.6745361,
},
},
}
}
}
#[cfg(all(feature = "gg", feature = "subdivisions"))]
pub mod subdivisions {
#[allow(unused_imports)]
use crate::{Alpha2, Subdivision, SubdivisionType};
use std::collections::HashMap;
#[cfg(feature = "geo")]
#[allow(unused_imports)]
use crate::SubdivisionGeo;
pub fn new() -> HashMap<&'static str, Subdivision> {
HashMap::from([])
}
}
#[allow(unused_imports)]
use crate::{
Alpha2, Alpha3, Continent, Country, CurrencyCode, DistanceUnit, Region, SubRegion, VatRates,
WeekDay, WorldRegion, GEC, IOC,
};
#[allow(unused_imports)]
use std::collections::HashMap;
#[cfg(feature = "gg")]
pub fn new() -> Country {
Country {
alpha2: Alpha2::GG,
alpha3: Alpha3::GGY,
address_format: None,
continent: Continent::Europe,
country_code: 44,
currency_code: CurrencyCode::GBP,
maybe_gec: Some(GEC::GK),
#[cfg(feature = "geo")]
geo: geo::new(),
international_prefix: "",
maybe_ioc: None,
iso_long_name: "The Bailiwick of Guernsey",
iso_short_name: "Guernsey",
official_language_list: ["en", "fr"].to_vec(),
spoken_language_list: ["en", "fr"].to_vec(),
national_destination_code_length_list: [].to_vec(),
national_number_length_list: [].to_vec(),
national_prefix: "",
maybe_nationality: Some("Channel Islander"),
number: "831",
postal_code: true,
postal_code_format: Some("GY\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}"),
maybe_region: Some(Region::Europe),
start_of_week: WeekDay::Monday,
maybe_subregion: Some(SubRegion::NorthernEurope),
un_locode: "GG",
unofficial_name_list: [
"Guernsey and Alderney",
"Guernsey und Alderney",
"Guernsey et Alderney",
"Guernsey y Alderney",
"ガーンジー",
"Guernsey",
]
.to_vec(),
world_region: WorldRegion::EMEA,
#[cfg(feature = "emojis")]
emoji: "🇬🇬",
#[cfg(feature = "translations")]
translations: HashMap::from([
("ab", "Guernsey"),
("af", "Guernsey"),
("ak", "Guernsey"),
("am", "Guernsey"),
("an", "Guernsey"),
("ar", "جزيرة جويرزني"),
("as", "গ\u{9c1}য়েৰ\u{9cd}ন\u{9cd}সে"),
("ay", "Guernsey"),
("az", "Guernsey"),
("ba", "Guernsey"),
("be", "Гернсі"),
("bg", "Гърнсей"),
("bi", "Guernsey"),
("bn", "গ\u{9c1}য়ের\u{9cd}নসে"),
("bn_IN", "গ\u{9c1}য়ের\u{9cd}নসে"),
("br", "Gwernenez"),
("bs", "Gernzi"),
("ca", "Guernsey"),
("ce", "Guernsey"),
("ch", "Guernsey"),
("cs", "Guernsey"),
("cv", "Guernsey"),
("cy", "Guernsey"),
("da", "Guernsey"),
("de", "Guernsey"),
("dv", "ގ\u{7aa}އ\u{7a7}ނ\u{7b0}ސ\u{7ad}"),
("dz", "ག\u{f74}་ར\u{f7a}ན་ས\u{f7a}།"),
("ee", "Guernsey"),
("el", "Γκέρνσεϊ"),
("en", "Guernsey"),
("eo", "Gernezejo"),
("es", "Guernsey"),
("et", "Guernsey"),
("eu", "Guernsey"),
("fa", "گرنزی"),
("ff", "Guernsey"),
("fi", "Guernsey"),
("fo", "Guernsey"),
("fr", "Guernesey"),
("fy", "Guernsey"),
("ga", "Geansaí"),
("gl", "Guernsey"),
("gn", "Guernsey"),
("gu", "ગ\u{ac1}ર\u{acd}નસ\u{ac7}"),
("gv", "Guernsey"),
("ha", "Guernsey"),
("he", "גרנזי"),
("hi", "ग\u{94d}व\u{947}र\u{94d}नस\u{947}"),
("hr", "Guernsey"),
("ht", "Guernsey"),
("hu", "Guernsey"),
("hy", "Գերնսի"),
("ia", "Guernsey"),
("id", "Guernsey"),
("io", "Guernsey"),
("is", "Guernsey"),
("it", "Guernsey"),
("iu", "Guernsey"),
("ja", "ガーンジー"),
("ka", "გუერნსი"),
("ki", "Guernsey"),
("kk", "Гернси"),
("kl", "Guernsey"),
("km", "Guernsey"),
("kn", "Guernsey"),
("ko", "건지 섬"),
("ku", "Guernsey"),
("kv", "Guernsey"),
("kw", "Gernsi"),
("ky", "Гернси"),
("lo", "Guernsey"),
("lt", "Gernsis"),
("lv", "Gērnsija"),
("mi", "Kōnihi"),
("mk", "Гурнези"),
("ml", "ജേണ\u{d4d}\u{200d}സി"),
("mn", "Guernsey"),
("mr", "ग\u{94d}विर\u{94d}नस\u{947}"),
("ms", "Guernsey"),
("mt", "Guernsey"),
("my", "Guernsey"),
("na", "Guernsey"),
("nb", "Guernsey"),
("ne", "ग\u{941}इन\u{94d}सी"),
("nl", "Guernsey"),
("nn", "Guernsey"),
("nv", "Guernsey"),
("oc", "Guernsey"),
("or", "ଗ\u{b41}ୟେର\u{b4d}ନସୀ"),
("pa", "ਗ\u{a41}ਰੀਨਸ\u{a47}"),
("pi", "Guernsey"),
("pl", "Guernsey"),
("ps", "Guernsey"),
("pt", "Guernsey"),
("pt_BR", "Guernsey"),
("ro", "Guernsey"),
("ru", "Гернси"),
("rw", "Guernsey"),
("sc", "Guernsey"),
("sd", "Guernsey"),
("si", "ග\u{dd4}වන\u{dca}ස\u{dd2}"),
("sk", "Guernsey"),
("sl", "Guernsey"),
("so", "Guernsey"),
("sq", "Gërnsi"),
("sr", "Гернси"),
("sv", "Guernsey"),
("sw", "Guernsey"),
("ta", "க\u{bcd}ரென\u{bcd}சி"),
("te", "గ\u{c4d}వ\u{c3f}ర\u{c4d}నస\u{c47}"),
("tg", "Гернси"),
("th", "เก\u{e34}ร\u{e4c}นซ\u{e35}ย\u{e4c}"),
("ti", "Guernsey"),
("tk", "Gernsi"),
("tl", "Guernsey"),
("tr", "Guernsey"),
("tt", "Guernsey"),
("ug", "گېرىنسى"),
("uk", "Острів Гернсі"),
("ur", "گرنزی"),
("uz", "Guernsey"),
("ve", "Guernsey"),
("vi", "Gơnh-xị"),
("wa", "Guernsey"),
("wo", "Guernsey"),
("xh", "Guernsey"),
("yo", "Guernsey"),
("zh_CN", "根西岛"),
("zh_HK", "根息"),
("zh_TW", "根息島"),
("zu", "Guernsey"),
]),
#[cfg(feature = "subdivisions")]
subdivisions: subdivisions::new(),
g7_member: false,
g20_member: false,
eu_member: false,
eea_member: false,
maybe_vat_rates: None,
distance_unit: DistanceUnit::Km,
maybe_population: None,
}
}