1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Clone, Debug)] pub struct HotkeyItem { pub key: String, pub description: String, } impl HotkeyItem { pub fn new(key: impl Into<String>, description: impl Into<String>) -> Self { Self { key: key.into(), description: description.into(), } } }