Skip to main content

jira/gen/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
11/// JqlQueryUnitaryOperand : An operand that can be part of a list operand.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct JqlQueryUnitaryOperand {
15    /// The operand value.
16    #[serde(rename = "value")]
17    pub value: String,
18    /// The name of the function.
19    #[serde(rename = "function")]
20    pub function: String,
21    /// The list of function arguments.
22    #[serde(rename = "arguments")]
23    pub arguments: Vec<String>,
24    /// The keyword that is the operand value.
25    #[serde(rename = "keyword")]
26    pub keyword: Keyword,
27}
28
29impl JqlQueryUnitaryOperand {
30    /// An operand that can be part of a list operand.
31    pub fn new(
32        value: String,
33        function: String,
34        arguments: Vec<String>,
35        keyword: Keyword,
36    ) -> JqlQueryUnitaryOperand {
37        JqlQueryUnitaryOperand {
38            value,
39            function,
40            arguments,
41            keyword,
42        }
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}