pub struct Subgraph {
pub workflow_id: WorkflowId,
pub run_id: RunId,
pub dag: Dag<Arc<dyn StatefulStep>>,
pub schema: Arc<StateSchema>,
pub checkpointer: Arc<dyn Checkpointer>,
pub input_channels: Vec<String>,
pub output_channels: Vec<String>,
}Expand description
Subgraph-as-callable. Returns a JSON object with two keys:
outputs (the projected output channels) and private_state
(the full child snapshot, included when callers want to inspect
child-only channels).
Fields§
§workflow_id: WorkflowId§run_id: RunId§dag: Dag<Arc<dyn StatefulStep>>§schema: Arc<StateSchema>§checkpointer: Arc<dyn Checkpointer>§input_channels: Vec<String>§output_channels: Vec<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Subgraph
impl !RefUnwindSafe for Subgraph
impl Send for Subgraph
impl Sync for Subgraph
impl Unpin for Subgraph
impl UnsafeUnpin for Subgraph
impl !UnwindSafe for Subgraph
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