pub struct TuiApprovalRequest {
pub tool_name: String,
pub arguments: String,
pub response: Sender<ApprovalChoice>,
}Expand description
Approval request sent from a TUI tool to the TUI event loop.
The tool sends this via an unbounded channel and awaits the response
on response. The TUI receives the request, shows the approval overlay,
and sends back the user’s choice via the oneshot channel.
Fields§
§tool_name: StringName of the tool requiring approval.
arguments: StringFormatted arguments for display.
response: Sender<ApprovalChoice>Channel to send the approval response back to the waiting tool.
Auto Trait Implementations§
impl !RefUnwindSafe for TuiApprovalRequest
impl !UnwindSafe for TuiApprovalRequest
impl Freeze for TuiApprovalRequest
impl Send for TuiApprovalRequest
impl Sync for TuiApprovalRequest
impl Unpin for TuiApprovalRequest
impl UnsafeUnpin for TuiApprovalRequest
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