Struct run_script::types::ScriptOptions
source · pub struct ScriptOptions {
pub runner: Option<String>,
pub capture_output: bool,
pub exit_on_error: bool,
pub print_commands: bool,
}Expand description
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: boolFalse to print the output to the parent process, or capture and return the output (default)
exit_on_error: boolSets -e flag. Will exit on any error while running the script (not available for windows)
print_commands: boolSets -x flag for printing each script command before invocation (not available for windows)
Implementations
sourceimpl ScriptOptions
impl ScriptOptions
sourcepub fn new() -> ScriptOptions
pub fn new() -> ScriptOptions
Returns new instance
Trait Implementations
sourceimpl Clone for ScriptOptions
impl Clone for ScriptOptions
sourcefn clone(&self) -> ScriptOptions
fn clone(&self) -> ScriptOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ScriptOptions
impl Debug for ScriptOptions
sourceimpl PartialEq<ScriptOptions> for ScriptOptions
impl PartialEq<ScriptOptions> for ScriptOptions
sourcefn eq(&self, other: &ScriptOptions) -> bool
fn eq(&self, other: &ScriptOptions) -> bool
impl StructuralPartialEq for ScriptOptions
Auto Trait Implementations
impl RefUnwindSafe for ScriptOptions
impl Send for ScriptOptions
impl Sync for ScriptOptions
impl Unpin for ScriptOptions
impl UnwindSafe for ScriptOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more