pub struct Graph {Show 13 fields
pub name: Symbol,
pub version: String,
pub api: String,
pub input: Option<Expr>,
pub output: Option<Expr>,
pub nodes: Vec<Node>,
pub edges: Vec<Edge>,
pub cells: Vec<Cell>,
pub scheduler: Scheduler,
pub budget: Budget,
pub capabilities: Vec<Symbol>,
pub metadata: Vec<(Symbol, Expr)>,
pub tests: Vec<GraphTest>,
}Expand description
Canonical in-memory representation of topology graph data.
Fields§
§name: SymbolGraph name.
version: StringGraph artifact version.
api: StringCanonical topology data API tag.
input: Option<Expr>Optional public input shape expression.
output: Option<Expr>Optional public output shape expression.
nodes: Vec<Node>Graph nodes in deterministic declaration order.
edges: Vec<Edge>Graph edges in deterministic declaration order.
cells: Vec<Cell>Graph state cells.
scheduler: SchedulerRun scheduling policy.
budget: BudgetRun budget limits.
capabilities: Vec<Symbol>Capabilities required by this graph.
metadata: Vec<(Symbol, Expr)>Extra graph metadata.
tests: Vec<GraphTest>Embedded graph tests.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnsafeUnpin for Graph
impl UnwindSafe for Graph
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