pub struct StartActivityExecutionRequest {Show 18 fields
pub namespace: String,
pub identity: String,
pub request_id: String,
pub activity_id: String,
pub activity_type: Option<ActivityType>,
pub task_queue: Option<TaskQueue>,
pub schedule_to_close_timeout: Option<Duration>,
pub schedule_to_start_timeout: Option<Duration>,
pub start_to_close_timeout: Option<Duration>,
pub heartbeat_timeout: Option<Duration>,
pub retry_policy: Option<RetryPolicy>,
pub input: Option<Payloads>,
pub id_reuse_policy: i32,
pub id_conflict_policy: i32,
pub search_attributes: Option<SearchAttributes>,
pub header: Option<Header>,
pub user_metadata: Option<UserMetadata>,
pub priority: Option<Priority>,
}Fields§
§namespace: String§identity: StringThe identity of the client who initiated this request
request_id: StringA unique identifier for this start request. Typically UUIDv4.
activity_id: StringIdentifier for this activity. Required. This identifier should be meaningful in the user’s own system. It must be unique among activities in the same namespace, subject to the rules imposed by id_reuse_policy and id_conflict_policy.
activity_type: Option<ActivityType>The type of the activity, a string that corresponds to a registered activity on a worker.
task_queue: Option<TaskQueue>Task queue to schedule this activity on.
schedule_to_close_timeout: Option<Duration>Indicates how long the caller is willing to wait for an activity completion. Limits how long
retries will be attempted. Either this or start_to_close_timeout must be specified.
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
schedule_to_start_timeout: Option<Duration>Limits time an activity task can stay in a task queue before a worker picks it up. This
timeout is always non retryable, as all a retry would achieve is to put it back into the same
queue. Defaults to schedule_to_close_timeout if not specified.
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
start_to_close_timeout: Option<Duration>Maximum time an activity is allowed to execute after being picked up by a worker. This
timeout is always retryable. Either this or schedule_to_close_timeout must be
specified.
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
heartbeat_timeout: Option<Duration>Maximum permitted time between successful worker heartbeats.
retry_policy: Option<RetryPolicy>The retry policy for the activity. Will never exceed schedule_to_close_timeout.
input: Option<Payloads>Serialized arguments to the activity. These are passed as arguments to the activity function.
id_reuse_policy: i32Defines whether to allow re-using the activity id from a previously closed activity. The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE.
id_conflict_policy: i32Defines how to resolve an activity id conflict with a running activity. The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL.
search_attributes: Option<SearchAttributes>Search attributes for indexing.
header: Option<Header>Header for context propagation and tracing purposes.
user_metadata: Option<UserMetadata>Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
priority: Option<Priority>Priority metadata.
Implementations§
Source§impl StartActivityExecutionRequest
impl StartActivityExecutionRequest
Sourcepub fn id_reuse_policy(&self) -> ActivityIdReusePolicy
pub fn id_reuse_policy(&self) -> ActivityIdReusePolicy
Returns the enum value of id_reuse_policy, or the default if the field is set to an invalid enum value.
Sourcepub fn set_id_reuse_policy(&mut self, value: ActivityIdReusePolicy)
pub fn set_id_reuse_policy(&mut self, value: ActivityIdReusePolicy)
Sets id_reuse_policy to the provided enum value.
Sourcepub fn id_conflict_policy(&self) -> ActivityIdConflictPolicy
pub fn id_conflict_policy(&self) -> ActivityIdConflictPolicy
Returns the enum value of id_conflict_policy, or the default if the field is set to an invalid enum value.
Sourcepub fn set_id_conflict_policy(&mut self, value: ActivityIdConflictPolicy)
pub fn set_id_conflict_policy(&mut self, value: ActivityIdConflictPolicy)
Sets id_conflict_policy to the provided enum value.
Trait Implementations§
Source§impl Clone for StartActivityExecutionRequest
impl Clone for StartActivityExecutionRequest
Source§fn clone(&self) -> StartActivityExecutionRequest
fn clone(&self) -> StartActivityExecutionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for StartActivityExecutionRequest
impl Message for StartActivityExecutionRequest
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 StartActivityExecutionRequest
impl Name for StartActivityExecutionRequest
Source§const NAME: &'static str = "StartActivityExecutionRequest"
const NAME: &'static str = "StartActivityExecutionRequest"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.workflowservice.v1"
const PACKAGE: &'static str = "temporal.api.workflowservice.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 StartActivityExecutionRequest
impl PartialEq for StartActivityExecutionRequest
Source§fn eq(&self, other: &StartActivityExecutionRequest) -> bool
fn eq(&self, other: &StartActivityExecutionRequest) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for StartActivityExecutionRequest
impl PayloadVisitable for StartActivityExecutionRequest
§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 StartActivityExecutionRequest
Auto Trait Implementations§
impl Freeze for StartActivityExecutionRequest
impl RefUnwindSafe for StartActivityExecutionRequest
impl Send for StartActivityExecutionRequest
impl Sync for StartActivityExecutionRequest
impl Unpin for StartActivityExecutionRequest
impl UnsafeUnpin for StartActivityExecutionRequest
impl UnwindSafe for StartActivityExecutionRequest
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