pub struct ActivityTask {
pub activity_id: String,
pub activity_type: ActivityType,
pub input: Option<String>,
pub started_event_id: i64,
pub task_token: String,
pub workflow_execution: WorkflowExecution,
}
Expand description
Unit of work sent to an activity worker.
Fields§
§activity_id: String
The unique ID of the task.
activity_type: ActivityType
The type of this activity task.
input: Option<String>
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
started_event_id: i64
The ID of the ActivityTaskStarted
event recorded in the history.
task_token: String
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
workflow_execution: WorkflowExecution
The workflow execution that started this activity task.
Trait Implementations§
Source§impl Clone for ActivityTask
impl Clone for ActivityTask
Source§fn clone(&self) -> ActivityTask
fn clone(&self) -> ActivityTask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ActivityTask
impl Debug for ActivityTask
Source§impl Default for ActivityTask
impl Default for ActivityTask
Source§fn default() -> ActivityTask
fn default() -> ActivityTask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivityTask
impl<'de> Deserialize<'de> for ActivityTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActivityTask
impl PartialEq for ActivityTask
impl StructuralPartialEq for ActivityTask
Auto Trait Implementations§
impl Freeze for ActivityTask
impl RefUnwindSafe for ActivityTask
impl Send for ActivityTask
impl Sync for ActivityTask
impl Unpin for ActivityTask
impl UnwindSafe for ActivityTask
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
Mutably borrows from an owned value. Read more