pub struct Command {
pub id: Symbol,
pub label: String,
pub kind: CommandKind,
}Expand description
One palette command: a stable id, a human label, and the kind of Intent it reduces to.
Fields§
§id: SymbolStable command id (for example run or open-source).
label: StringHuman-readable label shown in the palette and matched by the filter.
kind: CommandKindThe kind of Intent palette_intent produces for this command.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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