pub struct AlwaysDeny;Expand description
Always denies (negative tests).
Trait Implementations§
Source§impl ApprovalGate for AlwaysDeny
impl ApprovalGate for AlwaysDeny
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, MachiError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
AlwaysDeny: '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, MachiError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
AlwaysDeny: 'async_trait,
Decide whether
tool may run with arguments.Source§impl Clone for AlwaysDeny
impl Clone for AlwaysDeny
Source§fn clone(&self) -> AlwaysDeny
fn clone(&self) -> AlwaysDeny
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 AlwaysDeny
Source§impl Debug for AlwaysDeny
impl Debug for AlwaysDeny
Source§impl Default for AlwaysDeny
impl Default for AlwaysDeny
Source§fn default() -> AlwaysDeny
fn default() -> AlwaysDeny
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AlwaysDeny
impl RefUnwindSafe for AlwaysDeny
impl Send for AlwaysDeny
impl Sync for AlwaysDeny
impl Unpin for AlwaysDeny
impl UnsafeUnpin for AlwaysDeny
impl UnwindSafe for AlwaysDeny
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