pub struct ShellExecRequest {
pub command: String,
pub cwd: Option<String>,
pub timeout: Option<i64>,
}Expand description
Shell command to run, with optional working directory and timeout in milliseconds.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§command: StringShell command to execute
cwd: Option<String>Working directory (defaults to session working directory)
timeout: Option<i64>Timeout in milliseconds (default: 30000)
Trait Implementations§
Source§impl Clone for ShellExecRequest
impl Clone for ShellExecRequest
Source§fn clone(&self) -> ShellExecRequest
fn clone(&self) -> ShellExecRequest
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 ShellExecRequest
impl Debug for ShellExecRequest
Source§impl Default for ShellExecRequest
impl Default for ShellExecRequest
Source§fn default() -> ShellExecRequest
fn default() -> ShellExecRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShellExecRequest
impl<'de> Deserialize<'de> for ShellExecRequest
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 ShellExecRequest
impl RefUnwindSafe for ShellExecRequest
impl Send for ShellExecRequest
impl Sync for ShellExecRequest
impl Unpin for ShellExecRequest
impl UnsafeUnpin for ShellExecRequest
impl UnwindSafe for ShellExecRequest
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