Struct run_script::types::ScriptOptions [−][src]
pub struct ScriptOptions { pub runner: Option<String>, pub capture_output: bool, pub exit_on_error: bool, pub print_commands: bool, }
Options available for invoking the script
Fields
runner: Option<String>
Defines the requested runner (defaults to cmd in windows and sh for other platforms)
capture_output: bool
False to print the output to the parent process, or capture and return the output (default)
exit_on_error: bool
Sets -e flag. Will exit on any error while running the script (not available for windows)
print_commands: bool
Sets -x flag for printing each script command before invocation (not available for windows)
Methods
impl ScriptOptions
[src]
impl ScriptOptions
pub fn new() -> ScriptOptions
[src]
pub fn new() -> ScriptOptions
Returns new instance
Trait Implementations
impl Debug for ScriptOptions
[src]
impl Debug for ScriptOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ScriptOptions
[src]
impl Clone for ScriptOptions
fn clone(&self) -> ScriptOptions
[src]
fn clone(&self) -> ScriptOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ScriptOptions
[src]
impl PartialEq for ScriptOptions
fn eq(&self, other: &ScriptOptions) -> bool
[src]
fn eq(&self, other: &ScriptOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ScriptOptions) -> bool
[src]
fn ne(&self, other: &ScriptOptions) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ScriptOptions
impl Send for ScriptOptions
impl Sync for ScriptOptions
impl Sync for ScriptOptions