pub struct WorkflowExecution { /* private fields */ }Expand description
A workflow execution returned from list operations. This represents information about a workflow present in visibility.
Implementations§
Source§impl WorkflowExecution
impl WorkflowExecution
Sourcepub fn new(raw: WorkflowExecutionInfo) -> Self
pub fn new(raw: WorkflowExecutionInfo) -> Self
Create a new WorkflowExecution from the raw proto.
Sourcepub fn workflow_type(&self) -> &str
pub fn workflow_type(&self) -> &str
The workflow type name.
Sourcepub fn status(&self) -> WorkflowExecutionStatus
pub fn status(&self) -> WorkflowExecutionStatus
The current status of the workflow execution.
Sourcepub fn start_time(&self) -> Option<SystemTime>
pub fn start_time(&self) -> Option<SystemTime>
When the workflow was created.
Sourcepub fn execution_time(&self) -> Option<SystemTime>
pub fn execution_time(&self) -> Option<SystemTime>
When the workflow run started or should start.
Sourcepub fn close_time(&self) -> Option<SystemTime>
pub fn close_time(&self) -> Option<SystemTime>
When the workflow was closed, if closed.
Sourcepub fn task_queue(&self) -> &str
pub fn task_queue(&self) -> &str
The task queue the workflow runs on.
Sourcepub fn history_length(&self) -> i64
pub fn history_length(&self) -> i64
Number of events in history.
Sourcepub fn parent_run_id(&self) -> Option<&str>
pub fn parent_run_id(&self) -> Option<&str>
Parent run ID, if this is a child workflow.
Sourcepub fn search_attributes(&self) -> Option<&SearchAttributes>
pub fn search_attributes(&self) -> Option<&SearchAttributes>
Search attributes on the workflow.
Sourcepub fn raw(&self) -> &WorkflowExecutionInfo
pub fn raw(&self) -> &WorkflowExecutionInfo
Access the raw proto for additional fields not exposed via accessors.
Sourcepub fn into_raw(self) -> WorkflowExecutionInfo
pub fn into_raw(self) -> WorkflowExecutionInfo
Consume the wrapper and return the raw proto.
Trait Implementations§
Source§impl Clone for WorkflowExecution
impl Clone for WorkflowExecution
Source§fn clone(&self) -> WorkflowExecution
fn clone(&self) -> WorkflowExecution
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowExecution
impl Debug for WorkflowExecution
Source§impl From<WorkflowExecutionInfo> for WorkflowExecution
impl From<WorkflowExecutionInfo> for WorkflowExecution
Source§fn from(raw: WorkflowExecutionInfo) -> Self
fn from(raw: WorkflowExecutionInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkflowExecution
impl RefUnwindSafe for WorkflowExecution
impl Send for WorkflowExecution
impl Sync for WorkflowExecution
impl Unpin for WorkflowExecution
impl UnsafeUnpin for WorkflowExecution
impl UnwindSafe for WorkflowExecution
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request