windmill-api 1.682.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.682.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 DynamicInputDataRunnableRefOneOf {
    #[serde(rename = "source")]
    pub source: Source,
    /// Path to the deployed script or flow
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "runnable_kind")]
    pub runnable_kind: models::RunnableKind,
}

impl DynamicInputDataRunnableRefOneOf {
    pub fn new(source: Source, path: String, runnable_kind: models::RunnableKind) -> DynamicInputDataRunnableRefOneOf {
        DynamicInputDataRunnableRefOneOf {
            source,
            path,
            runnable_kind,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Source {
    #[serde(rename = "deployed")]
    Deployed,
}

impl Default for Source {
    fn default() -> Source {
        Self::Deployed
    }
}