pub enum PermissionDecision {
Allow,
Deny(String),
Ask(String),
}Expand description
Decision from a permission check.
Variants§
Allow
Tool execution is allowed.
Deny(String)
Tool execution is denied with a reason.
Ask(String)
User should be prompted with this message.
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