pub struct KeyEntry {
pub keys: &'static [&'static str],
pub category: Category,
pub description: &'static str,
pub command: Command,
pub command_name: &'static str,
}Fields§
§keys: &'static [&'static str]Human-readable display strings, e.g. &["j", "↓", "Enter"]. The first
entry is the canonical one shown when help has no extra room.
category: Category§description: &'static str§command: Command§command_name: &'static strStable name used for keys.toml remapping (kebab-case).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyEntry
impl RefUnwindSafe for KeyEntry
impl Send for KeyEntry
impl Sync for KeyEntry
impl Unpin for KeyEntry
impl UnsafeUnpin for KeyEntry
impl UnwindSafe for KeyEntry
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