pub struct StatusUpdate {
pub workflow_id: String,
pub task_id: String,
pub state: TaskState,
pub error: Option<String>,
pub timestamp_secs: u64,
pub seq: u64,
}Expand description
A single pending task-status change to be persisted.
Fields§
§workflow_id: StringWorkflow this task belongs to.
task_id: StringTask identifier.
state: TaskStateNew task state.
error: Option<String>Optional error message (for failed tasks).
timestamp_secs: u64Unix timestamp (seconds) when the change occurred.
seq: u64Sequence number for ordering within a flush batch.
Implementations§
Trait Implementations§
Source§impl Clone for StatusUpdate
impl Clone for StatusUpdate
Source§fn clone(&self) -> StatusUpdate
fn clone(&self) -> StatusUpdate
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 StatusUpdate
impl Debug for StatusUpdate
Source§impl<'de> Deserialize<'de> for StatusUpdate
impl<'de> Deserialize<'de> for StatusUpdate
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 StatusUpdate
impl RefUnwindSafe for StatusUpdate
impl Send for StatusUpdate
impl Sync for StatusUpdate
impl Unpin for StatusUpdate
impl UnsafeUnpin for StatusUpdate
impl UnwindSafe for StatusUpdate
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