jira_api_v2/models/jql_query_order_by_clause.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/// JqlQueryOrderByClause : Details of the order-by JQL clause.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JqlQueryOrderByClause {
17 /// The list of order-by clause fields and their ordering directives.
18 #[serde(rename = "fields")]
19 pub fields: Vec<models::JqlQueryOrderByClauseElement>,
20}
21
22impl JqlQueryOrderByClause {
23 /// Details of the order-by JQL clause.
24 pub fn new(fields: Vec<models::JqlQueryOrderByClauseElement>) -> JqlQueryOrderByClause {
25 JqlQueryOrderByClause {
26 fields,
27 }
28 }
29}
30