windmill-api 1.780.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.780.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// CreateAppRawSourceRequestValue : The raw app's value. `files` maps each source path to its content and must contain an entry point; `runnables` and `data` are carried through unchanged.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateAppRawSourceRequestValue {
    #[serde(rename = "files")]
    pub files: std::collections::HashMap<String, String>,
    #[serde(rename = "runnables", skip_serializing_if = "Option::is_none")]
    pub runnables: Option<serde_json::Value>,
    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
    pub data: Option<serde_json::Value>,
}

impl CreateAppRawSourceRequestValue {
    /// The raw app's value. `files` maps each source path to its content and must contain an entry point; `runnables` and `data` are carried through unchanged.
    pub fn new(files: std::collections::HashMap<String, String>) -> CreateAppRawSourceRequestValue {
        CreateAppRawSourceRequestValue {
            files,
            runnables: None,
            data: None,
        }
    }
}