pub struct JobStateResult {
pub exit_code: Option<i32>,
pub signal: Option<String>,
pub duration_ms: Option<u64>,
}Expand description
Nested result block within state.json.
Option fields are serialized as null (not omitted) so callers always
see consistent keys regardless of job lifecycle stage.
Fields§
§exit_code: Option<i32>null while running; set to exit code when process ends.
signal: Option<String>null unless the process was killed by a signal.
duration_ms: Option<u64>null while running; set to elapsed milliseconds when process ends.
Trait Implementations§
Source§impl Clone for JobStateResult
impl Clone for JobStateResult
Source§fn clone(&self) -> JobStateResult
fn clone(&self) -> JobStateResult
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 JobStateResult
impl Debug for JobStateResult
Source§impl<'de> Deserialize<'de> for JobStateResult
impl<'de> Deserialize<'de> for JobStateResult
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 JobStateResult
impl RefUnwindSafe for JobStateResult
impl Send for JobStateResult
impl Sync for JobStateResult
impl Unpin for JobStateResult
impl UnsafeUnpin for JobStateResult
impl UnwindSafe for JobStateResult
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