pub struct AutoApprove;Expand description
Always allows (library tests / trusted offline hosts).
Trait Implementations§
Source§impl ApprovalGate for AutoApprove
impl ApprovalGate for AutoApprove
Source§fn approve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_tool: &'life1 dyn DynTool,
_metadata: &'life2 ToolMetadata,
_arguments: &'life3 Value,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDecision, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn approve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_tool: &'life1 dyn DynTool,
_metadata: &'life2 ToolMetadata,
_arguments: &'life3 Value,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDecision, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Decide whether
tool may run with arguments.Source§impl Clone for AutoApprove
impl Clone for AutoApprove
Source§fn clone(&self) -> AutoApprove
fn clone(&self) -> AutoApprove
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 moreimpl Copy for AutoApprove
Source§impl Debug for AutoApprove
impl Debug for AutoApprove
Source§impl Default for AutoApprove
impl Default for AutoApprove
Source§fn default() -> AutoApprove
fn default() -> AutoApprove
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AutoApprove
impl RefUnwindSafe for AutoApprove
impl Send for AutoApprove
impl Sync for AutoApprove
impl Unpin for AutoApprove
impl UnsafeUnpin for AutoApprove
impl UnwindSafe for AutoApprove
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