jira_api_v2/models/
keyword_operand.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/// KeywordOperand : An operand that is a JQL keyword. See [Advanced searching - keywords reference](https://confluence.atlassian.com/jiracorecloud/advanced-searching-keywords-reference-765593717.html#Advancedsearching-keywordsreference-EMPTYEMPTY) for more information about operand keywords.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct KeywordOperand {
17    /// The keyword that is the operand value.
18    #[serde(rename = "keyword")]
19    pub keyword: Keyword,
20}
21
22impl KeywordOperand {
23    /// An operand that is a JQL keyword. See [Advanced searching - keywords reference](https://confluence.atlassian.com/jiracorecloud/advanced-searching-keywords-reference-765593717.html#Advancedsearching-keywordsreference-EMPTYEMPTY) for more information about operand keywords.
24    pub fn new(keyword: Keyword) -> KeywordOperand {
25        KeywordOperand {
26            keyword,
27        }
28    }
29}
30/// The keyword that is the operand value.
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Keyword {
33    #[serde(rename = "empty")]
34    Empty,
35}
36
37impl Default for Keyword {
38    fn default() -> Keyword {
39        Self::Empty
40    }
41}
42