Source code

Revision control

Copy as Markdown

Other Tools

// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
use serde::Deserialize;
#[derive(Deserialize)]
pub struct SubtagData {
pub valid: Vec<String>,
pub invalid: Vec<String>,
}
#[derive(Deserialize)]
pub struct Subtags {
pub language: SubtagData,
pub script: SubtagData,
pub region: SubtagData,
pub variant: SubtagData,
}
#[derive(Deserialize)]
pub struct LocaleList {
pub canonicalized: Vec<String>,
pub casing: Vec<String>,
}