windmill-api 1.792.0

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.792.0
 * 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 GetResourceVersion200Response {
    #[serde(rename = "id")]
    pub id: i64,
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "created_by", skip_serializing_if = "Option::is_none")]
    pub created_by: Option<String>,
    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub value: Option<Option<serde_json::Value>>,
    #[serde(rename = "missing_references")]
    pub missing_references: Vec<String>,
}

impl GetResourceVersion200Response {
    pub fn new(id: i64, created_at: String, missing_references: Vec<String>) -> GetResourceVersion200Response {
        GetResourceVersion200Response {
            id,
            created_at,
            created_by: None,
            value: None,
            missing_references,
        }
    }
}