pub struct ExecutionArgs {
pub script: ResolvedScriptContents,
pub interpreter: Option<String>,
pub env_vars: IndexMap<String, String>,
pub secrets: IndexMap<String, String>,
pub runtime: RuntimeEnv,
pub build_prefix: Option<PathBuf>,
pub run_prefix: PathBuf,
pub work_dir: PathBuf,
pub sandbox_config: Option<SandboxConfiguration>,
pub env_isolation: EnvironmentIsolation,
}Expand description
Arguments for executing a script in a given interpreter.
Fields§
§script: ResolvedScriptContentsContents of the script to execute
interpreter: Option<String>Explicit interpreter requested for the script, if any.
env_vars: IndexMap<String, String>Environment variables to set before executing the script
secrets: IndexMap<String, String>Secrets to set as env vars and replace in the output
runtime: RuntimeEnvThe environment rattler-build is running in: process environment
variables (including PATH) and the platform scripts execute on.
build_prefix: Option<PathBuf>The build prefix that should contain the interpreter to use
run_prefix: PathBufThe prefix to use for the script execution
work_dir: PathBufThe working directory (cwd) in which the script should execute
sandbox_config: Option<SandboxConfiguration>The sandbox configuration to use for the script execution
env_isolation: EnvironmentIsolationThe environment isolation mode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionArgs
impl RefUnwindSafe for ExecutionArgs
impl Send for ExecutionArgs
impl Sync for ExecutionArgs
impl Unpin for ExecutionArgs
impl UnsafeUnpin for ExecutionArgs
impl UnwindSafe for ExecutionArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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