pub struct NodeSpec {
pub runs: NodeId,
pub input: Value,
pub label: Option<String>,
}Expand description
A node to create while the run is in flight.
The unit of dynamic fan-out: a step that discovers it has N things to do emits N specs, and the runtime runs them. There is no way to pre-declare this in a static plan, which is why an orchestrator-workers shape cannot be expressed by topology alone.
Fields§
§runs: NodeIdWhich registered step or filter to run.
input: ValueThe input it receives.
label: Option<String>Suffix distinguishing this instance from its siblings.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeSpec
impl<'de> Deserialize<'de> for NodeSpec
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 NodeSpec
impl RefUnwindSafe for NodeSpec
impl Send for NodeSpec
impl Sync for NodeSpec
impl Unpin for NodeSpec
impl UnsafeUnpin for NodeSpec
impl UnwindSafe for NodeSpec
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