pub struct ContinueAsNewWorkflowExecutionCommandAttributes {Show 16 fields
pub workflow_type: Option<WorkflowType>,
pub task_queue: Option<TaskQueue>,
pub input: Option<Payloads>,
pub workflow_run_timeout: Option<Duration>,
pub workflow_task_timeout: Option<Duration>,
pub backoff_start_interval: Option<Duration>,
pub retry_policy: Option<RetryPolicy>,
pub initiator: i32,
pub failure: Option<Failure>,
pub last_completion_result: Option<Payloads>,
pub cron_schedule: String,
pub header: Option<Header>,
pub memo: Option<Memo>,
pub search_attributes: Option<SearchAttributes>,
pub inherit_build_id: bool,
pub initial_versioning_behavior: i32,
}Fields§
§workflow_type: Option<WorkflowType>§task_queue: Option<TaskQueue>§input: Option<Payloads>§workflow_run_timeout: Option<Duration>Timeout of a single workflow run.
workflow_task_timeout: Option<Duration>Timeout of a single workflow task.
backoff_start_interval: Option<Duration>How long the workflow start will be delayed - not really a “backoff” in the traditional sense.
retry_policy: Option<RetryPolicy>§initiator: i32Should be removed
failure: Option<Failure>Should be removed
last_completion_result: Option<Payloads>Should be removed
cron_schedule: StringShould be removed. Not necessarily unused but unclear and not exposed by SDKs.
header: Option<Header>§memo: Option<Memo>§search_attributes: Option<SearchAttributes>§inherit_build_id: boolIf this is set, the new execution inherits the Build ID of the current execution. Otherwise, the assignment rules will be used to independently assign a Build ID to the new execution. Deprecated. Only considered for versioning v0.2.
initial_versioning_behavior: i32Experimental. Optionally decide the versioning behavior that the first task of the new run should use. For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version of the previous run.
Implementations§
Source§impl ContinueAsNewWorkflowExecutionCommandAttributes
impl ContinueAsNewWorkflowExecutionCommandAttributes
Sourcepub fn initiator(&self) -> ContinueAsNewInitiator
pub fn initiator(&self) -> ContinueAsNewInitiator
Returns the enum value of initiator, or the default if the field is set to an invalid enum value.
Sourcepub fn set_initiator(&mut self, value: ContinueAsNewInitiator)
pub fn set_initiator(&mut self, value: ContinueAsNewInitiator)
Sets initiator to the provided enum value.
Sourcepub fn initial_versioning_behavior(&self) -> ContinueAsNewVersioningBehavior
pub fn initial_versioning_behavior(&self) -> ContinueAsNewVersioningBehavior
Returns the enum value of initial_versioning_behavior, or the default if the field is set to an invalid enum value.
Sourcepub fn set_initial_versioning_behavior(
&mut self,
value: ContinueAsNewVersioningBehavior,
)
pub fn set_initial_versioning_behavior( &mut self, value: ContinueAsNewVersioningBehavior, )
Sets initial_versioning_behavior to the provided enum value.
Trait Implementations§
Source§impl Clone for ContinueAsNewWorkflowExecutionCommandAttributes
impl Clone for ContinueAsNewWorkflowExecutionCommandAttributes
Source§fn clone(&self) -> ContinueAsNewWorkflowExecutionCommandAttributes
fn clone(&self) -> ContinueAsNewWorkflowExecutionCommandAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<ContinueAsNewWorkflowExecutionCommandAttributes> for Attributes
impl From<ContinueAsNewWorkflowExecutionCommandAttributes> for Attributes
Source§fn from(value: ContinueAsNewWorkflowExecutionCommandAttributes) -> Self
fn from(value: ContinueAsNewWorkflowExecutionCommandAttributes) -> Self
Source§impl Message for ContinueAsNewWorkflowExecutionCommandAttributes
impl Message for ContinueAsNewWorkflowExecutionCommandAttributes
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for ContinueAsNewWorkflowExecutionCommandAttributes
impl Name for ContinueAsNewWorkflowExecutionCommandAttributes
Source§const NAME: &'static str = "ContinueAsNewWorkflowExecutionCommandAttributes"
const NAME: &'static str = "ContinueAsNewWorkflowExecutionCommandAttributes"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.command.v1"
const PACKAGE: &'static str = "temporal.api.command.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ContinueAsNewWorkflowExecutionCommandAttributes
impl PartialEq for ContinueAsNewWorkflowExecutionCommandAttributes
Source§fn eq(&self, other: &ContinueAsNewWorkflowExecutionCommandAttributes) -> bool
fn eq(&self, other: &ContinueAsNewWorkflowExecutionCommandAttributes) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for ContinueAsNewWorkflowExecutionCommandAttributes
impl PayloadVisitable for ContinueAsNewWorkflowExecutionCommandAttributes
§fn visit_payloads_mut<'a>(
&'a mut self,
visitor: &'a mut (dyn AsyncPayloadVisitor + Send),
) -> BoxFuture<'a, ()>
fn visit_payloads_mut<'a>( &'a mut self, visitor: &'a mut (dyn AsyncPayloadVisitor + Send), ) -> BoxFuture<'a, ()>
impl StructuralPartialEq for ContinueAsNewWorkflowExecutionCommandAttributes
Auto Trait Implementations§
impl Freeze for ContinueAsNewWorkflowExecutionCommandAttributes
impl RefUnwindSafe for ContinueAsNewWorkflowExecutionCommandAttributes
impl Send for ContinueAsNewWorkflowExecutionCommandAttributes
impl Sync for ContinueAsNewWorkflowExecutionCommandAttributes
impl Unpin for ContinueAsNewWorkflowExecutionCommandAttributes
impl UnsafeUnpin for ContinueAsNewWorkflowExecutionCommandAttributes
impl UnwindSafe for ContinueAsNewWorkflowExecutionCommandAttributes
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