jira_api_v2/models/
jql_query_field.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/// JqlQueryField : A field used in a JQL query. See [Advanced searching - fields reference](https://confluence.atlassian.com/x/dAiiLQ) for more information about fields in JQL queries.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JqlQueryField {
17    /// The name of the field.
18    #[serde(rename = "name")]
19    pub name: String,
20    /// When the field refers to a value in an entity property, details of the entity property value.
21    #[serde(rename = "property", skip_serializing_if = "Option::is_none")]
22    pub property: Option<Vec<models::JqlQueryFieldEntityProperty>>,
23}
24
25impl JqlQueryField {
26    /// A field used in a JQL query. See [Advanced searching - fields reference](https://confluence.atlassian.com/x/dAiiLQ) for more information about fields in JQL queries.
27    pub fn new(name: String) -> JqlQueryField {
28        JqlQueryField {
29            name,
30            property: None,
31        }
32    }
33}
34