pub enum MenuNode {
Empty,
Menu {
id: i32,
label: String,
enabled: bool,
visible: bool,
children: Vec<Self>,
},
Item {
id: i32,
label: String,
enabled: bool,
visible: bool,
icon_name: String,
icon_data: IconData,
toggle_type: ToggleType,
toggle_state: ToggleState,
},
Separator {
id: i32,
visible: bool,
},
}Expand description
Variants§
Empty
The item doesn’t have a menu, or the menu hasn’t been retrieved yet.
Menu
A (sub)menu containing other nodes.
Fields
Item
An entry of a menu.
Fields
§
toggle_type: ToggleTypeHow the entry can be toggled.
§
toggle_state: ToggleStateThe current toggle state of the entry.
Separator
A separator between entries.
Trait Implementations§
impl StructuralPartialEq for MenuNode
Auto Trait Implementations§
impl Freeze for MenuNode
impl RefUnwindSafe for MenuNode
impl Send for MenuNode
impl Sync for MenuNode
impl Unpin for MenuNode
impl UnsafeUnpin for MenuNode
impl UnwindSafe for MenuNode
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