# Struct `kurogane::ContextMenuCommand`

```rust
pub struct ContextMenuCommand { /* private fields */ }
```

An item of the application's chosen, passed to
[`App::on_context_menu_command`](https://kurogane-rs.org/docs/api/app/app.md#method.on_context_menu_command).

[crate::App::on_context_menu_command]: https://kurogane-rs.org/docs/api/app/app.md#method.on_context_menu_command

## Methods

### `id`

```rust
pub fn id(&self) -> &str
```

The item's id, as [`MenuItem::new`] gave it.

[`MenuItem::new`]: https://kurogane-rs.org/docs/api/requests/menuitem.md#method.new

### `target`

```rust
pub fn target(&self) -> &ContextMenuTarget
```

What the right-click that opened the menu was on.

## Trait implementations

- `impl Clone for ContextMenuCommand`
- `impl Debug for ContextMenuCommand`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/context_menu.rs#L403
