pub struct CliApprovalHandler {
pub auto_approve: bool,
pub timeout: u64,
}Expand description
CLI-side approval handler that wraps the TTY prompt logic.
Designed to be compatible with the apcore ApprovalHandler trait/protocol.
Pass to Executor via executor.set_approval_handler(handler) if available.
Fields§
§auto_approve: boolIf true, all approvals are auto-granted (–yes flag).
timeout: u64Timeout in seconds for interactive prompts.
Implementations§
Auto Trait Implementations§
impl Freeze for CliApprovalHandler
impl RefUnwindSafe for CliApprovalHandler
impl Send for CliApprovalHandler
impl Sync for CliApprovalHandler
impl Unpin for CliApprovalHandler
impl UnsafeUnpin for CliApprovalHandler
impl UnwindSafe for CliApprovalHandler
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