pub struct ApprovalItem {
pub request: ApprovalRequest,
pub decision_tx: Sender<ApprovalDecision>,
}Expand description
A pending approval request handed to the UI, carrying the channel the user’s decision is returned on.
Fields§
§request: ApprovalRequestThe request to render (title, message, risk level, raw args).
decision_tx: Sender<ApprovalDecision>Complete this to deliver the user’s decision back to the runtime.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApprovalItem
impl !UnwindSafe for ApprovalItem
impl Freeze for ApprovalItem
impl Send for ApprovalItem
impl Sync for ApprovalItem
impl Unpin for ApprovalItem
impl UnsafeUnpin for ApprovalItem
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