pub struct JobStatusResponse {
pub duration: f64,
pub end_time: String,
pub error: String,
pub finished: bool,
pub id: f64,
pub output: Option<Value>,
pub progress: Option<Value>,
pub start_time: String,
pub success: bool,
}Expand description
JobStatusResponse
JSON schema
{
"type": "object",
"required": [
"duration",
"endTime",
"error",
"finished",
"id",
"startTime",
"success"
],
"properties": {
"duration": {
"description": "Execution time in seconds.",
"type": "number"
},
"endTime": {
"description": "Timestamp when the job finished.",
"type": "string"
},
"error": {
"description": "Error message, or empty string on success.",
"type": "string"
},
"finished": {
"description": "True once the job has completed.",
"type": "boolean"
},
"id": {
"description": "Job identifier.",
"type": "number"
},
"output": {
"description": "Synchronous-style output payload when available."
},
"progress": {
"description": "Progress measurements supplied by the underlying
command."
},
"startTime": {
"description": "Timestamp when the job started.",
"type": "string"
},
"success": {
"description": "True if the job completed successfully.",
"type": "boolean"
}
}
}Fields§
§duration: f64§end_time: StringTimestamp when the job finished.
error: StringError message, or empty string on success.
finished: boolTrue once the job has completed.
id: f64§output: Option<Value>Synchronous-style output payload when available.
progress: Option<Value>Progress measurements supplied by the underlying command.
start_time: StringTimestamp when the job started.
success: boolTrue if the job completed successfully.
Trait Implementations§
Source§impl Clone for JobStatusResponse
impl Clone for JobStatusResponse
Source§fn clone(&self) -> JobStatusResponse
fn clone(&self) -> JobStatusResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobStatusResponse
impl Debug for JobStatusResponse
Source§impl<'de> Deserialize<'de> for JobStatusResponse
impl<'de> Deserialize<'de> for JobStatusResponse
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
Source§impl From<&JobStatusResponse> for JobStatusResponse
impl From<&JobStatusResponse> for JobStatusResponse
Source§fn from(value: &JobStatusResponse) -> Self
fn from(value: &JobStatusResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JobStatusResponse
impl RefUnwindSafe for JobStatusResponse
impl Send for JobStatusResponse
impl Sync for JobStatusResponse
impl Unpin for JobStatusResponse
impl UnwindSafe for JobStatusResponse
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