Skip to main content

windmill_api/models/
get_assets_graph_200_response_edges_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.730.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 GetAssetsGraph200ResponseEdgesInner {
16    #[serde(rename = "runnable_path")]
17    pub runnable_path: String,
18    #[serde(rename = "runnable_kind")]
19    pub runnable_kind: models::AssetUsageKind,
20    #[serde(rename = "asset_kind")]
21    pub asset_kind: models::AssetKind,
22    #[serde(rename = "asset_path")]
23    pub asset_path: String,
24    #[serde(rename = "access_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub access_type: Option<Option<models::AssetUsageAccessType>>,
26}
27
28impl GetAssetsGraph200ResponseEdgesInner {
29    pub fn new(runnable_path: String, runnable_kind: models::AssetUsageKind, asset_kind: models::AssetKind, asset_path: String) -> GetAssetsGraph200ResponseEdgesInner {
30        GetAssetsGraph200ResponseEdgesInner {
31            runnable_path,
32            runnable_kind,
33            asset_kind,
34            asset_path,
35            access_type: None,
36        }
37    }
38}
39