pub struct MenuSpec {
pub id: Option<MenuId>,
pub title: Option<String>,
pub items: Vec<MenuItemSpec>,
}Expand description
Specification for a menu or submenu hierarchy.
Fields§
§id: Option<MenuId>Unique menu identifier, if registered.
title: Option<String>Optional menu title (for submenus or top-level bar items).
items: Vec<MenuItemSpec>Items contained within this menu.
Implementations§
Trait Implementations§
impl Eq for MenuSpec
impl StructuralPartialEq for MenuSpec
Auto Trait Implementations§
impl Forget for MenuSpec
impl Freeze for MenuSpec
impl Move for MenuSpec
impl RefUnwindSafe for MenuSpec
impl Send for MenuSpecwhere
RawVecInner: Send,
impl Sync for MenuSpecwhere
RawVecInner: Sync,
impl Unpin for MenuSpec
impl UnsafeUnpin for MenuSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MenuItemSpec>: UnsafeUnpin,
impl UnwindSafe for MenuSpecwhere
RawVecInner: UnwindSafe,
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