pub enum ToolValidationDecision {
Accept,
Reject(RunFailure),
Defer,
}Expand description
Middleware decision returned by a tool validator.
Variants§
Accept
Accept the tool response and stop the validation chain.
Reject(RunFailure)
Reject the tool response with a failure.
Defer
Defer to the next validator in the chain.
Trait Implementations§
Source§impl Clone for ToolValidationDecision
impl Clone for ToolValidationDecision
Source§fn clone(&self) -> ToolValidationDecision
fn clone(&self) -> ToolValidationDecision
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 ToolValidationDecision
impl RefUnwindSafe for ToolValidationDecision
impl Send for ToolValidationDecision
impl Sync for ToolValidationDecision
impl Unpin for ToolValidationDecision
impl UnwindSafe for ToolValidationDecision
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