pub struct AutoApprovalHandler { /* private fields */ }Expand description
I/O-free approval handler — pure strategy, suitable for all consumers.
Use ApprovalMode::Auto for automated/CI scenarios, or
ApprovalMode::DenyAll for read-only / preview modes.
Implementations§
Source§impl AutoApprovalHandler
impl AutoApprovalHandler
Sourcepub fn new(mode: ApprovalMode) -> Self
pub fn new(mode: ApprovalMode) -> Self
Create a new handler with the given approval strategy.
Trait Implementations§
Source§impl ApprovalHandler for AutoApprovalHandler
impl ApprovalHandler for AutoApprovalHandler
fn approve<'life0, 'async_trait>(
&'life0 self,
request: ApprovalRequest,
_cancel_token: CancellationToken,
) -> Pin<Box<dyn Future<Output = AgentResult<ApprovalDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for AutoApprovalHandler
impl RefUnwindSafe for AutoApprovalHandler
impl Send for AutoApprovalHandler
impl Sync for AutoApprovalHandler
impl Unpin for AutoApprovalHandler
impl UnsafeUnpin for AutoApprovalHandler
impl UnwindSafe for AutoApprovalHandler
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