pub struct MenuItem {
pub label: String,
pub action: String,
pub disabled: bool,
pub destructive: bool,
pub shortcut: Option<String>,
}Expand description
A single menu item
Fields§
§label: String§action: String§disabled: bool§destructive: bool§shortcut: Option<String>Optional keyboard shortcut displayed on the right (e.g. “⌘Z”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
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