jira_api_v2/models/
jql_query_unitary_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/// JqlQueryUnitaryOperand : An operand that can be part of a list operand.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JqlQueryUnitaryOperand {
17    /// The operand value.
18    #[serde(rename = "value")]
19    pub value: String,
20    /// The name of the function.
21    #[serde(rename = "function")]
22    pub function: String,
23    /// The list of function arguments.
24    #[serde(rename = "arguments")]
25    pub arguments: Vec<String>,
26    /// The keyword that is the operand value.
27    #[serde(rename = "keyword")]
28    pub keyword: Keyword,
29}
30
31impl JqlQueryUnitaryOperand {
32    /// An operand that can be part of a list operand.
33    pub fn new(value: String, function: String, arguments: Vec<String>, keyword: Keyword) -> JqlQueryUnitaryOperand {
34        JqlQueryUnitaryOperand {
35            value,
36            function,
37            arguments,
38            keyword,
39        }
40    }
41}
42/// The keyword that is the operand value.
43#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
44pub enum Keyword {
45    #[serde(rename = "empty")]
46    Empty,
47}
48
49impl Default for Keyword {
50    fn default() -> Keyword {
51        Self::Empty
52    }
53}
54