#[derive(Debug, Eq, PartialEq, Clone, Default)]
#[non_exhaustive]
pub struct DisplayNamesOptions {
pub style: Style,
pub fallback: Fallback,
pub language_display: LanguageDisplay,
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
pub enum Style {
Narrow,
Short,
Long,
}
impl Default for Style {
fn default() -> Self {
Self::Long
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
pub enum Fallback {
Code,
None,
}
impl Default for Fallback {
fn default() -> Self {
Self::Code
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
pub enum LanguageDisplay {
Dialect,
Standard,
}
impl Default for LanguageDisplay {
fn default() -> Self {
Self::Dialect
}
}