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.741.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}
24
25impl GetAssetsGraph200ResponseRunnablesInner {
26    pub fn new(path: String, usage_kind: models::AssetUsageKind) -> GetAssetsGraph200ResponseRunnablesInner {
27        GetAssetsGraph200ResponseRunnablesInner {
28            path,
29            usage_kind,
30            in_pipeline: None,
31        }
32    }
33}
34