keshvar 0.5.0

collection of all sorts of useful information for every country
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
// DO NOT TOUCH THIS FILE. (Auto-generated by `keshvar-code-generator/src/countries.rs`)

//! A module for country `The Territory of Christmas Island`

#[cfg(all(feature = "cx", feature = "constants"))]
/// A module to access all constant country data for `The Territory of Christmas Island`.
///
/// Note that to use this module, `constant` feature should be enabled.
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::CX;
    pub const ALPHA3: Alpha3 = Alpha3::CXR;
    pub const CONTINENT: Continent = Continent::Asia;
    pub const COUNTRY_CODE: usize = 61;
    pub const CURRENCY_CODE: CurrencyCode = CurrencyCode::AUD;
    pub const GEC: Option<GEC> = Some(GEC::KT);
    pub const INTERNATIONAL_PREFIX: &str = "0011";
    pub const IOC: Option<IOC> = None;
    pub const ISO_SHORT_NAME: &str = "Christmas Island";
    pub const ISO_LONG_NAME: &str = "The Territory of Christmas Island";
    pub const OFFICIAL_LANGUAGE_LIST: &[&str] = &["en", "ms", "zh"];
    pub const SPOKEN_LANGUAGE_LIST: &[&str] = &["en", "ms", "zh"];
    pub const NATIONAL_DESTINATION_CODE_LENGTH_LIST: &[usize] = &[];
    pub const NATIONAL_NUMBER_LENGTH_LIST: &[usize] = &[];
    pub const NATIONAL_PREFIX: &str = "0";
    pub const NATIONALITY: Option<&str> = Some("Christmas Island");
    pub const NUMBER: &str = "162";
    pub const POSTAL_CODE: bool = true;
    pub const POSTAL_CODE_FORMAT: Option<&str> = Some("6798");
    pub const REGION: Option<Region> = Some(Region::Oceania);
    pub const START_DAY_OF_WEEK: WeekDay = WeekDay::Monday;
    pub const SUBREGION: Option<SubRegion> = Some(SubRegion::AustraliaAndNewZealand);
    pub const UN_LOCODE: &str = "CX";
    pub const UNOFFICIAL_NAME_LIST: &[&str] = &[
        "Christmas Island",
        "Weihnachtsinsel",
        "クリスマス島",
        "Christmaseiland",
    ];
    pub const WORLD_REGION: WorldRegion = WorldRegion::APAC;
    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", "Christmas Island"),
        ("af", "Kerseiland"),
        ("ak", "Christmas Island"),
        ("am", "Christmas Island"),
        ("an", "Christmas Island"),
        ("ar", "جزر الكريسماس"),
        (
            "as",
            "\u{9cd}ৰিস\u{9cd}টম\u{9be}ছ দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
        ),
        ("ay", "Christmas Island"),
        ("az", "Kristmas Adası"),
        ("ba", "Christmas Island"),
        ("be", "Востраў Раства"),
        ("bg", "Коледни острови"),
        ("bi", "Christmas Island"),
        (
            "bn",
            "\u{9cd}রিস\u{9cd}টম\u{9be}স দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
        ),
        (
            "bn_IN",
            "\u{9cd}রিস\u{9cd}টম\u{9be}স দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
        ),
        ("br", "Christmas Island"),
        ("bs", "Uskršnje ostrvo"),
        ("ca", "Illa Christmas"),
        ("ce", "Christmas Island"),
        ("ch", "Christmas Island"),
        ("cs", "Vánoční ostrov"),
        ("cv", "Christmas Island"),
        ("cy", "Ynys y Nadolig"),
        ("da", "Juleøen"),
        ("de", "Weihnachtsinseln"),
        ("dv", "Christmas Island"),
        (
            "dz",
            "\u{f72}\u{f72}\u{f72}\u{f72}་མ\u{f71}\u{f72}་ ཨའ\u{f72}་ལ\u{f7a}ནཌ\u{f72}",
        ),
        ("ee", "Christmas Island"),
        ("el", "Νήσοι Χριστουγέννων"),
        ("en", "Christmas Island"),
        ("eo", "Kristnaskinsulo"),
        ("es", "Isla de Navidad"),
        ("et", "Jõulusaar"),
        ("eu", "Christmas uhartea"),
        ("fa", "جزیره\u{654} کریسمس"),
        ("ff", "Christmas Island"),
        ("fi", "Joulusaari"),
        ("fo", "Christmas Island"),
        ("fr", "Christmas, Île"),
        ("fy", "Christmas Island"),
        ("ga", "Oileán na Nollag"),
        ("gl", "Illa Christmas"),
        ("gn", "Christmas Island"),
        ("gu", "\u{acd}રિસમસ ટાપ\u{ac1}"),
        ("gv", "Christmas Island"),
        ("ha", "Christmas Island"),
        ("he", "איי חג המולד"),
        ("hi", "\u{94d}रिसमस आइल\u{948}\u{94d}"),
        ("hr", "Božićni Otok"),
        ("ht", "Christmas Island"),
        ("hu", "Karácsony-sziget"),
        ("hy", "Ծննդյան Կղզի"),
        ("ia", "Insula de Natal"),
        ("id", "Kepulauan Christmas"),
        ("io", "Christmas Island"),
        ("is", "Jólaeyja"),
        ("it", "Isola di Natale"),
        ("iu", "Christmas Island"),
        ("ja", "クリスマス島"),
        ("ka", "შობის კუნძული"),
        ("ki", "Christmas Island"),
        ("kk", "Рождество аралы"),
        ("kl", "Christmas Island"),
        ("km", "កោះ\u{200b}\u{17d2}\u{17b8}\u{17d2}តម\u{17c9}ាស"),
        ("kn", "\u{ccd}\u{cbf}\u{ccd}ಮಸ\u{ccd}\u{ccd}ವೀಪ"),
        ("ko", "크리스마스 섬"),
        ("ku", "Girava Noel"),
        ("kv", "Christmas Island"),
        ("kw", "Christmas Island"),
        ("ky", "Рождество Аралы"),
        ("lo", "Christmas Island"),
        ("lt", "Kalėdų sala"),
        ("lv", "Ziemsvētku sala"),
        ("mi", "Christmas Island"),
        ("mk", "Божиќни острови"),
        (
            "ml",
            "\u{d4d}രിസ\u{d4d}\u{d41}മസ\u{d4d}\u{d4d}വീപ\u{d4d}",
        ),
        ("mn", "Кристмас исланд"),
        ("mr", "\u{94d}रिसमस आयल\u{945}\u{902}"),
        ("ms", "Kepulauan Christmas"),
        ("mt", "Christmas Island"),
        ("my", "Christmas Island"),
        ("na", "Christmas Island"),
        ("nb", "Christmasøya"),
        ("ne", "\u{94d}रिसमस टाप\u{941}"),
        ("nl", "Christmaseiland"),
        ("nn", "Christmasøya"),
        ("nv", "Christmas Island"),
        ("oc", "Illa Cristmas"),
        ("or", "\u{b4d}\u{b3f}\u{b4d}ଟମ\u{b3e}ସ ଦ\u{b4d}ବୀପ"),
        ("pa", "\u{a4d}ਰਿਸਮਿਸ ਟਾਪ\u{a42}"),
        ("pi", "Christmas Island"),
        ("pl", "Wyspa Bożego Narodzenia"),
        ("ps", "Christmas Island"),
        ("pt", "Ilha Natal"),
        ("pt_BR", "Ilha Christmas"),
        ("ro", "Insula Crăciunului"),
        ("ru", "Остров Рождества"),
        ("rw", "Ikirwa cya Noheli"),
        ("sc", "Ìsula de sa Natividade"),
        ("sd", "Christmas Island"),
        (
            "si",
            "\u{dca}\u{200d}\u{dd2}\u{dca}මස\u{dca}\u{dd6}පත\u{dca}",
        ),
        ("sk", "Vianočný ostrov"),
        ("sl", "Božični otok"),
        ("so", "Christmas Island"),
        ("sq", "Ishulli i Krishtlindjes"),
        ("sr", "Божићно острво"),
        ("sv", "Julön"),
        ("sw", "Kisiwa cha Christmas"),
        ("ta", "கிறிஸ\u{bcd}துமஸ\u{bcd}\u{bc0}வு"),
        (
            "te",
            "\u{c4d}\u{c3f}\u{c4d}\u{200c}మస\u{c4d} ఐల\u{c3e}ండ\u{c4d}",
        ),
        ("tg", "Ҷазираи Крисмас"),
        ("th", "เกาะคร\u{e34}สต\u{e4c}มาส"),
        ("ti", "Christmas Island"),
        ("tk", "Roždestwo adalary"),
        ("tl", "Christmas Island"),
        ("tr", "Christmas Adası"),
        ("tt", "Җһристмас Утравлары"),
        ("ug", "روژدېستۋو ئارىلى"),
        ("uk", "Острів Різдва"),
        ("ur", "Christmas Island"),
        ("uz", "Christmas Island"),
        ("ve", "Christmas Island"),
        ("vi", "Đảo Kh-ri-xợ-mà-xợ"),
        ("wa", "Iye Christmas"),
        ("wo", "Christmas Island"),
        ("xh", "Christmas Island"),
        ("yo", "Christmas Island"),
        ("zh_CN", "圣诞岛"),
        ("zh_HK", "聖誕島"),
        ("zh_TW", "聖誕島"),
        ("zu", "Christmas Island"),
    ];
    #[cfg(all(feature = "cx", feature = "geo", feature = "constants"))]
    /// GEO data as constants
    pub mod geo {
        pub const LATITUDE: f64 = -10.447525;
        pub const LONGITUDE: f64 = 105.690449;
        pub const MAX_LATITUDE: f64 = -10.412352;
        pub const MAX_LONGITUDE: f64 = 105.7129382;
        pub const MIN_LATITUDE: f64 = -10.5703619;
        pub const MIN_LONGITUDE: f64 = 105.5333161;
        pub const NORTHEAST_LATITUDE: f64 = -10.412352;
        pub const NORTHEAST_LONGITUDE: f64 = 105.7129382;
        pub const SOUTHWEST_LATITUDE: f64 = -10.5703619;
        pub const SOUTHWEST_LONGITUDE: f64 = 105.5333161;
    }
}
#[cfg(all(feature = "cx", feature = "geo"))]
/// GEO module for this country.
pub mod geo {
    use crate::{CountryGeo, CountryGeoBound, CountryGeoBounds};

    /// GEO information for this country.
    pub fn new() -> CountryGeo {
        CountryGeo {
            latitude: -10.447525,
            longitude: 105.690449,
            max_latitude: -10.412352,
            max_longitude: 105.7129382,
            min_latitude: -10.5703619,
            min_longitude: 105.5333161,
            bounds: CountryGeoBounds {
                northeast: CountryGeoBound {
                    latitude: -10.412352,
                    longitude: 105.7129382,
                },
                southwest: CountryGeoBound {
                    latitude: -10.5703619,
                    longitude: 105.5333161,
                },
            },
        }
    }
}

#[cfg(all(feature = "cx", feature = "subdivisions"))]
/// Subdivision module for this country.
pub mod subdivisions {
    #[allow(unused_imports)]
    use crate::{Alpha2, Subdivision, SubdivisionType};
    use std::collections::HashMap;
    // In this state, We do not know if subdivisions have geo or not!
    #[cfg(feature = "geo")]
    #[allow(unused_imports)]
    use crate::SubdivisionGeo;

    /// Subdivisions for this country.
    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 = "cx")]
/// [`Country`](crate::Country) struct for this country.
pub fn new() -> Country {
    Country {
        alpha2: Alpha2::CX,
        alpha3: Alpha3::CXR,
        address_format: None,
        continent: Continent::Asia,
        country_code: 61,
        currency_code: CurrencyCode::AUD,
        maybe_gec: Some(GEC::KT),
        #[cfg(feature = "geo")]
        geo: geo::new(),
        international_prefix: "0011",
        maybe_ioc: None,
        iso_long_name: "The Territory of Christmas Island",
        iso_short_name: "Christmas Island",
        official_language_list: ["en", "ms", "zh"].to_vec(),
        spoken_language_list: ["en", "ms", "zh"].to_vec(),
        national_destination_code_length_list: [].to_vec(),
        national_number_length_list: [].to_vec(),
        national_prefix: "0",
        maybe_nationality: Some("Christmas Island"),
        number: "162",
        postal_code: true,
        postal_code_format: Some("6798"),
        maybe_region: Some(Region::Oceania),
        start_of_week: WeekDay::Monday,
        maybe_subregion: Some(SubRegion::AustraliaAndNewZealand),
        un_locode: "CX",
        unofficial_name_list: [
            "Christmas Island",
            "Weihnachtsinsel",
            "クリスマス島",
            "Christmaseiland",
        ]
        .to_vec(),
        world_region: WorldRegion::APAC,
        #[cfg(feature = "emojis")]
        emoji: "🇨🇽",
        #[cfg(feature = "translations")]
        translations: HashMap::from([
            ("ab", "Christmas Island"),
            ("af", "Kerseiland"),
            ("ak", "Christmas Island"),
            ("am", "Christmas Island"),
            ("an", "Christmas Island"),
            ("ar", "جزر الكريسماس"),
            (
                "as",
                "\u{9cd}ৰিস\u{9cd}টম\u{9be}ছ দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
            ),
            ("ay", "Christmas Island"),
            ("az", "Kristmas Adası"),
            ("ba", "Christmas Island"),
            ("be", "Востраў Раства"),
            ("bg", "Коледни острови"),
            ("bi", "Christmas Island"),
            (
                "bn",
                "\u{9cd}রিস\u{9cd}টম\u{9be}স দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
            ),
            (
                "bn_IN",
                "\u{9cd}রিস\u{9cd}টম\u{9be}স দ\u{9cd}বীপপ\u{9c1}\u{9cd}",
            ),
            ("br", "Christmas Island"),
            ("bs", "Uskršnje ostrvo"),
            ("ca", "Illa Christmas"),
            ("ce", "Christmas Island"),
            ("ch", "Christmas Island"),
            ("cs", "Vánoční ostrov"),
            ("cv", "Christmas Island"),
            ("cy", "Ynys y Nadolig"),
            ("da", "Juleøen"),
            ("de", "Weihnachtsinseln"),
            ("dv", "Christmas Island"),
            (
                "dz",
                "\u{f72}\u{f72}\u{f72}\u{f72}་མ\u{f71}\u{f72}་ ཨའ\u{f72}་ལ\u{f7a}ནཌ\u{f72}",
            ),
            ("ee", "Christmas Island"),
            ("el", "Νήσοι Χριστουγέννων"),
            ("en", "Christmas Island"),
            ("eo", "Kristnaskinsulo"),
            ("es", "Isla de Navidad"),
            ("et", "Jõulusaar"),
            ("eu", "Christmas uhartea"),
            ("fa", "جزیره\u{654} کریسمس"),
            ("ff", "Christmas Island"),
            ("fi", "Joulusaari"),
            ("fo", "Christmas Island"),
            ("fr", "Christmas, Île"),
            ("fy", "Christmas Island"),
            ("ga", "Oileán na Nollag"),
            ("gl", "Illa Christmas"),
            ("gn", "Christmas Island"),
            ("gu", "\u{acd}રિસમસ ટાપ\u{ac1}"),
            ("gv", "Christmas Island"),
            ("ha", "Christmas Island"),
            ("he", "איי חג המולד"),
            ("hi", "\u{94d}रिसमस आइल\u{948}\u{94d}"),
            ("hr", "Božićni Otok"),
            ("ht", "Christmas Island"),
            ("hu", "Karácsony-sziget"),
            ("hy", "Ծննդյան Կղզի"),
            ("ia", "Insula de Natal"),
            ("id", "Kepulauan Christmas"),
            ("io", "Christmas Island"),
            ("is", "Jólaeyja"),
            ("it", "Isola di Natale"),
            ("iu", "Christmas Island"),
            ("ja", "クリスマス島"),
            ("ka", "შობის კუნძული"),
            ("ki", "Christmas Island"),
            ("kk", "Рождество аралы"),
            ("kl", "Christmas Island"),
            ("km", "កោះ\u{200b}\u{17d2}\u{17b8}\u{17d2}តម\u{17c9}ាស"),
            ("kn", "\u{ccd}\u{cbf}\u{ccd}ಮಸ\u{ccd}\u{ccd}ವೀಪ"),
            ("ko", "크리스마스 섬"),
            ("ku", "Girava Noel"),
            ("kv", "Christmas Island"),
            ("kw", "Christmas Island"),
            ("ky", "Рождество Аралы"),
            ("lo", "Christmas Island"),
            ("lt", "Kalėdų sala"),
            ("lv", "Ziemsvētku sala"),
            ("mi", "Christmas Island"),
            ("mk", "Божиќни острови"),
            (
                "ml",
                "\u{d4d}രിസ\u{d4d}\u{d41}മസ\u{d4d}\u{d4d}വീപ\u{d4d}",
            ),
            ("mn", "Кристмас исланд"),
            ("mr", "\u{94d}रिसमस आयल\u{945}\u{902}"),
            ("ms", "Kepulauan Christmas"),
            ("mt", "Christmas Island"),
            ("my", "Christmas Island"),
            ("na", "Christmas Island"),
            ("nb", "Christmasøya"),
            ("ne", "\u{94d}रिसमस टाप\u{941}"),
            ("nl", "Christmaseiland"),
            ("nn", "Christmasøya"),
            ("nv", "Christmas Island"),
            ("oc", "Illa Cristmas"),
            ("or", "\u{b4d}\u{b3f}\u{b4d}ଟମ\u{b3e}ସ ଦ\u{b4d}ବୀପ"),
            ("pa", "\u{a4d}ਰਿਸਮਿਸ ਟਾਪ\u{a42}"),
            ("pi", "Christmas Island"),
            ("pl", "Wyspa Bożego Narodzenia"),
            ("ps", "Christmas Island"),
            ("pt", "Ilha Natal"),
            ("pt_BR", "Ilha Christmas"),
            ("ro", "Insula Crăciunului"),
            ("ru", "Остров Рождества"),
            ("rw", "Ikirwa cya Noheli"),
            ("sc", "Ìsula de sa Natividade"),
            ("sd", "Christmas Island"),
            (
                "si",
                "\u{dca}\u{200d}\u{dd2}\u{dca}මස\u{dca}\u{dd6}පත\u{dca}",
            ),
            ("sk", "Vianočný ostrov"),
            ("sl", "Božični otok"),
            ("so", "Christmas Island"),
            ("sq", "Ishulli i Krishtlindjes"),
            ("sr", "Божићно острво"),
            ("sv", "Julön"),
            ("sw", "Kisiwa cha Christmas"),
            ("ta", "கிறிஸ\u{bcd}துமஸ\u{bcd}\u{bc0}வு"),
            (
                "te",
                "\u{c4d}\u{c3f}\u{c4d}\u{200c}మస\u{c4d} ఐల\u{c3e}ండ\u{c4d}",
            ),
            ("tg", "Ҷазираи Крисмас"),
            ("th", "เกาะคร\u{e34}สต\u{e4c}มาส"),
            ("ti", "Christmas Island"),
            ("tk", "Roždestwo adalary"),
            ("tl", "Christmas Island"),
            ("tr", "Christmas Adası"),
            ("tt", "Җһристмас Утравлары"),
            ("ug", "روژدېستۋو ئارىلى"),
            ("uk", "Острів Різдва"),
            ("ur", "Christmas Island"),
            ("uz", "Christmas Island"),
            ("ve", "Christmas Island"),
            ("vi", "Đảo Kh-ri-xợ-mà-xợ"),
            ("wa", "Iye Christmas"),
            ("wo", "Christmas Island"),
            ("xh", "Christmas Island"),
            ("yo", "Christmas Island"),
            ("zh_CN", "圣诞岛"),
            ("zh_HK", "聖誕島"),
            ("zh_TW", "聖誕島"),
            ("zu", "Christmas Island"),
        ]),
        #[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,
    }
}