pub struct ShellExecParams {Show 13 fields
pub script: String,
pub working_dir: Option<String>,
pub env: Option<HashMap<String, String>>,
pub add_expansions_to_env: Option<bool>,
pub include_expansions_in_env: Option<Vec<String>>,
pub background: Option<bool>,
pub silent: Option<bool>,
pub continue_on_err: Option<bool>,
pub system_log: Option<bool>,
pub shell: Option<String>,
pub ignore_standard_out: Option<bool>,
pub ignore_standard_error: Option<bool>,
pub redirect_standard_error_to_output: Option<bool>,
}Expand description
Parameters describing how to run a shell script.
Fields§
§script: StringScript to run.
working_dir: Option<String>Directory to execute shell script in.
env: Option<HashMap<String, String>>Map of environment variables and their values.
add_expansions_to_env: Option<bool>If true, add all expansions to shell’s env.
include_expansions_in_env: Option<Vec<String>>Specify 1 or more expansions to include in the shell’s env.
background: Option<bool>If true, do not wait for script to exit before running next command.
silent: Option<bool>If true, does not log any shell output during execution.
continue_on_err: Option<bool>If true, causes command to be marked as success regardless of script’s exit code.
system_log: Option<bool>If true, scripts output will be written to task’s system logs instead of test logs.
shell: Option<String>Shell to use.
ignore_standard_out: Option<bool>If true, discard output sent to stdout.
ignore_standard_error: Option<bool>If true, discard output sent to stderr.
redirect_standard_error_to_output: Option<bool>If true, send stderr to stdout.
Trait Implementations§
Source§impl Clone for ShellExecParams
impl Clone for ShellExecParams
Source§fn clone(&self) -> ShellExecParams
fn clone(&self) -> ShellExecParams
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 ShellExecParams
impl Debug for ShellExecParams
Source§impl<'de> Deserialize<'de> for ShellExecParams
impl<'de> Deserialize<'de> for ShellExecParams
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 ShellExecParams
impl RefUnwindSafe for ShellExecParams
impl Send for ShellExecParams
impl Sync for ShellExecParams
impl Unpin for ShellExecParams
impl UnwindSafe for ShellExecParams
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