pub struct GraphDefinition {
pub inputs: Vec<String>,
pub outputs: Vec<String>,
pub nodes: Vec<GraphNode>,
pub edges: Vec<GraphEdge>,
}Expand description
Model graph definition
Fields§
§inputs: Vec<String>Input nodes
outputs: Vec<String>Output nodes
nodes: Vec<GraphNode>Graph nodes (layers)
edges: Vec<GraphEdge>Graph edges (connections)
Trait Implementations§
Source§impl Clone for GraphDefinition
impl Clone for GraphDefinition
Source§fn clone(&self) -> GraphDefinition
fn clone(&self) -> GraphDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphDefinition
impl Debug for GraphDefinition
Source§impl<'de> Deserialize<'de> for GraphDefinition
impl<'de> Deserialize<'de> for GraphDefinition
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 GraphDefinition
impl RefUnwindSafe for GraphDefinition
impl Send for GraphDefinition
impl Sync for GraphDefinition
impl Unpin for GraphDefinition
impl UnsafeUnpin for GraphDefinition
impl UnwindSafe for GraphDefinition
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