windmill_api/models/
update_app_request.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.505.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateAppRequest {
16    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
17    pub path: Option<String>,
18    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
19    pub summary: Option<String>,
20    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub value: Option<Option<serde_json::Value>>,
22    #[serde(rename = "policy", skip_serializing_if = "Option::is_none")]
23    pub policy: Option<Box<models::Policy>>,
24    #[serde(rename = "deployment_message", skip_serializing_if = "Option::is_none")]
25    pub deployment_message: Option<String>,
26    #[serde(rename = "custom_path", skip_serializing_if = "Option::is_none")]
27    pub custom_path: Option<String>,
28}
29
30impl UpdateAppRequest {
31    pub fn new() -> UpdateAppRequest {
32        UpdateAppRequest {
33            path: None,
34            summary: None,
35            value: None,
36            policy: None,
37            deployment_message: None,
38            custom_path: None,
39        }
40    }
41}
42