pub struct SubprocessExecParams {
pub binary: Option<String>,
pub args: Option<Vec<String>>,
pub command: Option<String>,
pub working_dir: Option<String>,
pub env: Option<HashMap<String, String>>,
pub background: Option<bool>,
pub shell: Option<String>,
pub execution_config: SubprocessExecutionConfig,
}Expand description
Parameters describing how to run a binary file.
Fields§
§binary: Option<String>Binary to run.
args: Option<Vec<String>>Arguments to pass to binary.
command: Option<String>Command String.
working_dir: Option<String>Directory to execute shell script in.
env: Option<HashMap<String, String>>Map of environment variables and their values.
background: Option<bool>If true, do not wait for script to exit before running next command.
shell: Option<String>Shell to use.
execution_config: SubprocessExecutionConfigExecution configuration.
Trait Implementations§
Source§impl Clone for SubprocessExecParams
impl Clone for SubprocessExecParams
Source§fn clone(&self) -> SubprocessExecParams
fn clone(&self) -> SubprocessExecParams
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 SubprocessExecParams
impl Debug for SubprocessExecParams
Source§impl<'de> Deserialize<'de> for SubprocessExecParams
impl<'de> Deserialize<'de> for SubprocessExecParams
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 SubprocessExecParams
impl RefUnwindSafe for SubprocessExecParams
impl Send for SubprocessExecParams
impl Sync for SubprocessExecParams
impl Unpin for SubprocessExecParams
impl UnwindSafe for SubprocessExecParams
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