pub struct CommandItem {
pub label: String,
pub shortcut: Option<String>,
pub group: Option<String>,
pub disabled: bool,
}Expand description
A single command item in the palette
Fields§
§label: StringDisplay label for the command
shortcut: Option<String>Optional keyboard shortcut (e.g., “⌘N”)
group: Option<String>Optional group name for categorization
disabled: boolWhether the item is disabled
Trait Implementations§
Source§impl Clone for CommandItem
impl Clone for CommandItem
Source§fn clone(&self) -> CommandItem
fn clone(&self) -> CommandItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandItem
impl RefUnwindSafe for CommandItem
impl Send for CommandItem
impl Sync for CommandItem
impl Unpin for CommandItem
impl UnsafeUnpin for CommandItem
impl UnwindSafe for CommandItem
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