Debian Codegraph @

debian/missing-sources/icu_locale_core/benches/fixtures/mod.rs

raw
1 // This file is part of ICU4X. For terms of use, please see the file
2 // called LICENSE at the top level of the ICU4X source tree
3 // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5 use serde::Deserialize;
6
7 #[derive(Deserialize)]
8 #[allow(dead_code)]
9 pub struct SubtagData {
10 pub valid: Vec<String>,
11 pub invalid: Vec<String>,
12 }
13
14 #[derive(Deserialize)]
15 #[allow(dead_code)]
16 pub struct Subtags {
17 pub language: SubtagData,
18 pub script: SubtagData,
19 pub region: SubtagData,
20 pub variant: SubtagData,
21 }
22
23 #[derive(Deserialize)]
24 #[allow(dead_code)]
25 pub struct LocaleList {
26 pub canonicalized: Vec<String>,
27 pub casing: Vec<String>,
28 }