/*
* 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};
/// UpdateAppRawSourceRequestValue : The raw app's value. `files` maps each source path (e.g. `/index.tsx`, `/App.tsx`, `/package.json`) to its content and must contain an entry point (`/index.tsx`, `/index.ts` or `/index.js`); `runnables` and `data` are carried through unchanged.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAppRawSourceRequestValue {
#[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 UpdateAppRawSourceRequestValue {
/// The raw app's value. `files` maps each source path (e.g. `/index.tsx`, `/App.tsx`, `/package.json`) to its content and must contain an entry point (`/index.tsx`, `/index.ts` or `/index.js`); `runnables` and `data` are carried through unchanged.
pub fn new(files: std::collections::HashMap<String, String>) -> UpdateAppRawSourceRequestValue {
UpdateAppRawSourceRequestValue {
files,
runnables: None,
data: None,
}
}
}