Struct aws_sdk_swf::model::WorkflowExecutionInfo
source · [−]#[non_exhaustive]pub struct WorkflowExecutionInfo {
pub execution: Option<WorkflowExecution>,
pub workflow_type: Option<WorkflowType>,
pub start_timestamp: Option<DateTime>,
pub close_timestamp: Option<DateTime>,
pub execution_status: Option<ExecutionStatus>,
pub close_status: Option<CloseStatus>,
pub parent: Option<WorkflowExecution>,
pub tag_list: Option<Vec<String>>,
pub cancel_requested: bool,
}
Expand description
Contains information about a workflow execution.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.execution: Option<WorkflowExecution>
The workflow execution this information is about.
workflow_type: Option<WorkflowType>
The type of the workflow execution.
start_timestamp: Option<DateTime>
The time when the execution was started.
close_timestamp: Option<DateTime>
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
execution_status: Option<ExecutionStatus>
The current status of the execution.
close_status: 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.
parent: Option<WorkflowExecution>
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
tag_list: Option<Vec<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.
cancel_requested: bool
Set to true if a cancellation is requested for this workflow execution.
Implementations
sourceimpl 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.
sourceimpl WorkflowExecutionInfo
impl WorkflowExecutionInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture WorkflowExecutionInfo
.
Trait Implementations
sourceimpl Clone for WorkflowExecutionInfo
impl Clone for WorkflowExecutionInfo
sourcefn clone(&self) -> WorkflowExecutionInfo
fn clone(&self) -> WorkflowExecutionInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WorkflowExecutionInfo
impl Debug for WorkflowExecutionInfo
sourceimpl PartialEq<WorkflowExecutionInfo> for WorkflowExecutionInfo
impl PartialEq<WorkflowExecutionInfo> for WorkflowExecutionInfo
sourcefn eq(&self, other: &WorkflowExecutionInfo) -> bool
fn eq(&self, other: &WorkflowExecutionInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WorkflowExecutionInfo) -> bool
fn ne(&self, other: &WorkflowExecutionInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for WorkflowExecutionInfo
Auto Trait Implementations
impl RefUnwindSafe for WorkflowExecutionInfo
impl Send for WorkflowExecutionInfo
impl Sync for WorkflowExecutionInfo
impl Unpin for WorkflowExecutionInfo
impl UnwindSafe for WorkflowExecutionInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more