pub struct RunRequest {
pub command: String,
pub arguments: Vec<String>,
pub return_stdout: bool,
pub return_stderr: bool,
}
Expand description
The json-body schema for POST /api/run
.
§Serialized Example
{
"command": "echo",
"arguments": [
"Hello",
"World"
],
"return_stderr": true,
"return_stdout": false
}
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_stdout: bool
true
if the api should capture and return stdout
. Defaults to false
.
return_stderr: bool
true
if the api should capture and return stderr
. Defaults to false
.
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
Auto Trait Implementations§
impl Freeze for RunRequest
impl RefUnwindSafe for RunRequest
impl Send for RunRequest
impl Sync for RunRequest
impl Unpin for RunRequest
impl UnwindSafe for RunRequest
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