#[non_exhaustive]pub struct WorkflowExecutionTerminatedEventAttributes {
pub reason: Option<String>,
pub details: Option<String>,
pub child_policy: ChildPolicy,
pub cause: Option<WorkflowExecutionTerminatedCause>,
}
Expand description
Provides the details of the WorkflowExecutionTerminated
event.
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.reason: Option<String>
The reason provided for the termination.
details: Option<String>
The details provided for the termination.
child_policy: ChildPolicy
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
cause: Option<WorkflowExecutionTerminatedCause>
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
Implementations§
source§impl WorkflowExecutionTerminatedEventAttributes
impl WorkflowExecutionTerminatedEventAttributes
sourcepub fn child_policy(&self) -> &ChildPolicy
pub fn child_policy(&self) -> &ChildPolicy
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
sourcepub fn cause(&self) -> Option<&WorkflowExecutionTerminatedCause>
pub fn cause(&self) -> Option<&WorkflowExecutionTerminatedCause>
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
source§impl WorkflowExecutionTerminatedEventAttributes
impl WorkflowExecutionTerminatedEventAttributes
sourcepub fn builder() -> WorkflowExecutionTerminatedEventAttributesBuilder
pub fn builder() -> WorkflowExecutionTerminatedEventAttributesBuilder
Creates a new builder-style object to manufacture WorkflowExecutionTerminatedEventAttributes
.
Trait Implementations§
source§impl Clone for WorkflowExecutionTerminatedEventAttributes
impl Clone for WorkflowExecutionTerminatedEventAttributes
source§fn clone(&self) -> WorkflowExecutionTerminatedEventAttributes
fn clone(&self) -> WorkflowExecutionTerminatedEventAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for WorkflowExecutionTerminatedEventAttributes
impl PartialEq for WorkflowExecutionTerminatedEventAttributes
source§fn eq(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
fn eq(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.