pub struct NavRailItem {
pub icon: View,
pub label: String,
pub on_click: Rc<dyn Fn()>,
pub badge: Option<View>,
pub enabled: bool,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
A destination entry inside a NavigationRail.
Fields§
§icon: View§label: String§on_click: Rc<dyn Fn()>§badge: Option<View>§enabled: bool§interaction_source: Option<MutableInteractionSource>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