pub enum Item {
Command {
id: CommandId,
args: Value,
label: Option<String>,
},
Submenu {
menu: MenuId,
label: String,
},
List {
name: String,
},
}Expand description
What an item is.
Variants§
Command
A command, with the arguments it runs with, and a label of its own (else the command’s title).
Another menu, shown under a label.
List
Entries the application makes when the menu opens.
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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