pub struct ThemeConfig {
pub nav: Vec<NavItem>,
pub sidebar: HashMap<String, Vec<SidebarItem>>,
pub social_links: Vec<SocialLink>,
pub footer: Option<FooterConfig>,
pub custom: HashMap<String, Value>,
}Expand description
主题配置
Fields§
导航栏配置
侧边栏配置
社交链接
页脚配置
custom: HashMap<String, Value>自定义配置
Implementations§
Source§impl ThemeConfig
impl ThemeConfig
Trait Implementations§
Source§impl Clone for ThemeConfig
impl Clone for ThemeConfig
Source§fn clone(&self) -> ThemeConfig
fn clone(&self) -> ThemeConfig
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 ConfigValidation for ThemeConfig
impl ConfigValidation for ThemeConfig
Source§impl Debug for ThemeConfig
impl Debug for ThemeConfig
Source§impl Default for ThemeConfig
impl Default for ThemeConfig
Source§fn default() -> ThemeConfig
fn default() -> ThemeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeConfig
impl<'de> Deserialize<'de> for ThemeConfig
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 PartialEq for ThemeConfig
impl PartialEq for ThemeConfig
Source§impl Serialize for ThemeConfig
impl Serialize for ThemeConfig
impl StructuralPartialEq for ThemeConfig
Auto Trait Implementations§
impl Freeze for ThemeConfig
impl RefUnwindSafe for ThemeConfig
impl Send for ThemeConfig
impl Sync for ThemeConfig
impl Unpin for ThemeConfig
impl UnsafeUnpin for ThemeConfig
impl UnwindSafe for ThemeConfig
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