pub struct ToolExecutionStartShellToolInfo {
pub has_write_file_redirection: bool,
pub possible_paths: Vec<String>,
}Expand description
Shell-aware path hints for a shell tool’s command, captured at start time so consumers can snapshot a file’s pre-image before the tool runs.
Fields§
§has_write_file_redirection: boolWhether the command includes a file write redirection (e.g., > or >>).
possible_paths: Vec<String>File paths the command may read or write, derived from the command at start time. Produced by the same shell-aware extractor as PermissionRequestShell.possiblePaths, so it is present even when the command is auto-approved and no permission request fires.
Trait Implementations§
Source§impl Clone for ToolExecutionStartShellToolInfo
impl Clone for ToolExecutionStartShellToolInfo
Source§fn clone(&self) -> ToolExecutionStartShellToolInfo
fn clone(&self) -> ToolExecutionStartShellToolInfo
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 Default for ToolExecutionStartShellToolInfo
impl Default for ToolExecutionStartShellToolInfo
Source§fn default() -> ToolExecutionStartShellToolInfo
fn default() -> ToolExecutionStartShellToolInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolExecutionStartShellToolInfo
impl<'de> Deserialize<'de> for ToolExecutionStartShellToolInfo
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 ToolExecutionStartShellToolInfo
impl RefUnwindSafe for ToolExecutionStartShellToolInfo
impl Send for ToolExecutionStartShellToolInfo
impl Sync for ToolExecutionStartShellToolInfo
impl Unpin for ToolExecutionStartShellToolInfo
impl UnsafeUnpin for ToolExecutionStartShellToolInfo
impl UnwindSafe for ToolExecutionStartShellToolInfo
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