pub struct ShellExecArgs {
pub cmd: String,
pub timeout_secs: Option<u64>,
pub cwd: Option<String>,
pub stdin: Option<String>,
}Expand description
Input parameters for ShellExec::execute.
Runs a shell command with an optional timeout and working directory. Dangerous commands (rm -rf /, dd, fork bombs) are rejected before execution.
Fields§
§cmd: StringShell command to execute (e.g. "ls -la", "cargo build").
timeout_secs: Option<u64>Maximum seconds before the process is killed (default: 30).
cwd: Option<String>Working directory for the command (default: executor CWD).
stdin: Option<String>Data piped to the command’s stdin.
Trait Implementations§
Source§impl Clone for ShellExecArgs
impl Clone for ShellExecArgs
Source§fn clone(&self) -> ShellExecArgs
fn clone(&self) -> ShellExecArgs
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 ShellExecArgs
impl Debug for ShellExecArgs
Source§impl<'de> Deserialize<'de> for ShellExecArgs
impl<'de> Deserialize<'de> for ShellExecArgs
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 ShellExecArgs
impl RefUnwindSafe for ShellExecArgs
impl Send for ShellExecArgs
impl Sync for ShellExecArgs
impl Unpin for ShellExecArgs
impl UnsafeUnpin for ShellExecArgs
impl UnwindSafe for ShellExecArgs
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