windmill_api/models/update_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/// 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.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateAppRawSourceRequestValue {
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 UpdateAppRawSourceRequestValue {
26 /// 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.
27 pub fn new(files: std::collections::HashMap<String, String>) -> UpdateAppRawSourceRequestValue {
28 UpdateAppRawSourceRequestValue {
29 files,
30 runnables: None,
31 data: None,
32 }
33 }
34}
35