pub enum PermissionResult {
Allow(PermissionResultAllow),
Deny(PermissionResultDeny),
}Expand description
Union type for permission callback results.
Returned by CanUseToolCallback functions to indicate whether a tool call
should be allowed or denied.
Variants§
Allow(PermissionResultAllow)
Approve the tool call with optional adjusted input/permissions.
Deny(PermissionResultDeny)
Reject the tool call.
Trait Implementations§
Source§impl Clone for PermissionResult
impl Clone for PermissionResult
Source§fn clone(&self) -> PermissionResult
fn clone(&self) -> PermissionResult
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 moreSource§impl Debug for PermissionResult
impl Debug for PermissionResult
Source§impl PartialEq for PermissionResult
impl PartialEq for PermissionResult
impl StructuralPartialEq for PermissionResult
Auto Trait Implementations§
impl Freeze for PermissionResult
impl RefUnwindSafe for PermissionResult
impl Send for PermissionResult
impl Sync for PermissionResult
impl Unpin for PermissionResult
impl UnsafeUnpin for PermissionResult
impl UnwindSafe for PermissionResult
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