#[non_exhaustive]pub struct WorkflowUpdateWithStartOptions {Show 19 fields
pub task_queue: String,
pub workflow_id: String,
pub id_conflict_policy: WorkflowIdConflictPolicy,
pub id_reuse_policy: WorkflowIdReusePolicy,
pub execution_timeout: Option<Duration>,
pub run_timeout: Option<Duration>,
pub task_timeout: Option<Duration>,
pub search_attributes: Option<SearchAttributes>,
pub retry_policy: Option<RetryPolicy>,
pub links: Vec<Link>,
pub completion_callbacks: Vec<Callback>,
pub priority: Priority,
pub start_header: Option<Header>,
pub update_header: Option<Header>,
pub memo: Option<MemoValues>,
pub static_summary: Option<String>,
pub static_details: Option<String>,
pub update_id: Option<String>,
pub rpc_options: RpcOptions,
}Expand description
Options for starting a workflow and sending it an update in one atomic operation.
See crate::Client::start_update_with_start_workflow and crate::Client::execute_update_with_start_workflow.
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_queue: StringThe task queue to run the workflow on.
workflow_id: StringThe workflow ID.
id_conflict_policy: WorkflowIdConflictPolicyHow to resolve a conflict with an already-running workflow. This is required so callers explicitly choose whether an update may attach to an existing workflow.
id_reuse_policy: WorkflowIdReusePolicyThe policy for reusing the workflow ID after a workflow closes.
execution_timeout: Option<Duration>The workflow execution timeout.
run_timeout: Option<Duration>The workflow run timeout.
task_timeout: Option<Duration>The workflow task timeout.
search_attributes: Option<SearchAttributes>Search attributes for the workflow.
retry_policy: Option<RetryPolicy>The workflow retry policy.
links: Vec<Link>Links to associate with the workflow.
completion_callbacks: Vec<Callback>Callbacks invoked when the workflow completes.
priority: PriorityPriority for the workflow. Defaults to all-inherited (empty).
start_header: Option<Header>Headers to include with the start operation.
update_header: Option<Header>Headers to include with the update operation.
memo: Option<MemoValues>Non-indexed values attached to the workflow, serialized with the client’s data converter.
static_summary: Option<String>Single-line static summary for the workflow, shown in the Temporal UI.
static_details: Option<String>Multi-line static details for the workflow, shown in the Temporal UI.
update_id: Option<String>Update ID for idempotency. If not provided, a UUID will be generated.
rpc_options: RpcOptionsControls for the multi-operation RPC and, when executing the update, subsequent polling.
Implementations§
Source§impl WorkflowUpdateWithStartOptions
impl WorkflowUpdateWithStartOptions
Sourcepub fn new(
task_queue: impl Into<String>,
workflow_id: impl Into<String>,
id_conflict_policy: WorkflowIdConflictPolicy,
) -> WorkflowUpdateWithStartOptionsBuilder
pub fn new( task_queue: impl Into<String>, workflow_id: impl Into<String>, id_conflict_policy: WorkflowIdConflictPolicy, ) -> WorkflowUpdateWithStartOptionsBuilder
Create an instance of WorkflowUpdateWithStartOptions using the builder syntax
Trait Implementations§
Source§impl Clone for WorkflowUpdateWithStartOptions
impl Clone for WorkflowUpdateWithStartOptions
Source§fn clone(&self) -> WorkflowUpdateWithStartOptions
fn clone(&self) -> WorkflowUpdateWithStartOptions
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 !RefUnwindSafe for WorkflowUpdateWithStartOptions
impl !UnwindSafe for WorkflowUpdateWithStartOptions
impl Freeze for WorkflowUpdateWithStartOptions
impl Send for WorkflowUpdateWithStartOptions
impl Sync for WorkflowUpdateWithStartOptions
impl Unpin for WorkflowUpdateWithStartOptions
impl UnsafeUnpin for WorkflowUpdateWithStartOptions
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> 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