Skip to main content

windmill_api/models/
create_app_raw_source_request_value.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.780.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 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.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateAppRawSourceRequestValue {
17    #[serde(rename = "files")]
18    pub files: std::collections::HashMap<String, String>,
19    #[serde(rename = "runnables", skip_serializing_if = "Option::is_none")]
20    pub runnables: Option<serde_json::Value>,
21    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
22    pub data: Option<serde_json::Value>,
23}
24
25impl CreateAppRawSourceRequestValue {
26    /// 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.
27    pub fn new(files: std::collections::HashMap<String, String>) -> CreateAppRawSourceRequestValue {
28        CreateAppRawSourceRequestValue {
29            files,
30            runnables: None,
31            data: None,
32        }
33    }
34}
35