Skip to main content

windmill_api/models/
get_assets_graph_200_response_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.746.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 GetAssetsGraph200ResponseRunnablesInner {
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::GetAssetsGraph200ResponseRunnablesInnerMacrosInner>>,
26}
27
28impl GetAssetsGraph200ResponseRunnablesInner {
29    pub fn new(path: String, usage_kind: models::AssetUsageKind) -> GetAssetsGraph200ResponseRunnablesInner {
30        GetAssetsGraph200ResponseRunnablesInner {
31            path,
32            usage_kind,
33            in_pipeline: None,
34            macros: None,
35        }
36    }
37}
38