Struct RunData
pub struct RunData {
pub outputs: BTreeMap<u32, Value>,
}Expand description
Accumulated step outputs, shared by schema validation and routing.
Fields§
§outputs: BTreeMap<u32, Value>Implementations§
Source§impl RunData
impl RunData
pub fn from_step_results(results: &[SopStepResult]) -> RunData
pub fn insert_output(&mut self, step_number: u32, output: Value)
pub fn insert_output_str(&mut self, step_number: u32, output: &str)
pub fn merge(&mut self, other: RunData)
pub fn to_payload(&self) -> Value
pub fn get_path(&self, path: &str) -> Option<Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunData
impl<'de> Deserialize<'de> for RunData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RunData
impl Serialize for RunData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RunData
Auto Trait Implementations§
impl Freeze for RunData
impl RefUnwindSafe for RunData
impl Send for RunData
impl Sync for RunData
impl Unpin for RunData
impl UnsafeUnpin for RunData
impl UnwindSafe for RunData
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more