pub struct PlanApprovalRequest {
pub plan_content: String,
pub response_tx: Sender<PlanDecision>,
}Expand description
A request sent from PresentPlanTool to the TUI for user approval.
The tool creates a oneshot channel, sends this struct through an mpsc
channel, and then awaits the oneshot receiver. The TUI displays the
plan, collects the user’s decision, and sends it back via response_tx.
Fields§
§plan_content: StringThe full plan content to display.
response_tx: Sender<PlanDecision>Oneshot sender the TUI uses to return the user’s decision.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlanApprovalRequest
impl !RefUnwindSafe for PlanApprovalRequest
impl Send for PlanApprovalRequest
impl Sync for PlanApprovalRequest
impl Unpin for PlanApprovalRequest
impl UnsafeUnpin for PlanApprovalRequest
impl !UnwindSafe for PlanApprovalRequest
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