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
64
65
66
67
/*
* 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
*/
/// FieldDetails : Details about a field.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FieldDetails {
/// The ID of the field.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// The key of the field.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// The name of the field.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Whether the field is a custom field.
#[serde(rename = "custom", skip_serializing_if = "Option::is_none")]
pub custom: Option<bool>,
/// Whether the content of the field can be used to order lists.
#[serde(rename = "orderable", skip_serializing_if = "Option::is_none")]
pub orderable: Option<bool>,
/// Whether the field can be used as a column on the issue navigator.
#[serde(rename = "navigable", skip_serializing_if = "Option::is_none")]
pub navigable: Option<bool>,
/// Whether the content of the field can be searched.
#[serde(rename = "searchable", skip_serializing_if = "Option::is_none")]
pub searchable: Option<bool>,
/// The names that can be used to reference the field in an advanced search. For more information, see [Advanced searching - fields reference](https://confluence.atlassian.com/x/gwORLQ).
#[serde(rename = "clauseNames", skip_serializing_if = "Option::is_none")]
pub clause_names: Option<Vec<String>>,
/// The scope of the field.
#[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
pub scope: Option<crate::models::Scope>,
/// The data schema for the field.
#[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
pub schema: Option<crate::models::JsonTypeBean>,
}
impl FieldDetails {
/// Details about a field.
pub fn new() -> FieldDetails {
FieldDetails {
id: None,
key: None,
name: None,
custom: None,
orderable: None,
navigable: None,
searchable: None,
clause_names: None,
scope: None,
schema: None,
}
}
}