windmill-api 1.741.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.741.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAssetsGraph200ResponseEdgesInner {
    #[serde(rename = "runnable_path")]
    pub runnable_path: String,
    #[serde(rename = "runnable_kind")]
    pub runnable_kind: models::AssetUsageKind,
    #[serde(rename = "asset_kind")]
    pub asset_kind: models::AssetKind,
    #[serde(rename = "asset_path")]
    pub asset_path: String,
    #[serde(rename = "access_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub access_type: Option<Option<models::AssetUsageAccessType>>,
}

impl GetAssetsGraph200ResponseEdgesInner {
    pub fn new(runnable_path: String, runnable_kind: models::AssetUsageKind, asset_kind: models::AssetKind, asset_path: String) -> GetAssetsGraph200ResponseEdgesInner {
        GetAssetsGraph200ResponseEdgesInner {
            runnable_path,
            runnable_kind,
            asset_kind,
            asset_path,
            access_type: None,
        }
    }
}