/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DynamicInputDataRunnableRefOneOf1 {
    #[serde(rename = "source")]
    pub source: Source,
    /// Code content for inline execution
    #[serde(rename = "code")]
    pub code: String,
    #[serde(rename = "language", skip_serializing_if = "Option::is_none")]
    pub language: Option<models::ScriptLang>,
}

impl DynamicInputDataRunnableRefOneOf1 {
    pub fn new(source: Source, code: String) -> DynamicInputDataRunnableRefOneOf1 {
        DynamicInputDataRunnableRefOneOf1 {
            source,
            code,
            language: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Source {
    #[serde(rename = "inline")]
    Inline,
}

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

