pub struct SidebarItem {
pub label: String,
pub icon: String,
pub href: String,
}Fields§
§label: String§icon: String§href: StringImplementations§
Source§impl SidebarItem
impl SidebarItem
pub fn new(label: String) -> SidebarItem
pub fn icon(self, icon: String) -> SidebarItem
pub fn href(self, href: String) -> SidebarItem
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 Debug for SidebarItem
impl Debug for SidebarItem
Source§impl Default for SidebarItem
impl Default for SidebarItem
Source§fn default() -> SidebarItem
fn default() -> SidebarItem
Returns the “default value” for a type. Read more
Source§impl Hash for SidebarItem
impl Hash for SidebarItem
Source§impl PartialEq for SidebarItem
impl PartialEq for SidebarItem
impl Eq 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 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