#[non_exhaustive]pub struct WorkflowExecutionTerminatedEventAttributes {
pub reason: Option<String>,
pub details: Option<String>,
pub child_policy: Option<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: Option<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
sourceimpl WorkflowExecutionTerminatedEventAttributes
impl WorkflowExecutionTerminatedEventAttributes
sourcepub fn child_policy(&self) -> Option<&ChildPolicy>
pub fn child_policy(&self) -> Option<&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.
sourceimpl WorkflowExecutionTerminatedEventAttributes
impl WorkflowExecutionTerminatedEventAttributes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture WorkflowExecutionTerminatedEventAttributes
Trait Implementations
sourceimpl Clone for WorkflowExecutionTerminatedEventAttributes
impl Clone for WorkflowExecutionTerminatedEventAttributes
sourcefn clone(&self) -> WorkflowExecutionTerminatedEventAttributes
fn clone(&self) -> WorkflowExecutionTerminatedEventAttributes
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 PartialEq<WorkflowExecutionTerminatedEventAttributes> for WorkflowExecutionTerminatedEventAttributes
impl PartialEq<WorkflowExecutionTerminatedEventAttributes> for WorkflowExecutionTerminatedEventAttributes
sourcefn eq(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
fn eq(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
fn ne(&self, other: &WorkflowExecutionTerminatedEventAttributes) -> bool
This method tests for !=
.
impl StructuralPartialEq for WorkflowExecutionTerminatedEventAttributes
Auto Trait Implementations
impl RefUnwindSafe for WorkflowExecutionTerminatedEventAttributes
impl Send for WorkflowExecutionTerminatedEventAttributes
impl Sync for WorkflowExecutionTerminatedEventAttributes
impl Unpin for WorkflowExecutionTerminatedEventAttributes
impl UnwindSafe for WorkflowExecutionTerminatedEventAttributes
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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