Skip to main content

WorkflowUpdateWithStartOptionsBuilder

Struct WorkflowUpdateWithStartOptionsBuilder 

Source
pub struct WorkflowUpdateWithStartOptionsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> WorkflowUpdateWithStartOptionsBuilder<S>

Source

pub fn build(self) -> WorkflowUpdateWithStartOptions
where S: IsComplete,

Finish building and return the requested object

Source

pub fn id_reuse_policy( self, value: WorkflowIdReusePolicy, ) -> WorkflowUpdateWithStartOptionsBuilder<SetIdReusePolicy<S>>
where S::IdReusePolicy: IsUnset,

Optional (Some / Option setters). Default: <WorkflowIdReusePolicy as Default>::default().

The policy for reusing the workflow ID after a workflow closes.

Source

pub fn maybe_id_reuse_policy( self, value: Option<WorkflowIdReusePolicy>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetIdReusePolicy<S>>
where S::IdReusePolicy: IsUnset,

Optional (Some / Option setters). Default: <WorkflowIdReusePolicy as Default>::default().

The policy for reusing the workflow ID after a workflow closes.

Source

pub fn execution_timeout( self, value: Duration, ) -> WorkflowUpdateWithStartOptionsBuilder<SetExecutionTimeout<S>>
where S::ExecutionTimeout: IsUnset,

Optional (Some / Option setters). The workflow execution timeout.

Source

pub fn maybe_execution_timeout( self, value: Option<Duration>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetExecutionTimeout<S>>
where S::ExecutionTimeout: IsUnset,

Optional (Some / Option setters). The workflow execution timeout.

Source

pub fn run_timeout( self, value: Duration, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRunTimeout<S>>
where S::RunTimeout: IsUnset,

Optional (Some / Option setters). The workflow run timeout.

Source

pub fn maybe_run_timeout( self, value: Option<Duration>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRunTimeout<S>>
where S::RunTimeout: IsUnset,

Optional (Some / Option setters). The workflow run timeout.

Source

pub fn task_timeout( self, value: Duration, ) -> WorkflowUpdateWithStartOptionsBuilder<SetTaskTimeout<S>>
where S::TaskTimeout: IsUnset,

Optional (Some / Option setters). The workflow task timeout.

Source

pub fn maybe_task_timeout( self, value: Option<Duration>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetTaskTimeout<S>>
where S::TaskTimeout: IsUnset,

Optional (Some / Option setters). The workflow task timeout.

Source

pub fn search_attributes( self, value: SearchAttributes, ) -> WorkflowUpdateWithStartOptionsBuilder<SetSearchAttributes<S>>
where S::SearchAttributes: IsUnset,

Optional (Some / Option setters). Search attributes for the workflow.

Source

pub fn maybe_search_attributes( self, value: Option<SearchAttributes>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetSearchAttributes<S>>
where S::SearchAttributes: IsUnset,

Optional (Some / Option setters). Search attributes for the workflow.

Source

pub fn retry_policy( self, value: impl Into<RetryPolicy>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRetryPolicy<S>>
where S::RetryPolicy: IsUnset,

Optional (Some / Option setters). The workflow retry policy.

Source

pub fn maybe_retry_policy( self, value: Option<impl Into<RetryPolicy>>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRetryPolicy<S>>
where S::RetryPolicy: IsUnset,

Optional (Some / Option setters). The workflow retry policy.

Optional (Some / Option setters). Default: <Vec<common::v1::Link> as Default>::default().

Links to associate with the workflow.

Optional (Some / Option setters). Default: <Vec<common::v1::Link> as Default>::default().

Links to associate with the workflow.

Source

pub fn completion_callbacks( self, value: Vec<Callback>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetCompletionCallbacks<S>>
where S::CompletionCallbacks: IsUnset,

Optional (Some / Option setters). Default: <Vec<common::v1::Callback> as Default>::default().

Callbacks invoked when the workflow completes.

Source

pub fn maybe_completion_callbacks( self, value: Option<Vec<Callback>>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetCompletionCallbacks<S>>
where S::CompletionCallbacks: IsUnset,

Optional (Some / Option setters). Default: <Vec<common::v1::Callback> as Default>::default().

Callbacks invoked when the workflow completes.

Source

pub fn priority( self, value: Priority, ) -> WorkflowUpdateWithStartOptionsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

Optional (Some / Option setters). Default: <Priority as Default>::default().

Priority for the workflow. Defaults to all-inherited (empty).

Source

pub fn maybe_priority( self, value: Option<Priority>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

Optional (Some / Option setters). Default: <Priority as Default>::default().

Priority for the workflow. Defaults to all-inherited (empty).

Source

pub fn start_header( self, value: Header, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStartHeader<S>>
where S::StartHeader: IsUnset,

Optional (Some / Option setters). Headers to include with the start operation.

Source

pub fn maybe_start_header( self, value: Option<Header>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStartHeader<S>>
where S::StartHeader: IsUnset,

Optional (Some / Option setters). Headers to include with the start operation.

Source

pub fn update_header( self, value: Header, ) -> WorkflowUpdateWithStartOptionsBuilder<SetUpdateHeader<S>>
where S::UpdateHeader: IsUnset,

Optional (Some / Option setters). Headers to include with the update operation.

Source

pub fn maybe_update_header( self, value: Option<Header>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetUpdateHeader<S>>
where S::UpdateHeader: IsUnset,

Optional (Some / Option setters). Headers to include with the update operation.

Source

pub fn memo( self, value: MemoValues, ) -> WorkflowUpdateWithStartOptionsBuilder<SetMemo<S>>
where S::Memo: IsUnset,

Optional (Some / Option setters). Non-indexed values attached to the workflow, serialized with the client’s data converter.

Source

pub fn maybe_memo( self, value: Option<MemoValues>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetMemo<S>>
where S::Memo: IsUnset,

Optional (Some / Option setters). Non-indexed values attached to the workflow, serialized with the client’s data converter.

Source

pub fn static_summary( self, value: impl Into<String>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStaticSummary<S>>
where S::StaticSummary: IsUnset,

Optional (Some / Option setters). Single-line static summary for the workflow, shown in the Temporal UI.

Source

pub fn maybe_static_summary( self, value: Option<impl Into<String>>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStaticSummary<S>>
where S::StaticSummary: IsUnset,

Optional (Some / Option setters). Single-line static summary for the workflow, shown in the Temporal UI.

Source

pub fn static_details( self, value: impl Into<String>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStaticDetails<S>>
where S::StaticDetails: IsUnset,

Optional (Some / Option setters). Multi-line static details for the workflow, shown in the Temporal UI.

Source

pub fn maybe_static_details( self, value: Option<impl Into<String>>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetStaticDetails<S>>
where S::StaticDetails: IsUnset,

Optional (Some / Option setters). Multi-line static details for the workflow, shown in the Temporal UI.

Source

pub fn update_id( self, value: impl Into<String>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetUpdateId<S>>
where S::UpdateId: IsUnset,

Optional (Some / Option setters). Update ID for idempotency. If not provided, a UUID will be generated.

Source

pub fn maybe_update_id( self, value: Option<impl Into<String>>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetUpdateId<S>>
where S::UpdateId: IsUnset,

Optional (Some / Option setters). Update ID for idempotency. If not provided, a UUID will be generated.

Source

pub fn rpc_options( self, value: RpcOptions, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRpcOptions<S>>
where S::RpcOptions: IsUnset,

Optional (Some / Option setters). Default: <RpcOptions as Default>::default().

Controls for the multi-operation RPC and, when executing the update, subsequent polling.

Source

pub fn maybe_rpc_options( self, value: Option<RpcOptions>, ) -> WorkflowUpdateWithStartOptionsBuilder<SetRpcOptions<S>>
where S::RpcOptions: IsUnset,

Optional (Some / Option setters). Default: <RpcOptions as Default>::default().

Controls for the multi-operation RPC and, when executing the update, subsequent polling.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more