pub struct MenuSpec {
pub app_name: String,
pub groups: Vec<MenuGroup>,
pub help: Vec<MenuEntry>,
pub settings: Option<(String, String)>,
}Fields§
§app_name: String§groups: Vec<MenuGroup>Extra top-level menus, placed after Edit/View.
help: Vec<MenuEntry>Entries appended to Help.
settings: Option<(String, String)>Some((id, accelerator)) adds “Settings…” to the app menu (macOS) / File menu.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuSpec
impl RefUnwindSafe for MenuSpec
impl Send for MenuSpec
impl Sync for MenuSpec
impl Unpin for MenuSpec
impl UnsafeUnpin for MenuSpec
impl UnwindSafe for MenuSpec
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