pub struct ExecutionResponse {
pub name: String,
pub durable_execution_id: String,
pub payload: Value,
pub status: String,
pub scheduled_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub version: i32,
pub result: Option<Value>,
}Expand description
JSON representation of a durable execution record.
Fields§
§name: StringRegistered task handler name.
durable_execution_id: StringUnique execution identifier (idempotency key).
payload: ValueOriginal JSON payload.
status: StringLifecycle status (scheduled | running | completed | failed | cancelled).
scheduled_at: DateTime<Utc>When the execution was first scheduled.
completed_at: Option<DateTime<Utc>>When the execution reached a terminal state (null if still running).
version: i32Schema version counter.
result: Option<Value>JSON result produced by the task handler (null if not yet completed).
Trait Implementations§
Source§impl Debug for ExecutionResponse
impl Debug for ExecutionResponse
Source§impl From<ExecutionRecord> for ExecutionResponse
impl From<ExecutionRecord> for ExecutionResponse
Source§fn from(r: ExecutionRecord) -> Self
fn from(r: ExecutionRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionResponse
impl RefUnwindSafe for ExecutionResponse
impl Send for ExecutionResponse
impl Sync for ExecutionResponse
impl Unpin for ExecutionResponse
impl UnsafeUnpin for ExecutionResponse
impl UnwindSafe for ExecutionResponse
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> 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