pub struct JobResult {
pub job_id: Uuid,
pub supervisor_id: Option<Uuid>,
pub exit_status: ExitStatus,
pub host_output: Option<String>,
pub terminated_at: DateTime<Utc>,
}Expand description
Represents the finalized state of a job.
Fields§
§job_id: UuidThe job’s ID.
supervisor_id: Option<Uuid>If the job was dispatched, the ID of the supervisor it was dispatched on.
Otherwise None.
exit_status: ExitStatusExit status of the job.
host_output: Option<String>Optional output.
terminated_at: DateTime<Utc>Time at which the switchboard processed the termination.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobResult
impl<'de> Deserialize<'de> for JobResult
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 JobResult
impl RefUnwindSafe for JobResult
impl Send for JobResult
impl Sync for JobResult
impl Unpin for JobResult
impl UnwindSafe for JobResult
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