#[non_exhaustive]pub struct StepCommand {
pub step_id: String,
pub step_name: String,
pub input: JsonValue,
pub retry: RetryPolicy,
}Expand description
Step definition returned by workflow replay.
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.step_id: StringReplay-stable identity of the step.
step_name: StringRegistered step implementation name.
input: JsonValueJSON input supplied to the step.
retry: RetryPolicyRetry behavior pinned when the step is created.
Implementations§
Source§impl StepCommand
impl StepCommand
Sourcepub fn new(
step_id: impl Into<String>,
step_name: impl Into<String>,
input: JsonValue,
) -> Self
pub fn new( step_id: impl Into<String>, step_name: impl Into<String>, input: JsonValue, ) -> Self
Creates a step definition with the default retry policy.
Sourcepub fn with_retry(self, retry: RetryPolicy) -> Self
pub fn with_retry(self, retry: RetryPolicy) -> Self
Replaces the step’s retry policy.
Trait Implementations§
Source§impl Clone for StepCommand
impl Clone for StepCommand
Source§fn clone(&self) -> StepCommand
fn clone(&self) -> StepCommand
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 StepCommand
impl Debug for StepCommand
Source§impl<'de> Deserialize<'de> for StepCommand
impl<'de> Deserialize<'de> for StepCommand
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 StepCommand
impl PartialEq for StepCommand
Source§impl Serialize for StepCommand
impl Serialize for StepCommand
impl StructuralPartialEq for StepCommand
Auto Trait Implementations§
impl Freeze for StepCommand
impl RefUnwindSafe for StepCommand
impl Send for StepCommand
impl Sync for StepCommand
impl Unpin for StepCommand
impl UnsafeUnpin for StepCommand
impl UnwindSafe for StepCommand
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