jira_api_v2/models/
jexp_jql_issues.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/// JexpJqlIssues : The JQL specifying the issues available in the evaluated Jira expression under the `issues` context variable. Not all issues returned by the JQL query are loaded, only those described by the `startAt` and `maxResults` properties. To determine whether it is necessary to iterate to ensure all the issues returned by the JQL query are evaluated, inspect `meta.issues.jql.count` in the response.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JexpJqlIssues {
17    /// The JQL query.
18    #[serde(rename = "query", skip_serializing_if = "Option::is_none")]
19    pub query: Option<String>,
20    /// The index of the first issue to return from the JQL query.
21    #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
22    pub start_at: Option<i64>,
23    /// The maximum number of issues to return from the JQL query. Inspect `meta.issues.jql.maxResults` in the response to ensure the maximum value has not been exceeded.
24    #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
25    pub max_results: Option<i32>,
26    /// Determines how to validate the JQL query and treat the validation results.
27    #[serde(rename = "validation", skip_serializing_if = "Option::is_none")]
28    pub validation: Option<Validation>,
29}
30
31impl JexpJqlIssues {
32    /// The JQL specifying the issues available in the evaluated Jira expression under the `issues` context variable. Not all issues returned by the JQL query are loaded, only those described by the `startAt` and `maxResults` properties. To determine whether it is necessary to iterate to ensure all the issues returned by the JQL query are evaluated, inspect `meta.issues.jql.count` in the response.
33    pub fn new() -> JexpJqlIssues {
34        JexpJqlIssues {
35            query: None,
36            start_at: None,
37            max_results: None,
38            validation: None,
39        }
40    }
41}
42/// Determines how to validate the JQL query and treat the validation results.
43#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
44pub enum Validation {
45    #[serde(rename = "strict")]
46    Strict,
47    #[serde(rename = "warn")]
48    Warn,
49    #[serde(rename = "none")]
50    None,
51}
52
53impl Default for Validation {
54    fn default() -> Validation {
55        Self::Strict
56    }
57}
58