pub struct Start {Show 18 fields
pub workflow_namespace: String,
pub workflow_type: String,
pub workflow_execution: Option<WorkflowExecution>,
pub activity_id: String,
pub activity_type: String,
pub header_fields: HashMap<String, Payload>,
pub input: Vec<Payload>,
pub heartbeat_details: Vec<Payload>,
pub scheduled_time: Option<Timestamp>,
pub current_attempt_scheduled_time: Option<Timestamp>,
pub started_time: Option<Timestamp>,
pub attempt: u32,
pub schedule_to_close_timeout: Option<Duration>,
pub start_to_close_timeout: Option<Duration>,
pub heartbeat_timeout: Option<Duration>,
pub retry_policy: Option<RetryPolicy>,
pub priority: Option<Priority>,
pub is_local: bool,
}Expand description
Begin executing an activity
Fields§
§workflow_namespace: StringThe namespace the workflow lives in
workflow_type: StringThe workflow’s type name or function identifier
workflow_execution: Option<WorkflowExecution>The workflow execution which requested this activity
activity_id: StringThe activity’s ID
activity_type: StringThe activity’s type name or function identifier
header_fields: HashMap<String, Payload>§input: Vec<Payload>Arguments to the activity
heartbeat_details: Vec<Payload>The last details that were recorded by a heartbeat when this task was generated
scheduled_time: Option<Timestamp>When the task was first scheduled
current_attempt_scheduled_time: Option<Timestamp>When this current attempt at the task was scheduled
started_time: Option<Timestamp>When this attempt was started, which is to say when core received it by polling.
attempt: u32§schedule_to_close_timeout: Option<Duration>Timeout from the first schedule time to completion
start_to_close_timeout: Option<Duration>Timeout from starting an attempt to reporting its result
heartbeat_timeout: Option<Duration>If set a heartbeat must be reported within this interval
retry_policy: Option<RetryPolicy>This is an actual retry policy the service uses. It can be different from the one provided (or not) during activity scheduling as the service can override the provided one in case its values are not specified or exceed configured system limits.
priority: Option<Priority>Priority of this activity. Local activities will always have this field set to the default.
is_local: boolSet to true if this is a local activity. Note that heartbeating does not apply to local activities.
Trait Implementations§
Source§impl Message for Start
impl Message for Start
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 Start
impl Name for Start
Source§const NAME: &'static str = "Start"
const NAME: &'static str = "Start"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "coresdk.activity_task"
const PACKAGE: &'static str = "coresdk.activity_task"
., 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.§impl PayloadVisitable for Start
impl PayloadVisitable for Start
§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 Start
Auto Trait Implementations§
impl Freeze for Start
impl RefUnwindSafe for Start
impl Send for Start
impl Sync for Start
impl Unpin for Start
impl UnsafeUnpin for Start
impl UnwindSafe for Start
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