jira_api_v2/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
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ParsedJqlQuery : Details of a parsed JQL query.
15#[derive(Clone, Default, Debug, PartialEq, 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<Box<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