pub enum SidebarItem {
Model {
name: String,
label: String,
icon: Option<String>,
},
Group {
name: String,
items: Vec<SidebarItem>,
},
Divider,
Link {
label: String,
url: String,
icon: Option<String>,
},
}Expand description
Sidebar navigation item
Variants§
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 moreAuto Trait Implementations§
impl Freeze for SidebarItem
impl RefUnwindSafe for SidebarItem
impl Send for SidebarItem
impl Sync for SidebarItem
impl Unpin 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