Skip to main content

gitbundle_sdk/models/
variable_patch_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VariablePatchInput {
17    #[serde(
18        rename = "data",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub data: Option<Option<String>>,
24    #[serde(
25        rename = "description",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub description: Option<Option<String>>,
31    #[serde(
32        rename = "identifier",
33        default,
34        with = "::serde_with::rust::double_option",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub identifier: Option<Option<String>>,
38    #[serde(rename = "type")]
39    pub r#type: models::VariableType,
40}
41
42impl VariablePatchInput {
43    pub fn new(r#type: models::VariableType) -> VariablePatchInput {
44        VariablePatchInput {
45            data: None,
46            description: None,
47            identifier: None,
48            r#type,
49        }
50    }
51}