pub struct PermissionResultDeny {
pub message: String,
pub interrupt: bool,
}Expand description
Result indicating the tool call should be denied.
Returned from a CanUseToolCallback to reject tool execution.
§Fields
message— Message explaining why the tool was denied.interrupt— Whether to interrupt the current execution entirely.
Fields§
§message: StringHuman-readable denial reason.
interrupt: boolWhether processing should be interrupted after denial.
Trait Implementations§
Source§impl Clone for PermissionResultDeny
impl Clone for PermissionResultDeny
Source§fn clone(&self) -> PermissionResultDeny
fn clone(&self) -> PermissionResultDeny
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 PermissionResultDeny
impl Debug for PermissionResultDeny
Source§impl Default for PermissionResultDeny
impl Default for PermissionResultDeny
Source§fn default() -> PermissionResultDeny
fn default() -> PermissionResultDeny
Returns the “default value” for a type. Read more
Source§impl PartialEq for PermissionResultDeny
impl PartialEq for PermissionResultDeny
impl StructuralPartialEq for PermissionResultDeny
Auto Trait Implementations§
impl Freeze for PermissionResultDeny
impl RefUnwindSafe for PermissionResultDeny
impl Send for PermissionResultDeny
impl Sync for PermissionResultDeny
impl Unpin for PermissionResultDeny
impl UnsafeUnpin for PermissionResultDeny
impl UnwindSafe for PermissionResultDeny
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