pub struct WithDefault<P> { /* private fields */ }Expand description
Approval policy created by with_default.
Trait Implementations§
Source§impl<P: ApprovalPolicy> ApprovalPolicy for WithDefault<P>
impl<P: ApprovalPolicy> ApprovalPolicy for WithDefault<P>
Source§fn resolve<'a>(
&'a self,
call: &'a ParsedToolCall,
ctx: ApprovalContext<'a>,
) -> BoxFuture<'a, Option<ApprovalStatus>>
fn resolve<'a>( &'a self, call: &'a ParsedToolCall, ctx: ApprovalContext<'a>, ) -> BoxFuture<'a, Option<ApprovalStatus>>
Resolves the approval status of
call.Auto Trait Implementations§
impl<P> Freeze for WithDefault<P>where
P: Freeze,
impl<P> RefUnwindSafe for WithDefault<P>where
P: RefUnwindSafe,
impl<P> Send for WithDefault<P>where
P: Send,
impl<P> Sync for WithDefault<P>where
P: Sync,
impl<P> Unpin for WithDefault<P>where
P: Unpin,
impl<P> UnsafeUnpin for WithDefault<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for WithDefault<P>where
P: UnwindSafe,
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