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