pub struct WorkflowRow {
pub namespace: String,
pub workflow_id: String,
pub run_id: String,
pub workflow_type: String,
pub task_queue: String,
pub status: WorkflowStatus,
pub start_time: Option<i64>,
pub close_time: Option<i64>,
pub history_length: i64,
}Expand description
One row of the workflow table.
namespace is carried on the row rather than held once for the whole list because a
multi-namespace fan-out merges rows from several namespaces into one table, and a row
that cannot say where it came from is not actionable.
Fields§
§namespace: String§workflow_id: String§run_id: String§workflow_type: String§task_queue: String§status: WorkflowStatus§start_time: Option<i64>Epoch milliseconds. None when the server did not set it, which is rare but legal.
close_time: Option<i64>§history_length: i64Implementations§
Source§impl WorkflowRow
impl WorkflowRow
Sourcepub fn key(&self) -> (&str, &str)
pub fn key(&self) -> (&str, &str)
Identity of a row across refreshes and across namespaces.
A run id is unique within a namespace but not across a fan-out, so the key is the
pair. This is what the cursor is anchored to. See find_by_key.
Trait Implementations§
Source§impl Clone for WorkflowRow
impl Clone for WorkflowRow
Source§fn clone(&self) -> WorkflowRow
fn clone(&self) -> WorkflowRow
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 WorkflowRow
impl Debug for WorkflowRow
impl Eq for WorkflowRow
Source§impl PartialEq for WorkflowRow
impl PartialEq for WorkflowRow
impl StructuralPartialEq for WorkflowRow
Auto Trait Implementations§
impl Freeze for WorkflowRow
impl RefUnwindSafe for WorkflowRow
impl Send for WorkflowRow
impl Sync for WorkflowRow
impl Unpin for WorkflowRow
impl UnsafeUnpin for WorkflowRow
impl UnwindSafe for WorkflowRow
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