pub struct MenuEntry {
pub id: i32,
pub label: String,
pub separator: bool,
pub enabled: bool,
pub toggle: Option<MenuToggle>,
pub checked: bool,
pub submenu: bool,
pub children: Vec<MenuEntry>,
}Expand description
One entry of a Menu.
Fields§
§id: i32The app’s id for it, which the menu’s handlers get.
label: StringWhat it says.
separator: boolWhether it is a separator line rather than something to click.
enabled: boolWhether it can be clicked.
toggle: Option<MenuToggle>Whether it shows a checkmark or a radio button.
checked: boolWhether that checkmark or radio button is on.
Whether it opens a submenu. Some apps fill a submenu only when it
opens, so its children may still be empty.
children: Vec<MenuEntry>Its submenu’s entries.
Trait Implementations§
impl StructuralPartialEq for MenuEntry
Auto Trait Implementations§
impl Forget for MenuEntry
impl Freeze for MenuEntry
impl Move for MenuEntry
impl RefUnwindSafe for MenuEntry
impl Send for MenuEntry
impl Sync for MenuEntry
impl Unpin for MenuEntry
impl UnsafeUnpin for MenuEntry
impl UnwindSafe for MenuEntry
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