#[non_exhaustive]pub struct ContinueAsNewOptions {
pub workflow_type: Option<String>,
pub task_queue: Option<String>,
pub run_timeout: Option<Duration>,
pub task_timeout: Option<Duration>,
pub memo: Option<HashMap<String, Payload>>,
pub headers: Option<HashMap<String, Payload>>,
pub search_attributes: Option<SearchAttributes>,
pub retry_policy: Option<RetryPolicy>,
pub versioning_intent: Option<VersioningIntent>,
}Expand description
Options for continuing a workflow as a new execution.
Unset fields inherit the current workflow’s values where applicable.
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.workflow_type: Option<String>Override the workflow type for the new execution. If None, reuses the current type.
task_queue: Option<String>Task queue for the new execution. If None, reuses the current task queue.
run_timeout: Option<Duration>Timeout for a single run of the new workflow.
task_timeout: Option<Duration>Timeout of a single workflow task.
memo: Option<HashMap<String, Payload>>If set, the new workflow will have this memo. If None, reuses the current memo.
headers: Option<HashMap<String, Payload>>If set, the new workflow will have these headers.
search_attributes: Option<SearchAttributes>If set, the new workflow will have these search attributes. If None, reuses the current
search attributes.
retry_policy: Option<RetryPolicy>If set, the new workflow will have this retry policy. If None, reuses the current policy.
versioning_intent: Option<VersioningIntent>Whether the new workflow should run on a worker with a compatible build id.
Implementations§
Source§impl ContinueAsNewOptions
impl ContinueAsNewOptions
Sourcepub fn builder() -> ContinueAsNewOptionsBuilder
pub fn builder() -> ContinueAsNewOptionsBuilder
Create an instance of ContinueAsNewOptions using the builder syntax
Trait Implementations§
Source§impl Debug for ContinueAsNewOptions
impl Debug for ContinueAsNewOptions
Source§impl Default for ContinueAsNewOptions
impl Default for ContinueAsNewOptions
Source§fn default() -> ContinueAsNewOptions
fn default() -> ContinueAsNewOptions
Auto Trait Implementations§
impl Freeze for ContinueAsNewOptions
impl RefUnwindSafe for ContinueAsNewOptions
impl Send for ContinueAsNewOptions
impl Sync for ContinueAsNewOptions
impl Unpin for ContinueAsNewOptions
impl UnsafeUnpin for ContinueAsNewOptions
impl UnwindSafe for ContinueAsNewOptions
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 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