pub struct Shortcut {
pub id: String,
pub accelerator: String,
}Expand description
One accelerator the product wants to own.
Fields§
§id: StringStable id so the product can tell which shortcut fired.
accelerator: StringPlatform-neutral accelerator, e.g. "CmdOrCtrl+Shift+Space".
Implementations§
Trait Implementations§
impl Eq for Shortcut
impl StructuralPartialEq for Shortcut
Auto Trait Implementations§
impl Freeze for Shortcut
impl RefUnwindSafe for Shortcut
impl Send for Shortcut
impl Sync for Shortcut
impl Unpin for Shortcut
impl UnsafeUnpin for Shortcut
impl UnwindSafe for Shortcut
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