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 CreateDeploymentRequestCommentRequest {
    #[serde(rename = "body")]
    pub body: String,
    #[serde(rename = "parent_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<Option<i64>>,
    #[serde(rename = "anchor_kind", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub anchor_kind: Option<Option<String>>,
    #[serde(rename = "anchor_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub anchor_path: Option<Option<String>>,
}

impl CreateDeploymentRequestCommentRequest {
    pub fn new(body: String) -> CreateDeploymentRequestCommentRequest {
        CreateDeploymentRequestCommentRequest {
            body,
            parent_id: None,
            anchor_kind: None,
            anchor_path: None,
        }
    }
}