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,
pub pagination_enabled: bool,
pub wft_completion_size_limit: Option<usize>,
}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.
pagination_enabled: boolWhether the namespace permits paginating this completion across multiple page requests when it would otherwise exceed the server’s gRPC request size limit.
wft_completion_size_limit: Option<usize>The namespace’s limit on the recombined size of a paginated completion, if the server
advertises one. A paginated completion larger than this is rejected server-side with
REQUEST_TOO_LARGE, so the worker fails it proactively instead of sending doomed pages.
Trait Implementations§
Source§impl Clone for WorkflowTaskCompletion
impl Clone for WorkflowTaskCompletion
Source§fn clone(&self) -> WorkflowTaskCompletion
fn clone(&self) -> WorkflowTaskCompletion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto 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
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> ⓘ
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 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>
T in a tonic::Request