1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// JqlQueryFieldEntityProperty : Details of an entity property.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct JqlQueryFieldEntityProperty {
/// The object on which the property is set.
#[serde(rename = "entity")]
pub entity: String,
/// The key of the property.
#[serde(rename = "key")]
pub key: String,
/// The path in the property value to query.
#[serde(rename = "path")]
pub path: String,
/// The type of the property value extraction. Not available if the extraction for the property is not registered on the instance with the [Entity property](https://developer.atlassian.com/cloud/jira/platform/modules/entity-property/) module.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<Type>,
}
impl JqlQueryFieldEntityProperty {
/// Details of an entity property.
pub fn new(entity: String, key: String, path: String) -> JqlQueryFieldEntityProperty {
JqlQueryFieldEntityProperty {
entity,
key,
path,
_type: None,
}
}
}
/// The type of the property value extraction. Not available if the extraction for the property is not registered on the instance with the [Entity property](https://developer.atlassian.com/cloud/jira/platform/modules/entity-property/) module.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "number")]
Number,
#[serde(rename = "string")]
String,
#[serde(rename = "text")]
Text,
#[serde(rename = "date")]
Date,
#[serde(rename = "user")]
User,
}
impl Default for Type {
fn default() -> Type {
Self::Number
}
}