pub struct ExecutionProgressEvent {
pub task_id: TaskId,
pub step_id: Option<StepId>,
pub action: Option<String>,
pub phase: String,
pub message: Option<String>,
pub metadata: Value,
}Expand description
Realtime execution progress event.
Fields§
§task_id: TaskId§step_id: Option<StepId>§action: Option<String>§phase: StringPhase label, e.g. step_started/step_completed/task_completed.
message: Option<String>Optional human-readable message.
metadata: ValueExtra structured metadata.
Implementations§
Source§impl ExecutionProgressEvent
impl ExecutionProgressEvent
pub fn new( task_id: impl Into<TaskId>, step_id: Option<StepId>, action: Option<String>, phase: impl Into<String>, ) -> ExecutionProgressEvent
pub fn with_message(self, message: impl Into<String>) -> ExecutionProgressEvent
pub fn with_metadata(self, metadata: Value) -> ExecutionProgressEvent
Trait Implementations§
Source§impl Clone for ExecutionProgressEvent
impl Clone for ExecutionProgressEvent
Source§fn clone(&self) -> ExecutionProgressEvent
fn clone(&self) -> ExecutionProgressEvent
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 moreAuto Trait Implementations§
impl Freeze for ExecutionProgressEvent
impl RefUnwindSafe for ExecutionProgressEvent
impl Send for ExecutionProgressEvent
impl Sync for ExecutionProgressEvent
impl Unpin for ExecutionProgressEvent
impl UnsafeUnpin for ExecutionProgressEvent
impl UnwindSafe for ExecutionProgressEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more