pub enum PermissionDecision {
Allow,
Deny(String),
Ask(String),
}Expand description
Decision from a permission check.
Variants§
Allow
Allow the tool call.
Deny(String)
Deny the tool call with a reason.
Ask(String)
Ask the user for confirmation.
Trait Implementations§
Source§impl Clone for PermissionDecision
impl Clone for PermissionDecision
Source§fn clone(&self) -> PermissionDecision
fn clone(&self) -> PermissionDecision
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 PermissionDecision
impl RefUnwindSafe for PermissionDecision
impl Send for PermissionDecision
impl Sync for PermissionDecision
impl Unpin for PermissionDecision
impl UnsafeUnpin for PermissionDecision
impl UnwindSafe for PermissionDecision
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