jira_api_v2/models/
field_details.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/// FieldDetails : Details about a field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FieldDetails {
17    /// The ID of the field.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The key of the field.
21    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
22    pub key: Option<String>,
23    /// The name of the field.
24    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25    pub name: Option<String>,
26    /// Whether the field is a custom field.
27    #[serde(rename = "custom", skip_serializing_if = "Option::is_none")]
28    pub custom: Option<bool>,
29    /// Whether the content of the field can be used to order lists.
30    #[serde(rename = "orderable", skip_serializing_if = "Option::is_none")]
31    pub orderable: Option<bool>,
32    /// Whether the field can be used as a column on the issue navigator.
33    #[serde(rename = "navigable", skip_serializing_if = "Option::is_none")]
34    pub navigable: Option<bool>,
35    /// Whether the content of the field can be searched.
36    #[serde(rename = "searchable", skip_serializing_if = "Option::is_none")]
37    pub searchable: Option<bool>,
38    /// 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).
39    #[serde(rename = "clauseNames", skip_serializing_if = "Option::is_none")]
40    pub clause_names: Option<Vec<String>>,
41    /// The scope of the field.
42    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
43    pub scope: Option<models::Scope>,
44    /// The data schema for the field.
45    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
46    pub schema: Option<Box<models::JsonTypeBean>>,
47}
48
49impl FieldDetails {
50    /// Details about a field.
51    pub fn new() -> FieldDetails {
52        FieldDetails {
53            id: None,
54            key: None,
55            name: None,
56            custom: None,
57            orderable: None,
58            navigable: None,
59            searchable: None,
60            clause_names: None,
61            scope: None,
62            schema: None,
63        }
64    }
65}
66