pub struct GraphSpec {
pub spec_version: String,
pub name: String,
pub entry: String,
pub output_key: Option<String>,
pub nodes: Vec<NodeSpec>,
pub edges: Vec<EdgeSpec>,
pub max_iterations: Option<usize>,
pub max_parallelism: Option<usize>,
pub reducers: BTreeMap<String, ReducerKind>,
}Fields§
§spec_version: String§name: String§entry: String§output_key: Option<String>Explicit state key returned as final_state. When absent, legacy graphs
continue to expose __input__ as their terminal output.
nodes: Vec<NodeSpec>§edges: Vec<EdgeSpec>§max_iterations: Option<usize>§max_parallelism: Option<usize>§reducers: BTreeMap<String, ReducerKind>Implementations§
Source§impl GraphSpec
impl GraphSpec
Sourcepub fn executable_node_type(
node_type: &NodeType,
) -> Result<&'static str, String>
pub fn executable_node_type( node_type: &NodeType, ) -> Result<&'static str, String>
Return the executable contract for every declared node type. Reserved effectful classes are deliberately rejected before registration.
pub fn normalize(self) -> Self
pub fn warnings(&self) -> Vec<String>
Sourcepub fn resume_eligibility(&self) -> Result<ResumeEligibility, String>
pub fn resume_eligibility(&self) -> Result<ResumeEligibility, String>
Classify resume support from the declarative graph only. Runtime observations never upgrade an ineligible graph into the supported lane.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphSpec
impl<'de> Deserialize<'de> for GraphSpec
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 GraphSpec
impl RefUnwindSafe for GraphSpec
impl Send for GraphSpec
impl Sync for GraphSpec
impl Unpin for GraphSpec
impl UnsafeUnpin for GraphSpec
impl UnwindSafe for GraphSpec
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