pub struct HotkeyConfig {
pub id: Option<String>,
pub combo: String,
pub title: Option<String>,
}Expand description
A global hotkey declared in configuration.
id is an optional stable identifier echoed back to the handler; combo
is parsed by [crate::hotkeys::Hotkey::from_str] (case-insensitive,
+-separated modifiers, e.g. "Ctrl+Shift+K").
Fields§
§id: Option<String>Stable identifier for this hotkey (echoed to the handler). If omitted, the list index is used.
combo: StringKey combination string, e.g. “Alt+F4”, “Meta+Shift+P”.
title: Option<String>Optional human-readable title (shown in UI lists).
Trait Implementations§
Source§impl Clone for HotkeyConfig
impl Clone for HotkeyConfig
Source§fn clone(&self) -> HotkeyConfig
fn clone(&self) -> HotkeyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotkeyConfig
impl Debug for HotkeyConfig
Source§impl<'de> Deserialize<'de> for HotkeyConfig
impl<'de> Deserialize<'de> for HotkeyConfig
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 HotkeyConfig
impl RefUnwindSafe for HotkeyConfig
impl Send for HotkeyConfig
impl Sync for HotkeyConfig
impl Unpin for HotkeyConfig
impl UnsafeUnpin for HotkeyConfig
impl UnwindSafe for HotkeyConfig
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