Skip to main content

windmill_api/models/
asset_graph_runnables_inner.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.776.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AssetGraphRunnablesInner {
16    #[serde(rename = "path")]
17    pub path: String,
18    #[serde(rename = "usage_kind")]
19    pub usage_kind: models::AssetUsageKind,
20    /// True iff the script is a pipeline member (deployed with `// pipeline`). Omitted when false.
21    #[serde(rename = "in_pipeline", skip_serializing_if = "Option::is_none")]
22    pub in_pipeline: Option<bool>,
23    /// Macros this script provides to the workspace registry (deployed `// macros` library). Omitted when empty.
24    #[serde(rename = "macros", skip_serializing_if = "Option::is_none")]
25    pub macros: Option<Vec<models::AssetGraphRunnablesInnerMacrosInner>>,
26    #[serde(rename = "dbt", skip_serializing_if = "Option::is_none")]
27    pub dbt: Option<Box<models::AssetGraphRunnablesInnerDbt>>,
28}
29
30impl AssetGraphRunnablesInner {
31    pub fn new(path: String, usage_kind: models::AssetUsageKind) -> AssetGraphRunnablesInner {
32        AssetGraphRunnablesInner {
33            path,
34            usage_kind,
35            in_pipeline: None,
36            macros: None,
37            dbt: None,
38        }
39    }
40}
41