jira2/models/parsed_jql_query.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/// ParsedJqlQuery : Details of a parsed JQL query.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ParsedJqlQuery {
17 /// The JQL query that was parsed and validated.
18 #[serde(rename = "query")]
19 pub query: String,
20 /// The syntax tree of the query. Empty if the query was invalid.
21 #[serde(rename = "structure", skip_serializing_if = "Option::is_none")]
22 pub structure: Option<crate::models::JqlQuery>,
23 /// The list of syntax or validation errors.
24 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
25 pub errors: Option<Vec<String>>,
26}
27
28impl ParsedJqlQuery {
29 /// Details of a parsed JQL query.
30 pub fn new(query: String) -> ParsedJqlQuery {
31 ParsedJqlQuery {
32 query,
33 structure: None,
34 errors: None,
35 }
36 }
37}
38
39