pub struct WorkflowContext {
pub workflow_id: String,
pub workflow_name: String,
pub state: String,
pub variables: HashMap<String, Value>,
}Expand description
Contextual information about a workflow included in every notification payload.
Fields§
§workflow_id: StringUnique workflow instance identifier.
workflow_name: StringHuman-readable workflow name.
state: StringCurrent workflow state string (e.g. "running", "completed", "failed").
variables: HashMap<String, Value>Arbitrary key-value variables from the workflow execution context.
Trait Implementations§
Source§impl Clone for WorkflowContext
impl Clone for WorkflowContext
Source§fn clone(&self) -> WorkflowContext
fn clone(&self) -> WorkflowContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkflowContext
impl Debug for WorkflowContext
Source§impl Default for WorkflowContext
impl Default for WorkflowContext
Source§fn default() -> WorkflowContext
fn default() -> WorkflowContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkflowContext
impl RefUnwindSafe for WorkflowContext
impl Send for WorkflowContext
impl Sync for WorkflowContext
impl Unpin for WorkflowContext
impl UnsafeUnpin for WorkflowContext
impl UnwindSafe for WorkflowContext
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