pub struct Binding {
pub key: KeyCode,
pub modifiers: Option<KeyModifiers>,
pub display: String,
pub description: String,
pub visible: bool,
}Expand description
A single key binding with display text and description.
Fields§
§key: KeyCodeThe key code for matching.
modifiers: Option<KeyModifiers>Optional modifier (Ctrl, Alt, Shift).
display: StringDisplay text shown in help bar (e.g., “q”, “Ctrl+S”, “↑”).
description: StringDescription of what this binding does.
visible: boolWhether to show in help bar.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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