Struct aws_sdk_swf::operation::respond_decision_task_completed::RespondDecisionTaskCompletedInput
source · #[non_exhaustive]pub struct RespondDecisionTaskCompletedInput {
pub task_token: Option<String>,
pub decisions: Option<Vec<Decision>>,
pub execution_context: Option<String>,
pub task_list: Option<TaskList>,
pub task_list_schedule_to_start_timeout: Option<String>,
}
Expand description
Input data for a TaskCompleted response to a decision task.
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.task_token: Option<String>
The taskToken
from the DecisionTask
.
taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken
must also be passed. This enables it to provide its progress and respond with results.
decisions: Option<Vec<Decision>>
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
execution_context: Option<String>
User defined context to add to workflow execution.
task_list: Option<TaskList>
The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution.
task_list_schedule_to_start_timeout: Option<String>
Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.
If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.
Implementations§
source§impl RespondDecisionTaskCompletedInput
impl RespondDecisionTaskCompletedInput
sourcepub fn task_token(&self) -> Option<&str>
pub fn task_token(&self) -> Option<&str>
The taskToken
from the DecisionTask
.
taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken
must also be passed. This enables it to provide its progress and respond with results.
sourcepub fn decisions(&self) -> &[Decision]
pub fn decisions(&self) -> &[Decision]
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .decisions.is_none()
.
sourcepub fn execution_context(&self) -> Option<&str>
pub fn execution_context(&self) -> Option<&str>
User defined context to add to workflow execution.
sourcepub fn task_list(&self) -> Option<&TaskList>
pub fn task_list(&self) -> Option<&TaskList>
The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution.
sourcepub fn task_list_schedule_to_start_timeout(&self) -> Option<&str>
pub fn task_list_schedule_to_start_timeout(&self) -> Option<&str>
Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.
If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.
source§impl RespondDecisionTaskCompletedInput
impl RespondDecisionTaskCompletedInput
sourcepub fn builder() -> RespondDecisionTaskCompletedInputBuilder
pub fn builder() -> RespondDecisionTaskCompletedInputBuilder
Creates a new builder-style object to manufacture RespondDecisionTaskCompletedInput
.
Trait Implementations§
source§impl Clone for RespondDecisionTaskCompletedInput
impl Clone for RespondDecisionTaskCompletedInput
source§fn clone(&self) -> RespondDecisionTaskCompletedInput
fn clone(&self) -> RespondDecisionTaskCompletedInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RespondDecisionTaskCompletedInput
impl PartialEq for RespondDecisionTaskCompletedInput
source§fn eq(&self, other: &RespondDecisionTaskCompletedInput) -> bool
fn eq(&self, other: &RespondDecisionTaskCompletedInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RespondDecisionTaskCompletedInput
Auto Trait Implementations§
impl Freeze for RespondDecisionTaskCompletedInput
impl RefUnwindSafe for RespondDecisionTaskCompletedInput
impl Send for RespondDecisionTaskCompletedInput
impl Sync for RespondDecisionTaskCompletedInput
impl Unpin for RespondDecisionTaskCompletedInput
impl UnwindSafe for RespondDecisionTaskCompletedInput
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more