pub struct McpMenu {
pub title: String,
pub details: Option<String>,
pub error: Option<String>,
pub items: Vec<AutocompleteItem>,
pub empty: String,
pub selected: Option<String>,
pub confirm_label: String,
pub cancel_label: String,
}Expand description
pi’s McpMenu: a menu of the /mcp manager.
Fields§
§title: StringThe title.
details: Option<String>Shown below the title.
error: Option<String>Shown below the details in the error color.
items: Vec<AutocompleteItem>The items.
empty: StringShown when there are no items.
selected: Option<String>Value of the item selected when the menu opens.
confirm_label: StringWhat the confirm key does, for the key hint.
cancel_label: StringWhat the cancel key does, for the key hint.
Trait Implementations§
impl StructuralPartialEq for McpMenu
Auto Trait Implementations§
impl Forget for McpMenu
impl Freeze for McpMenu
impl RefUnwindSafe for McpMenu
impl Send for McpMenu
impl Sync for McpMenu
impl Unpin for McpMenu
impl UnsafeUnpin for McpMenu
impl UnwindSafe for McpMenu
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