pub struct ShellExecV1 {
pub command: String,
pub args: Option<Vec<String>>,
pub env: Option<HashMap<String, String>>,
pub cwd: Option<String>,
pub timeout_ms: Option<u32>,
pub stdin: Option<String>,
}Expand description
Parameters for shell.exec.v1 capability
Fields§
§command: StringCommand to execute
args: Option<Vec<String>>Command arguments
env: Option<HashMap<String, String>>Environment variables
cwd: Option<String>Working directory
timeout_ms: Option<u32>Timeout in milliseconds (default: 30000, max: 600000)
stdin: Option<String>Data to write to stdin
Trait Implementations§
Source§impl Clone for ShellExecV1
impl Clone for ShellExecV1
Source§fn clone(&self) -> ShellExecV1
fn clone(&self) -> ShellExecV1
Returns a duplicate of the value. Read more
1.0.0 · 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 ShellExecV1
impl Debug for ShellExecV1
Source§impl<'de> Deserialize<'de> for ShellExecV1
impl<'de> Deserialize<'de> for ShellExecV1
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 ShellExecV1
impl RefUnwindSafe for ShellExecV1
impl Send for ShellExecV1
impl Sync for ShellExecV1
impl Unpin for ShellExecV1
impl UnwindSafe for ShellExecV1
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