pub struct PermissionPromptRequestCommands {
pub can_offer_session_approval: bool,
pub command_identifiers: Vec<String>,
pub full_command_text: String,
pub intention: String,
pub kind: PermissionPromptRequestCommandsKind,
pub tool_call_id: Option<String>,
pub warning: Option<String>,
}Expand description
Shell command permission prompt
Fields§
§can_offer_session_approval: boolWhether the UI can offer session-wide approval for this command pattern
command_identifiers: Vec<String>Command identifiers covered by this approval prompt
full_command_text: StringThe complete shell command text to be executed
intention: StringHuman-readable description of what the command intends to do
kind: PermissionPromptRequestCommandsKindPrompt kind discriminator
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 PermissionPromptRequestCommands
impl Clone for PermissionPromptRequestCommands
Source§fn clone(&self) -> PermissionPromptRequestCommands
fn clone(&self) -> PermissionPromptRequestCommands
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<'de> Deserialize<'de> for PermissionPromptRequestCommands
impl<'de> Deserialize<'de> for PermissionPromptRequestCommands
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 PermissionPromptRequestCommands
impl RefUnwindSafe for PermissionPromptRequestCommands
impl Send for PermissionPromptRequestCommands
impl Sync for PermissionPromptRequestCommands
impl Unpin for PermissionPromptRequestCommands
impl UnsafeUnpin for PermissionPromptRequestCommands
impl UnwindSafe for PermissionPromptRequestCommands
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