windmill_api/models/
openapi_v3_info.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.511.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 OpenapiV3Info {
16    #[serde(rename = "title")]
17    pub title: String,
18    #[serde(rename = "version")]
19    pub version: String,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "terms_of_service", skip_serializing_if = "Option::is_none")]
23    pub terms_of_service: Option<String>,
24    #[serde(rename = "contact", skip_serializing_if = "Option::is_none")]
25    pub contact: Option<Box<models::OpenapiV3InfoContact>>,
26    #[serde(rename = "license", skip_serializing_if = "Option::is_none")]
27    pub license: Option<Box<models::OpenapiV3InfoLicense>>,
28}
29
30impl OpenapiV3Info {
31    pub fn new(title: String, version: String) -> OpenapiV3Info {
32        OpenapiV3Info {
33            title,
34            version,
35            description: None,
36            terms_of_service: None,
37            contact: None,
38            license: None,
39        }
40    }
41}
42