pub struct WorkflowInvocation {
pub run_id: String,
pub spec: WorkflowSpec,
pub input: JsonValue,
pub history: Vec<FlowEventEnvelope>,
}Expand description
Workflow replay request passed to a runtime implementation.
Fields§
§run_id: String§spec: WorkflowSpec§input: JsonValue§history: Vec<FlowEventEnvelope>Implementations§
Source§impl WorkflowInvocation
impl WorkflowInvocation
Sourcepub fn context(&self) -> WorkflowContext<'_>
pub fn context(&self) -> WorkflowContext<'_>
Build a deterministic helper view over this workflow invocation.
Sourcepub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
pub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
Decode the workflow input into a host-defined serde type.
Trait Implementations§
Source§impl Clone for WorkflowInvocation
impl Clone for WorkflowInvocation
Source§fn clone(&self) -> WorkflowInvocation
fn clone(&self) -> WorkflowInvocation
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 WorkflowInvocation
impl Debug for WorkflowInvocation
Source§impl<'de> Deserialize<'de> for WorkflowInvocation
impl<'de> Deserialize<'de> for WorkflowInvocation
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 WorkflowInvocation
impl RefUnwindSafe for WorkflowInvocation
impl Send for WorkflowInvocation
impl Sync for WorkflowInvocation
impl Unpin for WorkflowInvocation
impl UnsafeUnpin for WorkflowInvocation
impl UnwindSafe for WorkflowInvocation
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