pub struct AllowAllFilter;Expand description
A filter that lets every call through unchanged.
Useful for tests, opt-out scenarios, and as a baseline for chains that only add policy filters.
Trait Implementations§
Source§impl Clone for AllowAllFilter
impl Clone for AllowAllFilter
Source§fn clone(&self) -> AllowAllFilter
fn clone(&self) -> AllowAllFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowAllFilter
impl Debug for AllowAllFilter
Source§impl Default for AllowAllFilter
impl Default for AllowAllFilter
Source§fn default() -> AllowAllFilter
fn default() -> AllowAllFilter
Returns the “default value” for a type. Read more
Source§impl ToolUseHook for AllowAllFilter
impl ToolUseHook for AllowAllFilter
Source§fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
calls: Vec<ToolCallPayload>,
_ctx: &'life1 HookCtx<'life2>,
) -> Pin<Box<dyn Future<Output = HookOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
calls: Vec<ToolCallPayload>,
_ctx: &'life1 HookCtx<'life2>,
) -> Pin<Box<dyn Future<Output = HookOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Filter the model-emitted batch between receipt and dispatch:
return what to execute and what to reject.
Auto Trait Implementations§
impl Freeze for AllowAllFilter
impl RefUnwindSafe for AllowAllFilter
impl Send for AllowAllFilter
impl Sync for AllowAllFilter
impl Unpin for AllowAllFilter
impl UnsafeUnpin for AllowAllFilter
impl UnwindSafe for AllowAllFilter
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