Skip to main content

windmill_api/models/
create_deployment_request_comment_request.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.684.1
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 CreateDeploymentRequestCommentRequest {
16    #[serde(rename = "body")]
17    pub body: String,
18    #[serde(rename = "parent_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub parent_id: Option<Option<i64>>,
20    #[serde(rename = "anchor_kind", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub anchor_kind: Option<Option<String>>,
22    #[serde(rename = "anchor_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub anchor_path: Option<Option<String>>,
24}
25
26impl CreateDeploymentRequestCommentRequest {
27    pub fn new(body: String) -> CreateDeploymentRequestCommentRequest {
28        CreateDeploymentRequestCommentRequest {
29            body,
30            parent_id: None,
31            anchor_kind: None,
32            anchor_path: None,
33        }
34    }
35}
36