pub struct PermissionRequestCustomTool {
pub args: Option<Value>,
pub kind: PermissionRequestCustomToolKind,
pub managed_approval_required: Option<bool>,
pub tool_call_id: Option<String>,
pub tool_description: String,
pub tool_name: String,
}Expand description
Custom tool invocation permission request
Fields§
§args: Option<Value>Arguments to pass to the custom tool
kind: PermissionRequestCustomToolKindPermission kind discriminator
managed_approval_required: Option<bool>When true, managed policy requires an explicit user decision and automatic approval must be bypassed.
tool_call_id: Option<String>Tool call ID that triggered this permission request
tool_description: StringDescription of what the custom tool does
tool_name: StringName of the custom tool
Trait Implementations§
Source§impl Clone for PermissionRequestCustomTool
impl Clone for PermissionRequestCustomTool
Source§fn clone(&self) -> PermissionRequestCustomTool
fn clone(&self) -> PermissionRequestCustomTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PermissionRequestCustomTool
impl Debug for PermissionRequestCustomTool
Source§impl Default for PermissionRequestCustomTool
impl Default for PermissionRequestCustomTool
Source§fn default() -> PermissionRequestCustomTool
fn default() -> PermissionRequestCustomTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionRequestCustomTool
impl<'de> Deserialize<'de> for PermissionRequestCustomTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PermissionRequestCustomTool
impl RefUnwindSafe for PermissionRequestCustomTool
impl Send for PermissionRequestCustomTool
impl Sync for PermissionRequestCustomTool
impl Unpin for PermissionRequestCustomTool
impl UnsafeUnpin for PermissionRequestCustomTool
impl UnwindSafe for PermissionRequestCustomTool
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