Struct rusty_runner_api::api::RunResponse
source · pub struct RunResponse {
pub id: u64,
pub status: RunStatus,
}
Expand description
The json response format for /api/run
and /api/runscript
.
Serialized Examples
A completed command:
{
"id": 73001,
"status": "Completed",
"exit_code": 1,
"time_taken": {
"secs": 21,
"nanos": 800000
}
}
A command that could not be executed:
{
"id": 1234567890,
"status": "Failure",
"reason": "Not supported"
}
Fields§
§id: u64
§status: RunStatus
Trait Implementations§
source§impl Debug for RunResponse
impl Debug for RunResponse
source§impl<'de> Deserialize<'de> for RunResponse
impl<'de> Deserialize<'de> for RunResponse
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