pub struct AssetGraph {
pub assets: Vec<AssetGraphAssetsInner>,
pub runnables: Vec<AssetGraphRunnablesInner>,
pub edges: Vec<AssetGraphEdgesInner>,
pub triggers: Vec<AssetGraphTriggersInner>,
pub macro_edges: Option<Vec<AssetGraphMacroEdgesInner>>,
pub test_edges: Option<Vec<AssetGraphTestEdgesInner>>,
pub dbt_edges: Option<Vec<AssetGraphDbtEdgesInner>>,
pub dbt_snapshot_job: Option<Uuid>,
}Fields§
§assets: Vec<AssetGraphAssetsInner>§runnables: Vec<AssetGraphRunnablesInner>§edges: Vec<AssetGraphEdgesInner>§triggers: Vec<AssetGraphTriggersInner>§macro_edges: Option<Vec<AssetGraphMacroEdgesInner>>Macro-library → consumer edges (deploy-recorded call detection plus // use). Omitted when empty.
test_edges: Option<Vec<AssetGraphTestEdgesInner>>Ordering-only "must-run-after" edges — a // data_test relationships (or custom test reading a pipeline asset) requires the referenced asset’s producer to run before the tested script. Not a data-consumption edge; fed into the cascade topo-sort so cold runs order correctly. Omitted when empty.
dbt_edges: Option<Vec<AssetGraphDbtEdgesInner>>ref() lineage BETWEEN two dbt models, in the terms the canvas draws — the relations, not dbt’s node ids. Without it every model hangs off the one dbt runnable and the project reads as a flat fan-out. Omitted when empty.
dbt_snapshot_job: Option<Uuid>The job whose own snapshot the dbt half was resolved from, when one was asked for and found. A run page polls the graph while its job runs, because a dynamic descriptor’s snapshot is written mid-run, and this is what tells it to stop. Omitted when the answer came from the version’s deployed graph.
Implementations§
Source§impl AssetGraph
impl AssetGraph
pub fn new( assets: Vec<AssetGraphAssetsInner>, runnables: Vec<AssetGraphRunnablesInner>, edges: Vec<AssetGraphEdgesInner>, triggers: Vec<AssetGraphTriggersInner>, ) -> AssetGraph
Trait Implementations§
Source§impl Clone for AssetGraph
impl Clone for AssetGraph
Source§fn clone(&self) -> AssetGraph
fn clone(&self) -> AssetGraph
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more