pub struct ShortcutBlock {
pub section: &'static str,
pub entries: &'static [ShortcutEntry],
pub priority: u8,
}Expand description
A named group of shortcut entries, one per lib (Core, Redmine, …).
Each lib that registers shortcuts produces exactly one ShortcutBlock.
The orchestrator collects all blocks and renders them section by section
in the help popup, sorted by priority (lowest first).
Fields§
§section: &'static strSection header rendered above the entries (e.g. "Core", "Redmine").
entries: &'static [ShortcutEntry]Ordered list of shortcut entries belonging to this section.
priority: u8Display priority — lower values appear first in the help popup.
Convention:
0→ Core (always first)100→ first-party tracker plugins (Redmine, Jira, …)200→ third-party / community plugins
Auto Trait Implementations§
impl Freeze for ShortcutBlock
impl RefUnwindSafe for ShortcutBlock
impl Send for ShortcutBlock
impl Sync for ShortcutBlock
impl Unpin for ShortcutBlock
impl UnsafeUnpin for ShortcutBlock
impl UnwindSafe for ShortcutBlock
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