jira_api_v2/models/
entity_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/// EntityProperty : An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EntityProperty {
17    /// The key of the property. Required on create and update.
18    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
19    pub key: Option<String>,
20    /// The value of the property. Required on create and update.
21    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub value: Option<Option<serde_json::Value>>,
23}
24
25impl EntityProperty {
26    /// An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
27    pub fn new() -> EntityProperty {
28        EntityProperty {
29            key: None,
30            value: None,
31        }
32    }
33}
34