pub enum ApprovalDecision {
Allow,
Deny(String),
Modify(Value),
}Expand description
Decision returned by an approval check function.
Variants§
Allow
Allow the tool call to proceed.
Deny(String)
Deny the tool call with an error message.
Modify(Value)
Modify the tool call arguments before proceeding.
Trait Implementations§
Source§impl Clone for ApprovalDecision
impl Clone for ApprovalDecision
Source§fn clone(&self) -> ApprovalDecision
fn clone(&self) -> ApprovalDecision
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 ApprovalDecision
impl RefUnwindSafe for ApprovalDecision
impl Send for ApprovalDecision
impl Sync for ApprovalDecision
impl Unpin for ApprovalDecision
impl UnwindSafe for ApprovalDecision
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