jira_api_v2/models/
application_property.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ApplicationProperty : Details of an application property.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApplicationProperty {
17    /// The ID of the application property. The ID and key are the same.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The key of the application property. The ID and key are the same.
21    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
22    pub key: Option<String>,
23    /// The new value.
24    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
25    pub value: Option<String>,
26    /// The name of the application property.
27    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
28    pub name: Option<String>,
29    /// The description of the application property.
30    #[serde(rename = "desc", skip_serializing_if = "Option::is_none")]
31    pub desc: Option<String>,
32    /// The data type of the application property.
33    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
34    pub r#type: Option<String>,
35    /// The default value of the application property.
36    #[serde(rename = "defaultValue", skip_serializing_if = "Option::is_none")]
37    pub default_value: Option<String>,
38    #[serde(rename = "example", skip_serializing_if = "Option::is_none")]
39    pub example: Option<String>,
40    /// The allowed values, if applicable.
41    #[serde(rename = "allowedValues", skip_serializing_if = "Option::is_none")]
42    pub allowed_values: Option<Vec<String>>,
43}
44
45impl ApplicationProperty {
46    /// Details of an application property.
47    pub fn new() -> ApplicationProperty {
48        ApplicationProperty {
49            id: None,
50            key: None,
51            value: None,
52            name: None,
53            desc: None,
54            r#type: None,
55            default_value: None,
56            example: None,
57            allowed_values: None,
58        }
59    }
60}
61