pub struct NavItem {
pub label: String,
pub url: String,
pub active: bool,
}Expand description
A navigation link item.
Fields§
§label: StringDisplay label for the link.
url: StringURL the link points to.
active: boolWhether this item represents the current page.
Implementations§
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