pub struct SidebarItemData {
pub label: &'static str,
pub icon: IconName,
pub href: Option<&'static str>,
pub badge: Option<&'static str>,
pub is_active: bool,
}Expand description
Navigation item descriptor for Sidebar.
Fields§
§label: &'static str§icon: IconName§href: Option<&'static str>§badge: Option<&'static str>§is_active: boolTrait Implementations§
Source§impl Clone for SidebarItemData
impl Clone for SidebarItemData
Source§impl Debug for SidebarItemData
impl Debug for SidebarItemData
Source§impl PartialEq for SidebarItemData
impl PartialEq for SidebarItemData
impl StructuralPartialEq for SidebarItemData
Auto Trait Implementations§
impl Forget for SidebarItemData
impl Freeze for SidebarItemData
impl Move for SidebarItemData
impl RefUnwindSafe for SidebarItemData
impl Send for SidebarItemData
impl Sync for SidebarItemData
impl Unpin for SidebarItemData
impl UnsafeUnpin for SidebarItemData
impl UnwindSafe for SidebarItemData
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