pub struct SidebarItem {
pub text: String,
pub link: Option<String>,
pub items: Option<Vec<SidebarItem>>,
pub collapsed: Option<bool>,
}Expand description
侧边栏项
Fields§
§text: String显示文本
link: Option<String>链接
items: Option<Vec<SidebarItem>>子项
collapsed: Option<bool>是否折叠
Implementations§
Trait Implementations§
Source§impl Clone for SidebarItem
impl Clone for SidebarItem
Source§fn clone(&self) -> SidebarItem
fn clone(&self) -> SidebarItem
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 SidebarItem
impl ConfigValidation for SidebarItem
Source§impl Debug for SidebarItem
impl Debug for SidebarItem
Source§impl<'de> Deserialize<'de> for SidebarItem
impl<'de> Deserialize<'de> for SidebarItem
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 SidebarItem
impl PartialEq for SidebarItem
Source§impl Serialize for SidebarItem
impl Serialize for SidebarItem
impl StructuralPartialEq for SidebarItem
Auto Trait Implementations§
impl Freeze for SidebarItem
impl RefUnwindSafe for SidebarItem
impl Send for SidebarItem
impl Sync for SidebarItem
impl Unpin for SidebarItem
impl UnsafeUnpin for SidebarItem
impl UnwindSafe for SidebarItem
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