pub struct SubFlow {
pub id: String,
pub label: String,
pub node_ids: Vec<String>,
pub retry: Option<u32>,
}Expand description
A sub-flow: a named, first-class execution unit grouping a contiguous
set of member nodes. The executor treats it as a single composite unit with
one entry and one exit (derived from the edges crossing its boundary) and
can retry the whole unit on failure. Membership is by node id; the nodes
themselves stay in the flat FlowGraph.nodes list.
Fields§
§id: String§label: String§node_ids: Vec<String>Ids of the member nodes (a subset of FlowGraph.nodes). Serializes as
nodeIds for the TS SubFlowDto.
retry: Option<u32>Re-run the whole unit up to this many times if it fails. None runs it
once (no retry).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SubFlow
impl<'de> Deserialize<'de> for SubFlow
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 SubFlow
impl RefUnwindSafe for SubFlow
impl Send for SubFlow
impl Sync for SubFlow
impl Unpin for SubFlow
impl UnsafeUnpin for SubFlow
impl UnwindSafe for SubFlow
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