pub struct CommandAction {
pub id: String,
pub title: String,
pub subtitle: String,
pub category: String,
pub icon: String,
pub shortcut: Option<String>,
pub handler: Rc<dyn Fn()>,
}Expand description
An individual action or route inside the Command Palette.
Fields§
§id: String§title: String§subtitle: String§category: String§icon: String§shortcut: Option<String>§handler: Rc<dyn Fn()>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CommandAction
impl !Send for CommandAction
impl !Sync for CommandAction
impl !UnwindSafe for CommandAction
impl Freeze for CommandAction
impl Unpin for CommandAction
impl UnsafeUnpin for CommandAction
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