pub enum RuntimeCommand {
Complete {
output: JsonValue,
},
Fail {
error: String,
},
ScheduleStep {
step_id: String,
step_name: String,
input: JsonValue,
retry: RetryPolicy,
},
ScheduleSteps {
steps: Vec<StepCommand>,
},
WaitUntil {
wait_id: String,
resume_at: DateTime<Utc>,
},
CreateHook {
hook_id: String,
token: String,
metadata: JsonValue,
},
}Expand description
Command emitted by the workflow runtime after replay.
Variants§
Implementations§
Source§impl RuntimeCommand
impl RuntimeCommand
pub fn schedule_step( step_id: impl Into<String>, step_name: impl Into<String>, input: JsonValue, ) -> Self
pub fn schedule_steps(steps: Vec<StepCommand>) -> Self
Trait Implementations§
Source§impl Clone for RuntimeCommand
impl Clone for RuntimeCommand
Source§fn clone(&self) -> RuntimeCommand
fn clone(&self) -> RuntimeCommand
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 RuntimeCommand
impl Debug for RuntimeCommand
Source§impl<'de> Deserialize<'de> for RuntimeCommand
impl<'de> Deserialize<'de> for RuntimeCommand
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 RuntimeCommand
impl PartialEq for RuntimeCommand
Source§fn eq(&self, other: &RuntimeCommand) -> bool
fn eq(&self, other: &RuntimeCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeCommand
impl Serialize for RuntimeCommand
impl StructuralPartialEq for RuntimeCommand
Auto Trait Implementations§
impl Freeze for RuntimeCommand
impl RefUnwindSafe for RuntimeCommand
impl Send for RuntimeCommand
impl Sync for RuntimeCommand
impl Unpin for RuntimeCommand
impl UnsafeUnpin for RuntimeCommand
impl UnwindSafe for RuntimeCommand
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