1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// 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.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct JexpJqlIssues {
/// The JQL query.
#[serde(rename = "query", skip_serializing_if = "Option::is_none")]
pub query: Option<String>,
/// The index of the first issue to return from the JQL query.
#[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
pub start_at: Option<i64>,
/// 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.
#[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
pub max_results: Option<i32>,
/// Determines how to validate the JQL query and treat the validation results.
#[serde(rename = "validation", skip_serializing_if = "Option::is_none")]
pub validation: Option<Validation>,
}
impl 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.
pub fn new() -> JexpJqlIssues {
JexpJqlIssues {
query: None,
start_at: None,
max_results: None,
validation: None,
}
}
}
/// Determines how to validate the JQL query and treat the validation results.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Validation {
#[serde(rename = "strict")]
Strict,
#[serde(rename = "warn")]
Warn,
#[serde(rename = "none")]
None,
}
impl Default for Validation {
fn default() -> Validation {
Self::Strict
}
}