pub struct MenuKey {
pub label: Option<String>,
pub command: Option<String>,
pub submenu: Option<u32>,
}Expand description
One key of a menu as its definition gives it.
Fields§
§label: Option<String>The label it shows when that is not its command’s name (a
{ label action } key), else None.
command: Option<String>The one command it runs, if it runs exactly one named command.
The menu it switches to.
Implementations§
Trait Implementations§
impl Eq for MenuKey
impl StructuralPartialEq for MenuKey
Auto Trait Implementations§
impl Freeze for MenuKey
impl RefUnwindSafe for MenuKey
impl Send for MenuKey
impl Sync for MenuKey
impl Unpin for MenuKey
impl UnsafeUnpin for MenuKey
impl UnwindSafe for MenuKey
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