pub struct SidenavItem<'a> {
pub label: &'a str,
pub href: &'a str,
pub badge: Option<&'a str>,
pub coming_soon: Option<&'a str>,
pub active: bool,
pub muted: bool,
pub disabled: bool,
pub attrs: &'a [HtmlAttr<'a>],
}Fields§
§label: &'a str§href: &'a str§badge: Option<&'a str>§coming_soon: Option<&'a str>§active: bool§muted: bool§disabled: bool§attrs: &'a [HtmlAttr<'a>]Implementations§
pub const fn link(label: &'a str, href: &'a str) -> Self
pub const fn active(self) -> Self
pub const fn muted(self) -> Self
pub const fn disabled(self) -> Self
pub const fn with_badge(self, badge: &'a str) -> Self
pub const fn with_coming_soon(self, coming_soon: &'a str) -> Self
pub const fn with_attrs(self, attrs: &'a [HtmlAttr<'a>]) -> Self
pub fn class_name(&self) -> &'static str
Trait Implementations§
Source§fn clone(&self) -> SidenavItem<'a>
fn clone(&self) -> SidenavItem<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn eq(&self, other: &SidenavItem<'a>) -> bool
fn eq(&self, other: &SidenavItem<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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