windmill_api/models/
edit_resource.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.539.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 EditResource {
16    /// The path to the resource
17    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18    pub path: Option<String>,
19    /// The new description of the resource
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub value: Option<Option<serde_json::Value>>,
24    /// The new resource_type to be associated with the resource
25    #[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")]
26    pub resource_type: Option<String>,
27}
28
29impl EditResource {
30    pub fn new() -> EditResource {
31        EditResource {
32            path: None,
33            description: None,
34            value: None,
35            resource_type: None,
36        }
37    }
38}
39