(id: CommandId, label: &'static str, icon: IconName)
| 60 | } |
| 61 | |
| 62 | impl Command { |
| 63 | pub const fn new(id: CommandId, label: &'static str, _icon: IconName) -> Self { |
| 64 | Self { |
| 65 | id, |
| 66 | label, |
| 67 | shortcut: None, |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | pub const fn with_shortcut(mut self, shortcut: &'static str) -> Self { |
| 72 | self.shortcut = Some(shortcut); |
no test coverage detected