Struct aws_sdk_swf::model::WorkflowExecutionInfo
source · #[non_exhaustive]pub struct WorkflowExecutionInfo { /* private fields */ }
Expand description
Contains information about a workflow execution.
Implementations§
source§impl WorkflowExecutionInfo
impl WorkflowExecutionInfo
sourcepub fn execution(&self) -> Option<&WorkflowExecution>
pub fn execution(&self) -> Option<&WorkflowExecution>
The workflow execution this information is about.
sourcepub fn workflow_type(&self) -> Option<&WorkflowType>
pub fn workflow_type(&self) -> Option<&WorkflowType>
The type of the workflow execution.
sourcepub fn start_timestamp(&self) -> Option<&DateTime>
pub fn start_timestamp(&self) -> Option<&DateTime>
The time when the execution was started.
sourcepub fn close_timestamp(&self) -> Option<&DateTime>
pub fn close_timestamp(&self) -> Option<&DateTime>
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
sourcepub fn execution_status(&self) -> Option<&ExecutionStatus>
pub fn execution_status(&self) -> Option<&ExecutionStatus>
The current status of the execution.
sourcepub fn close_status(&self) -> Option<&CloseStatus>
pub fn close_status(&self) -> Option<&CloseStatus>
If the execution status is closed then this specifies how the execution was closed:
-
COMPLETED
– the execution was successfully completed. -
CANCELED
– the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed. -
TERMINATED
– the execution was force terminated. -
FAILED
– the execution failed to complete. -
TIMED_OUT
– the execution did not complete in the alloted time and was automatically timed out. -
CONTINUED_AS_NEW
– the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
sourcepub fn parent(&self) -> Option<&WorkflowExecution>
pub fn parent(&self) -> Option<&WorkflowExecution>
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
sourcepub fn tag_list(&self) -> Option<&[String]>
pub fn tag_list(&self) -> Option<&[String]>
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
sourcepub fn cancel_requested(&self) -> bool
pub fn cancel_requested(&self) -> bool
Set to true if a cancellation is requested for this workflow execution.
source§impl WorkflowExecutionInfo
impl WorkflowExecutionInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture WorkflowExecutionInfo
.
Trait Implementations§
source§impl Clone for WorkflowExecutionInfo
impl Clone for WorkflowExecutionInfo
source§fn clone(&self) -> WorkflowExecutionInfo
fn clone(&self) -> WorkflowExecutionInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WorkflowExecutionInfo
impl Debug for WorkflowExecutionInfo
source§impl PartialEq<WorkflowExecutionInfo> for WorkflowExecutionInfo
impl PartialEq<WorkflowExecutionInfo> for WorkflowExecutionInfo
source§fn eq(&self, other: &WorkflowExecutionInfo) -> bool
fn eq(&self, other: &WorkflowExecutionInfo) -> bool
self
and other
values to be equal, and is used
by ==
.