windmill-api 1.684.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.684.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetHubScriptByPath200Response {
    #[serde(rename = "content")]
    pub content: String,
    #[serde(rename = "lockfile", skip_serializing_if = "Option::is_none")]
    pub lockfile: Option<String>,
    #[serde(rename = "schema", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub schema: Option<Option<serde_json::Value>>,
    #[serde(rename = "language")]
    pub language: String,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
}

impl GetHubScriptByPath200Response {
    pub fn new(content: String, language: String) -> GetHubScriptByPath200Response {
        GetHubScriptByPath200Response {
            content,
            lockfile: None,
            schema: None,
            language,
            summary: None,
        }
    }
}