pub struct Locale {
pub lang: Option<LocaleCode>,
pub info: Option<LocaleInfo>,
pub terms: Option<Terms>,
pub date: Vec<Date>,
pub style_options: Option<LocaleOptions>,
}Expand description
Supplemental localization data in a citation style.
Fields§
§lang: Option<LocaleCode>Which languages or dialects this data applies to. Must be Some if this
appears in a locale file.
info: Option<LocaleInfo>Metadata of the locale.
terms: Option<Terms>The terms used in the locale.
date: Vec<Date>How to format dates in the locale file.
style_options: Option<LocaleOptions>Style options for the locale.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Locale
impl<'de> Deserialize<'de> for Locale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LocaleFile> for Locale
impl From<LocaleFile> for Locale
Source§fn from(file: LocaleFile) -> Self
fn from(file: LocaleFile) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Locale> for LocaleFile
impl TryFrom<Locale> for LocaleFile
impl Eq for Locale
impl StructuralPartialEq for Locale
Auto Trait Implementations§
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnwindSafe for Locale
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more