Debian Codegraph @

third_party/rust/icu_locid/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 pub struct SubtagData {
9 pub valid: Vec<String>,
10 pub invalid: Vec<String>,
11 }
12
13 #[derive(Deserialize)]
14 pub struct Subtags {
15 pub language: SubtagData,
16 pub script: SubtagData,
17 pub region: SubtagData,
18 pub variant: SubtagData,
19 }
20
21 #[derive(Deserialize)]
22 pub struct LocaleList {
23 pub canonicalized: Vec<String>,
24 pub casing: Vec<String>,
25 }