#![allow(clippy::exhaustive_structs, clippy::exhaustive_enums)]
#![warn(unused_imports)]
use icu_provider::prelude::*;
use potential_utf::PotentialUtf8;
use tinystr::UnvalidatedTinyAsciiStr;
use zerovec::ZeroMap;
type UnvalidatedRegion = UnvalidatedTinyAsciiStr<3>;
type UnvalidatedLanguage = UnvalidatedTinyAsciiStr<3>;
type UnvalidatedScript = UnvalidatedTinyAsciiStr<4>;
type UnvalidatedLocale = PotentialUtf8;
type UnvalidatedVariant = UnvalidatedTinyAsciiStr<8>;
#[cfg(feature = "compiled_data")]
pub use crate::provider::Baked;
#[icu_provider::data_struct(RegionDisplayNamesV1Marker = "displaynames/regions@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
#[cfg_attr(feature = "datagen", databake(path = icu_experimental::displaynames::provider))]
#[yoke(prove_covariance_manually)]
pub struct RegionDisplayNamesV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
pub names: ZeroMap<'data, UnvalidatedRegion, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub short_names: ZeroMap<'data, UnvalidatedRegion, str>,
}
#[icu_provider::data_struct(LanguageDisplayNamesV1Marker = "displaynames/languages@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
#[cfg_attr(feature = "datagen", databake(path = icu_experimental::displaynames::provider))]
#[yoke(prove_covariance_manually)]
pub struct LanguageDisplayNamesV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
pub names: ZeroMap<'data, UnvalidatedLanguage, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub short_names: ZeroMap<'data, UnvalidatedLanguage, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub long_names: ZeroMap<'data, UnvalidatedLanguage, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub menu_names: ZeroMap<'data, UnvalidatedLanguage, str>,
}
#[icu_provider::data_struct(ScriptDisplayNamesV1Marker = "displaynames/scripts@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
#[cfg_attr(feature = "datagen", databake(path = icu_experimental::displaynames::provider))]
#[yoke(prove_covariance_manually)]
pub struct ScriptDisplayNamesV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
pub names: ZeroMap<'data, UnvalidatedScript, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub short_names: ZeroMap<'data, UnvalidatedScript, str>,
}
#[icu_provider::data_struct(LocaleDisplayNamesV1Marker = "displaynames/locales@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
#[cfg_attr(feature = "datagen", databake(path = icu_experimental::displaynames::provider))]
#[yoke(prove_covariance_manually)]
pub struct LocaleDisplayNamesV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
pub names: ZeroMap<'data, UnvalidatedLocale, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub short_names: ZeroMap<'data, UnvalidatedLocale, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub long_names: ZeroMap<'data, UnvalidatedLocale, str>,
#[cfg_attr(feature = "serde", serde(borrow))]
pub menu_names: ZeroMap<'data, UnvalidatedLocale, str>,
}
#[icu_provider::data_struct(VariantDisplayNamesV1Marker = "displaynames/variants@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
#[cfg_attr(feature = "datagen", databake(path = icu_experimental::displaynames::provider))]
#[yoke(prove_covariance_manually)]
pub struct VariantDisplayNamesV1<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
pub names: ZeroMap<'data, UnvalidatedVariant, str>,
}