pub struct PermissionResultAllow {
pub updated_input: Option<Value>,
pub updated_permissions: Option<Vec<PermissionUpdate>>,
}Expand description
Result indicating the tool call should be allowed.
Returned from a CanUseToolCallback to approve tool execution.
§Fields
updated_input— Optional modified input to use instead of the original.updated_permissions— Optional permission updates to apply alongside this approval.
Fields§
§updated_input: Option<Value>Optional rewritten tool input payload.
updated_permissions: Option<Vec<PermissionUpdate>>Optional additional permission updates to apply.
Trait Implementations§
Source§impl Clone for PermissionResultAllow
impl Clone for PermissionResultAllow
Source§fn clone(&self) -> PermissionResultAllow
fn clone(&self) -> PermissionResultAllow
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 PermissionResultAllow
impl Debug for PermissionResultAllow
Source§impl Default for PermissionResultAllow
impl Default for PermissionResultAllow
Source§fn default() -> PermissionResultAllow
fn default() -> PermissionResultAllow
Returns the “default value” for a type. Read more
Source§impl PartialEq for PermissionResultAllow
impl PartialEq for PermissionResultAllow
impl StructuralPartialEq for PermissionResultAllow
Auto Trait Implementations§
impl Freeze for PermissionResultAllow
impl RefUnwindSafe for PermissionResultAllow
impl Send for PermissionResultAllow
impl Sync for PermissionResultAllow
impl Unpin for PermissionResultAllow
impl UnsafeUnpin for PermissionResultAllow
impl UnwindSafe for PermissionResultAllow
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