pub struct JobCompletedEvent {
pub job_id: String,
pub output: Option<String>,
pub trace_id: Option<String>,
pub worker_id: Option<String>,
pub attempt_count: Option<u32>,
pub status: Option<String>,
pub trace_ctx: Option<TraceCtx>,
pub attempt_id: Option<AttemptId>,
pub trial_id: Option<TrialId>,
}Expand description
Emitted when a job completes successfully.
Fields§
§job_id: String§output: Option<String>§trace_id: Option<String>👎Deprecated:
Use trace_ctx instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use trace_ctx instead.
Removal condition: removed when all event consumers migrate to TraceCtx.
worker_id: Option<String>§attempt_count: Option<u32>👎Deprecated:
Use attempt_id/trial_id instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use attempt_id / trial_id instead.
Removal condition: removed when all event consumers migrate to AttemptId/TrialId.
status: Option<String>§trace_ctx: Option<TraceCtx>Canonical trace context (replaces trace_id).
attempt_id: Option<AttemptId>Canonical attempt identity — one per re-enqueue.
trial_id: Option<TrialId>Canonical trial identity — one per concrete execution.
Trait Implementations§
Source§impl Clone for JobCompletedEvent
impl Clone for JobCompletedEvent
Source§fn clone(&self) -> JobCompletedEvent
fn clone(&self) -> JobCompletedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JobCompletedEvent
impl Debug for JobCompletedEvent
Source§impl<'de> Deserialize<'de> for JobCompletedEvent
impl<'de> Deserialize<'de> for JobCompletedEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobCompletedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobCompletedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JobCompletedEvent
impl Serialize for JobCompletedEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for JobCompletedEvent
impl RefUnwindSafe for JobCompletedEvent
impl Send for JobCompletedEvent
impl Sync for JobCompletedEvent
impl Unpin for JobCompletedEvent
impl UnsafeUnpin for JobCompletedEvent
impl UnwindSafe for JobCompletedEvent
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