pub struct GraphSpec {
pub id: String,
pub interface: GraphInterface,
pub nodes: Vec<NodeSpec>,
pub edges: Vec<EdgeSpec>,
pub search_space_fingerprint: Option<String>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§id: String§interface: GraphInterface§nodes: Vec<NodeSpec>§edges: Vec<EdgeSpec>§search_space_fingerprint: Option<String>§metadata: BTreeMap<String, Value>Implementations§
Source§impl GraphSpec
impl GraphSpec
pub fn validate(&self) -> Result<()>
pub fn topological_order(&self) -> Result<Vec<NodeId>>
pub fn parallel_levels(&self) -> Result<Vec<Vec<NodeId>>>
pub fn upstream_nodes(&self, node_id: &NodeId) -> Vec<NodeId>
pub fn downstream_nodes(&self, node_id: &NodeId) -> Vec<NodeId>
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
impl StructuralPartialEq for GraphSpec
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