windmill_api/models/dbt_column_lineage.rs
1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.806.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DbtColumnLineage : The direct column-to-column lineage the asked-for relations' columns sit in — the connected component around them — in the terms the canvas draws: relations and columns, never dbt's node ids.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DbtColumnLineage {
17 #[serde(rename = "edges")]
18 pub edges: Vec<models::DbtColumnLineageEdgesInner>,
19 /// The component reaches further than `edges`, which holds the part nearest the asked-for relations. A trace that stops short is otherwise indistinguishable from one that ends.
20 #[serde(rename = "truncated")]
21 pub truncated: bool,
22}
23
24impl DbtColumnLineage {
25 /// The direct column-to-column lineage the asked-for relations' columns sit in — the connected component around them — in the terms the canvas draws: relations and columns, never dbt's node ids.
26 pub fn new(edges: Vec<models::DbtColumnLineageEdgesInner>, truncated: bool) -> DbtColumnLineage {
27 DbtColumnLineage {
28 edges,
29 truncated,
30 }
31 }
32}
33