pub struct StaticApprovalPort { /* private fields */ }Expand description
Runtime static approval policy.
Implementations§
Source§impl StaticApprovalPort
impl StaticApprovalPort
pub fn new(mode: StaticApprovalMode, deny_tools: Vec<String>) -> Self
Trait Implementations§
Source§impl ApprovalPort for StaticApprovalPort
impl ApprovalPort for StaticApprovalPort
Source§fn approve_tool_call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolCall,
_context: &'life2 ApprovalContext,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDecision, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn approve_tool_call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolCall,
_context: &'life2 ApprovalContext,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDecision, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Decide whether the tool call may proceed.
Source§impl Clone for StaticApprovalPort
impl Clone for StaticApprovalPort
Source§fn clone(&self) -> StaticApprovalPort
fn clone(&self) -> StaticApprovalPort
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StaticApprovalPort
impl RefUnwindSafe for StaticApprovalPort
impl Send for StaticApprovalPort
impl Sync for StaticApprovalPort
impl Unpin for StaticApprovalPort
impl UnsafeUnpin for StaticApprovalPort
impl UnwindSafe for StaticApprovalPort
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