pub struct LegacyConfig {
pub title: String,
pub description: String,
pub locales: Option<Vec<LegacyLocale>>,
pub theme: Option<String>,
pub theme_config: Option<ThemeConfig>,
pub markdown: Option<LegacyMarkdownConfig>,
pub build: Option<LegacyBuildConfig>,
}Expand description
兼容旧版 HXO Document 的配置结构
Fields§
§title: String§description: String§locales: Option<Vec<LegacyLocale>>§theme: Option<String>§theme_config: Option<ThemeConfig>§markdown: Option<LegacyMarkdownConfig>§build: Option<LegacyBuildConfig>Trait Implementations§
Source§impl Clone for LegacyConfig
impl Clone for LegacyConfig
Source§fn clone(&self) -> LegacyConfig
fn clone(&self) -> LegacyConfig
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 LegacyConfig
impl Debug for LegacyConfig
Source§impl<'de> Deserialize<'de> for LegacyConfig
impl<'de> Deserialize<'de> for LegacyConfig
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 LegacyConfig
impl RefUnwindSafe for LegacyConfig
impl Send for LegacyConfig
impl Sync for LegacyConfig
impl Unpin for LegacyConfig
impl UnsafeUnpin for LegacyConfig
impl UnwindSafe for LegacyConfig
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