jira_api_v2/models/
update_custom_field_details.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateCustomFieldDetails {
17 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19 pub name: Option<String>,
20 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22 pub description: Option<String>,
23 #[serde(rename = "searcherKey", skip_serializing_if = "Option::is_none")]
25 pub searcher_key: Option<SearcherKey>,
26}
27
28impl UpdateCustomFieldDetails {
29 pub fn new() -> UpdateCustomFieldDetails {
31 UpdateCustomFieldDetails {
32 name: None,
33 description: None,
34 searcher_key: None,
35 }
36 }
37}
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40pub enum SearcherKey {
41 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:cascadingselectsearcher")]
42 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonCascadingselectsearcher,
43 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:daterange")]
44 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonDaterange,
45 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:datetimerange")]
46 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonDatetimerange,
47 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:exactnumber")]
48 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonExactnumber,
49 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:exacttextsearcher")]
50 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonExacttextsearcher,
51 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher")]
52 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonGrouppickersearcher,
53 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:labelsearcher")]
54 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonLabelsearcher,
55 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher")]
56 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonMultiselectsearcher,
57 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:numberrange")]
58 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonNumberrange,
59 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:projectsearcher")]
60 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonProjectsearcher,
61 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:textsearcher")]
62 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonTextsearcher,
63 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher")]
64 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonUserpickergroupsearcher,
65 #[serde(rename = "com.atlassian.jira.plugin.system.customfieldtypes:versionsearcher")]
66 ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonVersionsearcher,
67}
68
69impl Default for SearcherKey {
70 fn default() -> SearcherKey {
71 Self::ComPeriodAtlassianPeriodJiraPeriodPluginPeriodSystemPeriodCustomfieldtypesColonCascadingselectsearcher
72 }
73}
74