pub enum PolicyOutcome {
Allow,
Confirm(String),
Deny(String),
}Expand description
The outcome of a policy evaluation.
Variants§
Allow
Allow the tool call to proceed.
Confirm(String)
Require user confirmation before proceeding.
Deny(String)
Deny the tool call with a reason.
Trait Implementations§
Source§impl Clone for PolicyOutcome
impl Clone for PolicyOutcome
Source§fn clone(&self) -> PolicyOutcome
fn clone(&self) -> PolicyOutcome
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 PolicyOutcome
impl RefUnwindSafe for PolicyOutcome
impl Send for PolicyOutcome
impl Sync for PolicyOutcome
impl Unpin for PolicyOutcome
impl UnsafeUnpin for PolicyOutcome
impl UnwindSafe for PolicyOutcome
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