pub enum Modal {
Approval(PendingApprovalRequest),
ChildApproval(PendingChildApproval),
Elicitation {
request: PendingElicitation,
answer: String,
},
OAuthDeviceCode(PendingOAuthDisplay),
}Expand description
An interactive modal covering the composer — at most one at a time
(§2.28: approval / elicitation / child-approval / OAuth-code-display).
A later request queues behind the earlier one still on screen (see
TuiState::modal_queue) rather than clobbering it.
Variants§
Approval(PendingApprovalRequest)
P5-1’s Ask-tier decision, surfaced interactively (closes the
deferred tui-implements-the-ask-UI chain).
ChildApproval(PendingChildApproval)
P5-3 §2.2 C6’s queued child approval, now answerable (closes that deferred chain).
Elicitation
P5-2’s MCP elicitation/create, with the free-text answer buffer
the (deliberately basic — see the crate doc comment) form widget
accumulates.
Fields
§
request: PendingElicitationThe server’s request (message + schema) plus reply channel.
OAuthDeviceCode(PendingOAuthDisplay)
P5-2’s OAuth device-code display — no reply, dismiss-only.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Modal
impl !UnwindSafe for Modal
impl Freeze for Modal
impl Send for Modal
impl Sync for Modal
impl Unpin for Modal
impl UnsafeUnpin for Modal
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