pub enum SignalStepResolution {
Resolved {
run_id: Uuid,
run_resumed: bool,
},
NotWaiting {
output: Option<Value>,
},
}Expand description
Outcome of SignalStore::resolve_signal_step.
§Examples
use ironflow_store::entities::SignalStepResolution;
use uuid::Uuid;
let resolution = SignalStepResolution::Resolved {
run_id: Uuid::now_v7(),
run_resumed: true,
};
let json = serde_json::to_value(&resolution)?;
assert_eq!(json["outcome"], "resolved");Variants§
Resolved
The step was waiting and is now completed with the given output.
Fields
NotWaiting
The step was no longer waiting: another delivery or a timeout won.
Trait Implementations§
Source§impl Clone for SignalStepResolution
impl Clone for SignalStepResolution
Source§impl Debug for SignalStepResolution
impl Debug for SignalStepResolution
Source§impl<'de> Deserialize<'de> for SignalStepResolution
impl<'de> Deserialize<'de> for SignalStepResolution
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 SignalStepResolution
impl PartialEq for SignalStepResolution
Source§impl Serialize for SignalStepResolution
impl Serialize for SignalStepResolution
impl StructuralPartialEq for SignalStepResolution
Auto Trait Implementations§
impl Freeze for SignalStepResolution
impl RefUnwindSafe for SignalStepResolution
impl Send for SignalStepResolution
impl Sync for SignalStepResolution
impl Unpin for SignalStepResolution
impl UnsafeUnpin for SignalStepResolution
impl UnwindSafe for SignalStepResolution
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