windmill_api/models/
dynamic_input_data_runnable_ref_one_of.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.551.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 DynamicInputDataRunnableRefOneOf {
16    #[serde(rename = "source")]
17    pub source: Source,
18    /// Path to the deployed script or flow
19    #[serde(rename = "path")]
20    pub path: String,
21    #[serde(rename = "runnable_kind")]
22    pub runnable_kind: models::RunnableKind,
23}
24
25impl DynamicInputDataRunnableRefOneOf {
26    pub fn new(source: Source, path: String, runnable_kind: models::RunnableKind) -> DynamicInputDataRunnableRefOneOf {
27        DynamicInputDataRunnableRefOneOf {
28            source,
29            path,
30            runnable_kind,
31        }
32    }
33}
34/// 
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Source {
37    #[serde(rename = "deployed")]
38    Deployed,
39}
40
41impl Default for Source {
42    fn default() -> Source {
43        Self::Deployed
44    }
45}
46