jira_api_v2/models/
function_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/// FunctionOperand : An operand that is a function. See [Advanced searching - functions reference](https://confluence.atlassian.com/x/dwiiLQ) for more information about JQL functions.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FunctionOperand {
17    /// The name of the function.
18    #[serde(rename = "function")]
19    pub function: String,
20    /// The list of function arguments.
21    #[serde(rename = "arguments")]
22    pub arguments: Vec<String>,
23}
24
25impl FunctionOperand {
26    /// An operand that is a function. See [Advanced searching - functions reference](https://confluence.atlassian.com/x/dwiiLQ) for more information about JQL functions.
27    pub fn new(function: String, arguments: Vec<String>) -> FunctionOperand {
28        FunctionOperand {
29            function,
30            arguments,
31        }
32    }
33}
34