pub enum MenuContent {
Show 14 variants
None,
Slash(DropdownState<SlashCommand>),
Model(DropdownState<ModelItem>),
Provider(DropdownState<ProviderItem>),
ProviderModels(DropdownState<ModelItem>, ProviderType),
Key(DropdownState<ProviderItem>),
Session(DropdownState<SessionItem>),
File {
dropdown: DropdownState<FileItem>,
prefix: String,
},
WizardTrail(Vec<(String, String)>),
Approval {
id: String,
tool_name: String,
detail: String,
},
AskUser {
id: String,
question: String,
options: Vec<String>,
},
LoopCap,
PurgeConfirm {
min_age_days: u32,
detail: String,
},
HistorySearch {
query: String,
matches: Vec<String>,
selected: usize,
},
}Expand description
What’s currently shown in the menu_area below the status bar.
Only one menu can be active at a time.
Variants§
None
Nothing — menu_area is empty.
Slash(DropdownState<SlashCommand>)
Slash command dropdown (auto-appears on /).
Model(DropdownState<ModelItem>)
Model picker dropdown (/model with no args).
Provider(DropdownState<ProviderItem>)
Provider picker dropdown (/provider with no args).
ProviderModels(DropdownState<ModelItem>, ProviderType)
Provider model list — second step of /provider (pick provider → list its models).
Key(DropdownState<ProviderItem>)
Key management — pick a provider to set its API key (/key).
Session(DropdownState<SessionItem>)
Session picker dropdown (/sessions with no args).
File
File picker dropdown (auto-appears on @).
Fields
dropdown: DropdownState<FileItem>WizardTrail(Vec<(String, String)>)
Wizard trail — completed steps shown dimmed during multi-step flow.
Approval
Approval hotkey bar — shown during inference when engine requests approval.
AskUser
AskUser input bar — model is asking a clarifying question.
LoopCap
Loop cap hotkey bar — continue or stop after iteration limit.
PurgeConfirm
Purge confirmation bar — [y] confirm / [n] cancel.
HistorySearch
Ctrl+R reverse history search overlay.
Auto Trait Implementations§
impl Freeze for MenuContent
impl RefUnwindSafe for MenuContent
impl Send for MenuContent
impl Sync for MenuContent
impl Unpin for MenuContent
impl UnsafeUnpin for MenuContent
impl UnwindSafe for MenuContent
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more