pub struct NavigationItem {
pub label: String,
pub target: NavTarget,
pub order: i32,
pub icon: Option<IconData>,
}Expand description
A sidebar entry: a resource’s, from its ResourceDef, or a Page’s.
Fields§
§label: String§target: NavTargetWhere this entry points.
order: i32Sort key for the sidebar.
icon: Option<IconData>The icon before the label, if any.
Implementations§
Trait 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