Struct rusty_runner_api::api::RunRequest
source · pub struct RunRequest {
pub command: String,
pub arguments: Vec<String>,
pub return_logs: bool,
}
Expand description
The json-body schema for POST /api/run
.
Serialized Example
{
"command": "echo",
"arguments": [
"Hello",
"World"
],
"return_logs": true
}
Fields§
§command: String
The command as available on the path or a path to an executable.
arguments: Vec<String>
The arguments as passed to tokio::process::Command::args
Warning
Raw args
are not supported.
Avoid cmd.exe /C
!
return_logs: bool
true
if the api should return stdout
and stderr
. Otherwise only
the exit code is returned.
Trait Implementations§
source§impl Debug for RunRequest
impl Debug for RunRequest
source§impl<'de> Deserialize<'de> for RunRequest
impl<'de> Deserialize<'de> for RunRequest
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