pub struct LegacyLocale {
pub label: String,
pub lang: String,
pub link: String,
pub theme_config: Option<ThemeConfig>,
}Expand description
兼容旧版 HXO Document 的 Locale 结构
Fields§
§label: String§lang: String§link: String§theme_config: Option<ThemeConfig>Trait Implementations§
Source§impl Clone for LegacyLocale
impl Clone for LegacyLocale
Source§fn clone(&self) -> LegacyLocale
fn clone(&self) -> LegacyLocale
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 LegacyLocale
impl Debug for LegacyLocale
Source§impl<'de> Deserialize<'de> for LegacyLocale
impl<'de> Deserialize<'de> for LegacyLocale
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 LegacyLocale
impl RefUnwindSafe for LegacyLocale
impl Send for LegacyLocale
impl Sync for LegacyLocale
impl Unpin for LegacyLocale
impl UnsafeUnpin for LegacyLocale
impl UnwindSafe for LegacyLocale
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