pub struct PermissionRequestShell {
pub can_offer_session_approval: bool,
pub commands: Vec<PermissionRequestShellCommand>,
pub full_command_text: String,
pub has_write_file_redirection: bool,
pub intention: String,
pub kind: PermissionRequestShellKind,
pub possible_paths: Vec<String>,
pub possible_urls: Vec<PermissionRequestShellPossibleUrl>,
pub tool_call_id: Option<String>,
pub warning: Option<String>,
}Expand description
Shell command permission request
Fields§
§can_offer_session_approval: boolWhether the UI can offer session-wide approval for this command pattern
commands: Vec<PermissionRequestShellCommand>Parsed command identifiers found in the command text
full_command_text: StringThe complete shell command text to be executed
has_write_file_redirection: boolWhether the command includes a file write redirection (e.g., > or >>)
intention: StringHuman-readable description of what the command intends to do
kind: PermissionRequestShellKindPermission kind discriminator
possible_paths: Vec<String>File paths that may be read or written by the command
possible_urls: Vec<PermissionRequestShellPossibleUrl>URLs that may be accessed by the command
tool_call_id: Option<String>Tool call ID that triggered this permission request
warning: Option<String>Optional warning message about risks of running this command
Trait Implementations§
Source§impl Clone for PermissionRequestShell
impl Clone for PermissionRequestShell
Source§fn clone(&self) -> PermissionRequestShell
fn clone(&self) -> PermissionRequestShell
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 PermissionRequestShell
impl Debug for PermissionRequestShell
Source§impl<'de> Deserialize<'de> for PermissionRequestShell
impl<'de> Deserialize<'de> for PermissionRequestShell
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 PermissionRequestShell
impl RefUnwindSafe for PermissionRequestShell
impl Send for PermissionRequestShell
impl Sync for PermissionRequestShell
impl Unpin for PermissionRequestShell
impl UnsafeUnpin for PermissionRequestShell
impl UnwindSafe for PermissionRequestShell
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