/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * 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 PreviewInline {
    /// The code to run
    #[serde(rename = "content")]
    pub content: String,
    /// The arguments to pass to the script or flow
    #[serde(rename = "args")]
    pub args: std::collections::HashMap<String, serde_json::Value>,
    #[serde(rename = "language")]
    pub language: models::ScriptLang,
}

impl PreviewInline {
    pub fn new(content: String, args: std::collections::HashMap<String, serde_json::Value>, language: models::ScriptLang) -> PreviewInline {
        PreviewInline {
            content,
            args,
            language,
        }
    }
}

