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
Auto Trait Implementations§
impl Freeze for RunResponse
impl RefUnwindSafe for RunResponse
impl Send for RunResponse
impl Sync for RunResponse
impl Unpin for RunResponse
impl UnwindSafe for RunResponse
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