pub struct LanguageConfig {
pub name: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
}Expand description
Configuration for a specific language.
Fields§
§name: Option<String>Display name of the language (e.g., “中文”, “日本語”).
title: Option<String>Override site title for this language.
description: Option<String>Override site description for this language.
Trait Implementations§
Source§impl Clone for LanguageConfig
impl Clone for LanguageConfig
Source§fn clone(&self) -> LanguageConfig
fn clone(&self) -> LanguageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageConfig
impl Debug for LanguageConfig
Source§impl Default for LanguageConfig
impl Default for LanguageConfig
Source§fn default() -> LanguageConfig
fn default() -> LanguageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageConfig
impl<'de> Deserialize<'de> for LanguageConfig
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
Auto Trait Implementations§
impl Freeze for LanguageConfig
impl RefUnwindSafe for LanguageConfig
impl Send for LanguageConfig
impl Sync for LanguageConfig
impl Unpin for LanguageConfig
impl UnwindSafe for LanguageConfig
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