pub struct RunOptions {
pub env_overrides: Vec<String>,
pub dry_run: bool,
pub quiet: bool,
pub verbose: bool,
pub show_metrics: bool,
pub script_args: Vec<String>,
pub workspace_override: Option<WorkspaceMode>,
pub no_workspace: bool,
pub json_output: bool,
}Expand description
Bundle of all execution options for run_script. Designed so callers do
not have to change every signature when new options are added.
Fields§
§env_overrides: Vec<String>§dry_run: bool§quiet: bool§verbose: bool§show_metrics: bool§script_args: Vec<String>CLI parameters in key=value form (or positional, see parse_script_args).
workspace_override: Option<WorkspaceMode>Explicit workspace mode override from CLI.
no_workspace: boolWhen true, ignore any workspace mode declared in the script.
json_output: boolWhen true, emit results as a JSON document on stdout.
Implementations§
Source§impl RunOptions
impl RunOptions
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Auto Trait Implementations§
impl Forget for RunOptions
impl Freeze for RunOptions
impl Move for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more