#[non_exhaustive]pub struct StepInvocation {
pub run_id: String,
pub step_id: String,
pub step_name: String,
pub input: JsonValue,
pub history: Vec<FlowEventEnvelope>,
}Expand description
Step execution request passed to a runtime implementation.
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.run_id: StringDurable identifier of the workflow run that scheduled the step.
step_id: StringReplay-stable identifier of this step invocation.
step_name: StringHost-defined step handler name.
input: JsonValueInput supplied by the workflow command.
history: Vec<FlowEventEnvelope>Complete persisted workflow history in sequence order.
Implementations§
Source§impl StepInvocation
impl StepInvocation
Sourcepub fn new(
run_id: impl Into<String>,
step_id: impl Into<String>,
step_name: impl Into<String>,
input: JsonValue,
history: Vec<FlowEventEnvelope>,
) -> Self
pub fn new( run_id: impl Into<String>, step_id: impl Into<String>, step_name: impl Into<String>, input: JsonValue, history: Vec<FlowEventEnvelope>, ) -> Self
Create a step invocation from its complete durable execution input.
Sourcepub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
pub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
Decode the step input into a host-defined serde type.
Trait Implementations§
Source§impl Clone for StepInvocation
impl Clone for StepInvocation
Source§fn clone(&self) -> StepInvocation
fn clone(&self) -> StepInvocation
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 StepInvocation
impl Debug for StepInvocation
Source§impl<'de> Deserialize<'de> for StepInvocation
impl<'de> Deserialize<'de> for StepInvocation
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 StepInvocation
impl RefUnwindSafe for StepInvocation
impl Send for StepInvocation
impl Sync for StepInvocation
impl Unpin for StepInvocation
impl UnsafeUnpin for StepInvocation
impl UnwindSafe for StepInvocation
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