pub struct WorkflowTaskCompletion {
pub task_token: TaskToken,
pub commands: Vec<Command>,
pub messages: Vec<Message>,
pub sticky_attributes: Option<StickyExecutionAttributes>,
pub query_responses: Vec<QueryResult>,
pub return_new_workflow_task: bool,
pub force_create_new_workflow_task: bool,
pub sdk_metadata: WorkflowTaskCompletedMetadata,
pub metering_metadata: MeteringMetadata,
pub versioning_behavior: VersioningBehavior,
}Expand description
A version of RespondWorkflowTaskCompletedRequest that will finish being filled out by the server client
Fields§
§task_token: TaskTokenThe task token that would’ve been received from polling for a workflow activation
commands: Vec<Command>A list of new commands to send to the server, such as starting a timer.
messages: Vec<Message>A list of protocol messages to send to the server.
sticky_attributes: Option<StickyExecutionAttributes>If set, indicate that next task should be queued on sticky queue with given attributes.
query_responses: Vec<QueryResult>Responses to queries in the queries field of the workflow task.
return_new_workflow_task: boolIndicate that the task completion should return a new WFT if one is available
force_create_new_workflow_task: boolForce a new WFT to be created after this completion
sdk_metadata: WorkflowTaskCompletedMetadataSDK-specific metadata to send
metering_metadata: MeteringMetadataMetering info
versioning_behavior: VersioningBehaviorVersioning behavior of the workflow, if any.
Trait Implementations§
Source§impl Clone for WorkflowTaskCompletion
impl Clone for WorkflowTaskCompletion
Source§fn clone(&self) -> WorkflowTaskCompletion
fn clone(&self) -> WorkflowTaskCompletion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowTaskCompletion
impl Debug for WorkflowTaskCompletion
Source§impl PartialEq for WorkflowTaskCompletion
impl PartialEq for WorkflowTaskCompletion
impl StructuralPartialEq for WorkflowTaskCompletion
Auto Trait Implementations§
impl Freeze for WorkflowTaskCompletion
impl RefUnwindSafe for WorkflowTaskCompletion
impl Send for WorkflowTaskCompletion
impl Sync for WorkflowTaskCompletion
impl Unpin for WorkflowTaskCompletion
impl UnsafeUnpin for WorkflowTaskCompletion
impl UnwindSafe for WorkflowTaskCompletion
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request