#[non_exhaustive]pub struct WorkflowActivity {Show 35 fields
pub id: Option<String>,
pub idempotency_key: Option<String>,
pub sequence: Option<i64>,
pub activity_type: Option<String>,
pub activity_class: Option<String>,
pub execution_mode: Option<String>,
pub local_activity: Option<bool>,
pub history_authority: Option<String>,
pub diagnostic_only: Option<bool>,
pub history_event_types: Option<Vec<String>>,
pub history_unsupported_reason: Option<String>,
pub reused_from_run_id: Option<String>,
pub reused_activity_execution_id: Option<String>,
pub reused_recorded_at: Option<String>,
pub row_status: Option<String>,
pub parallel_group_kind: Option<String>,
pub parallel_group_id: Option<String>,
pub parallel_group_base_sequence: Option<i64>,
pub parallel_group_size: Option<i64>,
pub parallel_group_index: Option<i64>,
pub parallel_group_path: Option<Vec<BTreeMap<String, Value>>>,
pub attempt_id: Option<String>,
pub worker_attempt_id: Option<String>,
pub status: Option<String>,
pub attempt_count: Option<i64>,
pub retry_policy: Option<Value>,
pub connection: Option<String>,
pub queue: Option<String>,
pub last_heartbeat_at: Option<String>,
pub last_heartbeat_progress: Option<Value>,
pub created_at: Option<String>,
pub started_at: Option<String>,
pub closed_at: Option<String>,
pub attempts: Option<Vec<WorkflowActivityAttempt>>,
pub raw: BTreeMap<String, Value>,
}Expand description
A run’s activity metadata. Missing or null optional fields stay unavailable.
Status and authority strings are Server-owned and may include unsupported, diagnostic or future states. This snapshot does not grant worker authority.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>§idempotency_key: Option<String>§sequence: Option<i64>§activity_type: Option<String>§activity_class: Option<String>§execution_mode: Option<String>§local_activity: Option<bool>§diagnostic_only: Option<bool>§history_event_types: Option<Vec<String>>§history_unsupported_reason: Option<String>§reused_from_run_id: Option<String>§reused_activity_execution_id: Option<String>§reused_recorded_at: Option<String>§row_status: Option<String>§parallel_group_kind: Option<String>§parallel_group_id: Option<String>§parallel_group_base_sequence: Option<i64>§parallel_group_size: Option<i64>§parallel_group_index: Option<i64>§parallel_group_path: Option<Vec<BTreeMap<String, Value>>>§attempt_id: Option<String>§worker_attempt_id: Option<String>§status: Option<String>§attempt_count: Option<i64>§retry_policy: Option<Value>The Server’s policy snapshot, preserved without reinterpreting its version.
connection: Option<String>§queue: Option<String>§last_heartbeat_at: Option<String>§last_heartbeat_progress: Option<Value>§created_at: Option<String>§started_at: Option<String>§closed_at: Option<String>§attempts: Option<Vec<WorkflowActivityAttempt>>None is unavailable; Some(vec![]) is an explicitly empty attempt list.
raw: BTreeMap<String, Value>Unrecognized fields, including any producer-specific inspection values.
Trait Implementations§
Source§impl Clone for WorkflowActivity
impl Clone for WorkflowActivity
Source§fn clone(&self) -> WorkflowActivity
fn clone(&self) -> WorkflowActivity
Returns a copy 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 WorkflowActivity
impl Debug for WorkflowActivity
Source§impl<'de> Deserialize<'de> for WorkflowActivity
impl<'de> Deserialize<'de> for WorkflowActivity
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
Auto Trait Implementations§
impl Freeze for WorkflowActivity
impl RefUnwindSafe for WorkflowActivity
impl Send for WorkflowActivity
impl Sync for WorkflowActivity
impl Unpin for WorkflowActivity
impl UnwindSafe for WorkflowActivity
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