pub struct RuntimeScriptInput {
pub runtime: String,
pub script: String,
pub env: HashMap<String, String>,
pub entry_point: String,
pub cargo_test: String,
pub args: Vec<String>,
pub clm_root: String,
}Expand description
Execute a script in the named runtime and return (exit_code, stdout, stderr).
This is a standalone runtime dispatch function that handles shell, python, node,
and rust runtimes with environment variables, entry points, and cargo test support.
It is called by the exec-runtime-script CLI command to enable Python code to
delegate runtime execution to the Rust binary instead of spawning subprocesses.
Fields§
§runtime: String§script: String§env: HashMap<String, String>§entry_point: String§cargo_test: String§args: Vec<String>§clm_root: StringTrait Implementations§
Source§impl Clone for RuntimeScriptInput
impl Clone for RuntimeScriptInput
Source§impl Debug for RuntimeScriptInput
impl Debug for RuntimeScriptInput
Source§impl<'de> Deserialize<'de> for RuntimeScriptInput
impl<'de> Deserialize<'de> for RuntimeScriptInput
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 RuntimeScriptInput
impl RefUnwindSafe for RuntimeScriptInput
impl Send for RuntimeScriptInput
impl Sync for RuntimeScriptInput
impl Unpin for RuntimeScriptInput
impl UnsafeUnpin for RuntimeScriptInput
impl UnwindSafe for RuntimeScriptInput
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