icu_provider_source/cldr_serde/
aliases.rsuse serde::Deserialize;
use std::collections::HashMap;
use tinystr::TinyAsciiStr;
#[derive(PartialEq, Debug, Deserialize)]
pub(crate) struct Replacement<T> {
#[serde(rename = "_replacement")]
pub(crate) replacement: T,
}
#[derive(PartialEq, Debug, Deserialize)]
pub(crate) struct Alias {
#[serde(rename = "languageAlias")]
pub(crate) language_aliases: HashMap<String, Replacement<String>>,
#[serde(rename = "scriptAlias")]
pub(crate) script_aliases: HashMap<TinyAsciiStr<4>, Replacement<TinyAsciiStr<4>>>,
#[serde(rename = "territoryAlias")]
pub(crate) region_aliases: HashMap<TinyAsciiStr<3>, Replacement<String>>,
#[serde(rename = "variantAlias")]
pub(crate) variant_aliases: HashMap<TinyAsciiStr<8>, Replacement<TinyAsciiStr<8>>>,
#[serde(rename = "subdivisionAlias")]
pub(crate) subdivision_aliases: HashMap<TinyAsciiStr<7>, Replacement<String>>,
}
#[derive(PartialEq, Debug, Deserialize)]
pub(crate) struct Metadata {
pub(crate) alias: Alias,
}
#[derive(PartialEq, Debug, Deserialize)]
pub(crate) struct Supplemental {
pub(crate) metadata: Metadata,
}
#[derive(PartialEq, Debug, Deserialize)]
pub(crate) struct Resource {
pub(crate) supplemental: Supplemental,
}