windmill_api/models/
input.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.2
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 Input {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "created_by")]
21    pub created_by: String,
22    #[serde(rename = "created_at")]
23    pub created_at: String,
24    #[serde(rename = "is_public")]
25    pub is_public: bool,
26    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
27    pub success: Option<bool>,
28}
29
30impl Input {
31    pub fn new(id: String, name: String, created_by: String, created_at: String, is_public: bool) -> Input {
32        Input {
33            id,
34            name,
35            created_by,
36            created_at,
37            is_public,
38            success: None,
39        }
40    }
41}
42