hi_jira2/models/
update_custom_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
11/// UpdateCustomFieldDetails : Details of a custom field.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct UpdateCustomFieldDetails {
17    /// The name of the custom field. It doesn't have to be unique. The maximum length is 255 characters.
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// The description of the custom field. The maximum length is 40000 characters.
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// The searcher that defines the way the field is searched in Jira. It can be set to `null`, otherwise you must specify the valid searcher for the field type, as listed below (abbreviated values shown):   *  `cascadingselect`: `cascadingselectsearcher`  *  `datepicker`: `daterange`  *  `datetime`: `datetimerange`  *  `float`: `exactnumber` or `numberrange`  *  `grouppicker`: `grouppickersearcher`  *  `importid`: `exactnumber` or `numberrange`  *  `labels`: `labelsearcher`  *  `multicheckboxes`: `multiselectsearcher`  *  `multigrouppicker`: `multiselectsearcher`  *  `multiselect`: `multiselectsearcher`  *  `multiuserpicker`: `userpickergroupsearcher`  *  `multiversion`: `versionsearcher`  *  `project`: `projectsearcher`  *  `radiobuttons`: `multiselectsearcher`  *  `readonlyfield`: `textsearcher`  *  `select`: `multiselectsearcher`  *  `textarea`: `textsearcher`  *  `textfield`: `textsearcher`  *  `url`: `exacttextsearcher`  *  `userpicker`: `userpickergroupsearcher`  *  `version`: `versionsearcher`
24    #[serde(rename = "searcherKey", skip_serializing_if = "Option::is_none")]
25    pub searcher_key: Option<SearcherKey>,
26}
27
28impl UpdateCustomFieldDetails {
29    /// Details of a custom field.
30    pub fn new() -> UpdateCustomFieldDetails {
31        UpdateCustomFieldDetails {
32            name: None,
33            description: None,
34            searcher_key: None,
35        }
36    }
37}
38
39/// The searcher that defines the way the field is searched in Jira. It can be set to `null`, otherwise you must specify the valid searcher for the field type, as listed below (abbreviated values shown):   *  `cascadingselect`: `cascadingselectsearcher`  *  `datepicker`: `daterange`  *  `datetime`: `datetimerange`  *  `float`: `exactnumber` or `numberrange`  *  `grouppicker`: `grouppickersearcher`  *  `importid`: `exactnumber` or `numberrange`  *  `labels`: `labelsearcher`  *  `multicheckboxes`: `multiselectsearcher`  *  `multigrouppicker`: `multiselectsearcher`  *  `multiselect`: `multiselectsearcher`  *  `multiuserpicker`: `userpickergroupsearcher`  *  `multiversion`: `versionsearcher`  *  `project`: `projectsearcher`  *  `radiobuttons`: `multiselectsearcher`  *  `readonlyfield`: `textsearcher`  *  `select`: `multiselectsearcher`  *  `textarea`: `textsearcher`  *  `textfield`: `textsearcher`  *  `url`: `exacttextsearcher`  *  `userpicker`: `userpickergroupsearcher`  *  `version`: `versionsearcher`
40#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
41pub enum SearcherKey {
42    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:cascadingselectsearcher")]
43    Cascadingselectsearcher,
44    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:daterange")]
45    Daterange,
46    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:datetimerange")]
47    Datetimerange,
48    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:exactnumber")]
49    Exactnumber,
50    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:exacttextsearcher")]
51    Exacttextsearcher,
52    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher")]
53    Grouppickersearcher,
54    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:labelsearcher")]
55    Labelsearcher,
56    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher")]
57    Multiselectsearcher,
58    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:numberrange")]
59    Numberrange,
60    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:projectsearcher")]
61    Projectsearcher,
62    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:textsearcher")]
63    Textsearcher,
64    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher")]
65    Userpickergroupsearcher,
66    #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:versionsearcher")]
67    Versionsearcher,
68}
69
70impl Default for SearcherKey {
71    fn default() -> SearcherKey {
72        Self::Cascadingselectsearcher
73    }
74}
75