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
// DO NOT TOUCH THIS FILE. (Auto-generated by `keshvar-code-generator/src/countries.rs`)

//! A module for country `Bermuda`

#[cfg(all(feature = "bm", feature = "constants"))]
/// A module to access all constant country data for `Bermuda`.
///
/// 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::BM;
    pub const ALPHA3: Alpha3 = Alpha3::BMU;
    pub const CONTINENT: Continent = Continent::NorthAmerica;
    pub const COUNTRY_CODE: usize = 1;
    pub const CURRENCY_CODE: CurrencyCode = CurrencyCode::BMD;
    pub const GEC: Option<GEC> = Some(GEC::BD);
    pub const INTERNATIONAL_PREFIX: &str = "011";
    pub const IOC: Option<IOC> = Some(IOC::BER);
    pub const ISO_SHORT_NAME: &str = "Bermuda";
    pub const ISO_LONG_NAME: &str = "Bermuda";
    pub const OFFICIAL_LANGUAGE_LIST: &[&str] = &["en"];
    pub const SPOKEN_LANGUAGE_LIST: &[&str] = &["en"];
    pub const NATIONAL_DESTINATION_CODE_LENGTH_LIST: &[usize] = &[3];
    pub const NATIONAL_NUMBER_LENGTH_LIST: &[usize] = &[10];
    pub const NATIONAL_PREFIX: &str = "1";
    pub const NATIONALITY: Option<&str> = Some("Bermudian");
    pub const NUMBER: &str = "060";
    pub const POSTAL_CODE: bool = true;
    pub const POSTAL_CODE_FORMAT: Option<&str> = Some("[A-Z]{2} ?[A-Z0-9]{2}");
    pub const REGION: Option<Region> = Some(Region::Americas);
    pub const START_DAY_OF_WEEK: WeekDay = WeekDay::Monday;
    pub const SUBREGION: Option<SubRegion> = Some(SubRegion::NorthernAmerica);
    pub const UN_LOCODE: &str = "BM";
    pub const UNOFFICIAL_NAME_LIST: &[&str] = &["Bermuda", "Bermudes", "Bermudas", "バミューダ"];
    pub const WORLD_REGION: WorldRegion = WorldRegion::AMER;
    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> = Some(63532);
    #[cfg(feature = "emojis")]
    pub const EMOJI: &str = "🇧🇲";
    #[cfg(feature = "translations")]
    pub const TRANSLATIONS: &[(&str, &str)] = &[
        ("ab", "Bermuda"),
        ("af", "Bermunda"),
        ("ak", "Bermuda"),
        ("am", "ቤሴሙ፣"),
        ("an", "Bermudas"),
        ("ar", "برمودا"),
        ("as", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
        ("ay", "Bermuda"),
        ("az", "Bermuda"),
        ("ba", "Bermuda"),
        ("be", "Бермудскія астравы"),
        ("bg", "Бермуда"),
        ("bi", "Bermuda"),
        ("bn", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
        ("bn_IN", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
        ("br", "Bermuda"),
        ("bs", "Bermuda"),
        ("ca", "Bermuda"),
        ("ce", "Бермуда гӀайренаш"),
        ("ch", "Bermuda"),
        ("cs", "Bermudy"),
        ("cv", "Бермуда гӀайренаш"),
        ("cy", "Bermuda"),
        ("da", "Bermuda"),
        ("de", "Bermuda"),
        ("dv", "ބ\u{7a7}މ\u{7a8}އ\u{7aa}ޑ\u{7a7}"),
        ("dz", "བར་མ\u{f74}་ད།"),
        ("ee", "Bermuda"),
        ("el", "Βερμούδες"),
        ("en", "Bermuda"),
        ("eo", "Bermudoj"),
        ("es", "Islas Bermudas"),
        ("et", "Bermuda"),
        ("eu", "Bermuda"),
        ("fa", "برمودا"),
        ("ff", "Bermuda"),
        ("fi", "Bermuda"),
        ("fo", "Bermuda"),
        ("fr", "Bermudes"),
        ("fy", "Bermuda"),
        ("ga", "Na Beirmiúdaí"),
        ("gl", "Illas Bermudas"),
        ("gn", "Bermuda"),
        ("gu", "બર\u{acd}\u{acd}\u{ac1}ડા"),
        ("gv", "Ny Bermioodee"),
        ("ha", "Bermuda"),
        ("he", "ברמודה"),
        ("hi", "बरम\u{942}डा"),
        ("hr", "Bermudi"),
        ("ht", "Bermid"),
        ("hu", "Bermuda"),
        ("hy", "Բերմուդյան Կղզիներ"),
        ("ia", "Bermuda"),
        ("id", "Bermuda"),
        ("io", "Bermuda"),
        ("is", "Bermúda"),
        ("it", "Bermuda"),
        ("iu", "Bermuda"),
        ("ja", "バーミューダ"),
        ("ka", "ბერმუდა"),
        ("ki", "Bermuda"),
        ("kk", "Бермуд аралдары"),
        ("kl", "Bermuda"),
        ("km", "\u{17ca}េរម\u{17bc}ដា"),
        ("kn", "ಬರ\u{ccd}ಮುಡಾ"),
        ("ko", "버뮤다"),
        ("ku", "Bermûda"),
        ("kv", "Bermuda"),
        ("kw", "Bermuda"),
        ("ky", "Бермуд аралдары"),
        ("lo", "Bermuda"),
        ("lt", "Bermuda"),
        ("lv", "Bermunda"),
        ("mi", "Bermuda"),
        ("mk", "Бермуди"),
        ("ml", "ബര\u{d4d}\u{200d}\u{d41}"),
        ("mn", "Bermuda"),
        ("mr", "बर\u{94d}\u{94d}\u{941}डा"),
        ("ms", "Bermuda"),
        ("mt", "Bermuda"),
        ("my", "Bermuda"),
        ("na", "Bermuda"),
        ("nb", "Bermuda"),
        ("ne", "बरम\u{941}ढा"),
        ("nl", "Bermuda"),
        ("nn", "Bermuda"),
        ("nv", "Bermuda"),
        ("oc", "Bermudas"),
        ("or", "ବର\u{b4d}\u{b41}\u{b3e}"),
        ("pa", "ਬਾਰਾਮ\u{a42}ਡਾ"),
        ("pi", "Bermuda"),
        ("pl", "Bermudy"),
        ("ps", "Bermuda"),
        ("pt", "Bermudas"),
        ("pt_BR", "Bermuda"),
        ("ro", "Bermude"),
        ("ru", "Бермуды"),
        ("rw", "Berimuda"),
        ("sc", "Bermuda"),
        ("sd", "برمودا"),
        ("si", "බර\u{dca}\u{dd2}\u{dd4}\u{dcf}"),
        ("sk", "Bermudy"),
        ("sl", "Bermuda"),
        ("so", "Bermuda"),
        ("sq", "Bermuda"),
        ("sr", "Бермуда"),
        ("sv", "Bermuda"),
        ("sw", "Bermuda"),
        ("ta", "பெர\u{bcd}முட\u{bbe}"),
        ("te", "\u{c46}\u{c4d}\u{c4d}యుడ\u{c3e}"),
        ("tg", "Бермуда"),
        ("th", "เบอร\u{e4c}\u{e34}วดา"),
        ("ti", "ቤርሙዳ"),
        ("tk", "Bermud adalary"),
        ("tl", "Bermuda"),
        ("tr", "Bermuda"),
        ("tt", "Бермуда"),
        ("ug", "بېرمۇدا"),
        ("uk", "Бермудські острови"),
        ("ur", "برمودا"),
        ("uz", "Bermuda orollari"),
        ("ve", "Bermuda"),
        ("vi", "Be-mu-đa"),
        ("wa", "Bermudes"),
        ("wo", "Bermuda"),
        ("xh", "Bermuda"),
        ("yo", "Bẹ\u{300}rmúdà"),
        ("zh_CN", "百慕大"),
        ("zh_HK", "百慕達"),
        ("zh_TW", "百慕達"),
        ("zu", "Bermuda"),
    ];
    #[cfg(all(feature = "bm", feature = "geo", feature = "constants"))]
    /// GEO data as constants
    pub mod geo {
        pub const LATITUDE: f64 = 32.3078;
        pub const LONGITUDE: f64 = -64.7505;
        pub const MAX_LATITUDE: f64 = 32.3961;
        pub const MAX_LONGITUDE: f64 = -64.6413999;
        pub const MIN_LATITUDE: f64 = 32.2424975;
        pub const MIN_LONGITUDE: f64 = -64.89139999999999;
        pub const NORTHEAST_LATITUDE: f64 = 32.3961;
        pub const NORTHEAST_LONGITUDE: f64 = -64.6413999;
        pub const SOUTHWEST_LATITUDE: f64 = 32.2424975;
        pub const SOUTHWEST_LONGITUDE: f64 = -64.89139999999999;
    }
}
#[cfg(all(feature = "bm", 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: 32.3078,
            longitude: -64.7505,
            max_latitude: 32.3961,
            max_longitude: -64.6413999,
            min_latitude: 32.2424975,
            min_longitude: -64.89139999999999,
            bounds: CountryGeoBounds {
                northeast: CountryGeoBound {
                    latitude: 32.3961,
                    longitude: -64.6413999,
                },
                southwest: CountryGeoBound {
                    latitude: 32.2424975,
                    longitude: -64.89139999999999,
                },
            },
        }
    }
}

#[cfg(all(feature = "bm", 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 = "bm")]
/// [`Country`](crate::Country) struct for this country.
pub fn new() -> Country {
    Country {
        alpha2: Alpha2::BM,
        alpha3: Alpha3::BMU,
        address_format: None,
        continent: Continent::NorthAmerica,
        country_code: 1,
        currency_code: CurrencyCode::BMD,
        maybe_gec: Some(GEC::BD),
        #[cfg(feature = "geo")]
        geo: geo::new(),
        international_prefix: "011",
        maybe_ioc: Some(IOC::BER),
        iso_long_name: "Bermuda",
        iso_short_name: "Bermuda",
        official_language_list: ["en"].to_vec(),
        spoken_language_list: ["en"].to_vec(),
        national_destination_code_length_list: [3].to_vec(),
        national_number_length_list: [10].to_vec(),
        national_prefix: "1",
        maybe_nationality: Some("Bermudian"),
        number: "060",
        postal_code: true,
        postal_code_format: Some("[A-Z]{2} ?[A-Z0-9]{2}"),
        maybe_region: Some(Region::Americas),
        start_of_week: WeekDay::Monday,
        maybe_subregion: Some(SubRegion::NorthernAmerica),
        un_locode: "BM",
        unofficial_name_list: ["Bermuda", "Bermudes", "Bermudas", "バミューダ"].to_vec(),
        world_region: WorldRegion::AMER,
        #[cfg(feature = "emojis")]
        emoji: "🇧🇲",
        #[cfg(feature = "translations")]
        translations: HashMap::from([
            ("ab", "Bermuda"),
            ("af", "Bermunda"),
            ("ak", "Bermuda"),
            ("am", "ቤሴሙ፣"),
            ("an", "Bermudas"),
            ("ar", "برمودا"),
            ("as", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
            ("ay", "Bermuda"),
            ("az", "Bermuda"),
            ("ba", "Bermuda"),
            ("be", "Бермудскія астравы"),
            ("bg", "Бермуда"),
            ("bi", "Bermuda"),
            ("bn", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
            ("bn_IN", "\u{9be}\u{9cd}\u{9c1}\u{9be}"),
            ("br", "Bermuda"),
            ("bs", "Bermuda"),
            ("ca", "Bermuda"),
            ("ce", "Бермуда гӀайренаш"),
            ("ch", "Bermuda"),
            ("cs", "Bermudy"),
            ("cv", "Бермуда гӀайренаш"),
            ("cy", "Bermuda"),
            ("da", "Bermuda"),
            ("de", "Bermuda"),
            ("dv", "ބ\u{7a7}މ\u{7a8}އ\u{7aa}ޑ\u{7a7}"),
            ("dz", "བར་མ\u{f74}་ད།"),
            ("ee", "Bermuda"),
            ("el", "Βερμούδες"),
            ("en", "Bermuda"),
            ("eo", "Bermudoj"),
            ("es", "Islas Bermudas"),
            ("et", "Bermuda"),
            ("eu", "Bermuda"),
            ("fa", "برمودا"),
            ("ff", "Bermuda"),
            ("fi", "Bermuda"),
            ("fo", "Bermuda"),
            ("fr", "Bermudes"),
            ("fy", "Bermuda"),
            ("ga", "Na Beirmiúdaí"),
            ("gl", "Illas Bermudas"),
            ("gn", "Bermuda"),
            ("gu", "બર\u{acd}\u{acd}\u{ac1}ડા"),
            ("gv", "Ny Bermioodee"),
            ("ha", "Bermuda"),
            ("he", "ברמודה"),
            ("hi", "बरम\u{942}डा"),
            ("hr", "Bermudi"),
            ("ht", "Bermid"),
            ("hu", "Bermuda"),
            ("hy", "Բերմուդյան Կղզիներ"),
            ("ia", "Bermuda"),
            ("id", "Bermuda"),
            ("io", "Bermuda"),
            ("is", "Bermúda"),
            ("it", "Bermuda"),
            ("iu", "Bermuda"),
            ("ja", "バーミューダ"),
            ("ka", "ბერმუდა"),
            ("ki", "Bermuda"),
            ("kk", "Бермуд аралдары"),
            ("kl", "Bermuda"),
            ("km", "\u{17ca}េរម\u{17bc}ដា"),
            ("kn", "ಬರ\u{ccd}ಮುಡಾ"),
            ("ko", "버뮤다"),
            ("ku", "Bermûda"),
            ("kv", "Bermuda"),
            ("kw", "Bermuda"),
            ("ky", "Бермуд аралдары"),
            ("lo", "Bermuda"),
            ("lt", "Bermuda"),
            ("lv", "Bermunda"),
            ("mi", "Bermuda"),
            ("mk", "Бермуди"),
            ("ml", "ബര\u{d4d}\u{200d}\u{d41}"),
            ("mn", "Bermuda"),
            ("mr", "बर\u{94d}\u{94d}\u{941}डा"),
            ("ms", "Bermuda"),
            ("mt", "Bermuda"),
            ("my", "Bermuda"),
            ("na", "Bermuda"),
            ("nb", "Bermuda"),
            ("ne", "बरम\u{941}ढा"),
            ("nl", "Bermuda"),
            ("nn", "Bermuda"),
            ("nv", "Bermuda"),
            ("oc", "Bermudas"),
            ("or", "ବର\u{b4d}\u{b41}\u{b3e}"),
            ("pa", "ਬਾਰਾਮ\u{a42}ਡਾ"),
            ("pi", "Bermuda"),
            ("pl", "Bermudy"),
            ("ps", "Bermuda"),
            ("pt", "Bermudas"),
            ("pt_BR", "Bermuda"),
            ("ro", "Bermude"),
            ("ru", "Бермуды"),
            ("rw", "Berimuda"),
            ("sc", "Bermuda"),
            ("sd", "برمودا"),
            ("si", "බර\u{dca}\u{dd2}\u{dd4}\u{dcf}"),
            ("sk", "Bermudy"),
            ("sl", "Bermuda"),
            ("so", "Bermuda"),
            ("sq", "Bermuda"),
            ("sr", "Бермуда"),
            ("sv", "Bermuda"),
            ("sw", "Bermuda"),
            ("ta", "பெர\u{bcd}முட\u{bbe}"),
            ("te", "\u{c46}\u{c4d}\u{c4d}యుడ\u{c3e}"),
            ("tg", "Бермуда"),
            ("th", "เบอร\u{e4c}\u{e34}วดา"),
            ("ti", "ቤርሙዳ"),
            ("tk", "Bermud adalary"),
            ("tl", "Bermuda"),
            ("tr", "Bermuda"),
            ("tt", "Бермуда"),
            ("ug", "بېرمۇدا"),
            ("uk", "Бермудські острови"),
            ("ur", "برمودا"),
            ("uz", "Bermuda orollari"),
            ("ve", "Bermuda"),
            ("vi", "Be-mu-đa"),
            ("wa", "Bermudes"),
            ("wo", "Bermuda"),
            ("xh", "Bermuda"),
            ("yo", "Bẹ\u{300}rmúdà"),
            ("zh_CN", "百慕大"),
            ("zh_HK", "百慕達"),
            ("zh_TW", "百慕達"),
            ("zu", "Bermuda"),
        ]),
        #[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: Some(63532),
    }
}