pub struct DesktopMenuItem {
pub id: String,
pub label: String,
pub command: Option<String>,
pub accelerator: Option<String>,
}Expand description
Native menu item descriptor.
Fields§
§id: StringStable item identifier.
label: StringVisible item label.
command: Option<String>Optional desktop IPC command invoked by this menu item.
accelerator: Option<String>Optional keyboard accelerator in platform-neutral text form.
Trait Implementations§
Source§impl Clone for DesktopMenuItem
impl Clone for DesktopMenuItem
Source§impl Debug for DesktopMenuItem
impl Debug for DesktopMenuItem
Source§impl<'de> Deserialize<'de> for DesktopMenuItem
impl<'de> Deserialize<'de> for DesktopMenuItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DesktopMenuItem
impl RefUnwindSafe for DesktopMenuItem
impl Send for DesktopMenuItem
impl Sync for DesktopMenuItem
impl Unpin for DesktopMenuItem
impl UnsafeUnpin for DesktopMenuItem
impl UnwindSafe for DesktopMenuItem
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