jira_api_v2/models/issues_jql_meta_data_bean.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/// IssuesJqlMetaDataBean : The description of the page of issues loaded by the provided JQL query.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssuesJqlMetaDataBean {
17 /// The index of the first issue.
18 #[serde(rename = "startAt")]
19 pub start_at: i64,
20 /// The maximum number of issues that could be loaded in this evaluation.
21 #[serde(rename = "maxResults")]
22 pub max_results: i32,
23 /// The number of issues that were loaded in this evaluation.
24 #[serde(rename = "count")]
25 pub count: i32,
26 /// The total number of issues the JQL returned.
27 #[serde(rename = "totalCount")]
28 pub total_count: i64,
29 /// Any warnings related to the JQL query. Present only if the validation mode was set to `warn`.
30 #[serde(rename = "validationWarnings", skip_serializing_if = "Option::is_none")]
31 pub validation_warnings: Option<Vec<String>>,
32}
33
34impl IssuesJqlMetaDataBean {
35 /// The description of the page of issues loaded by the provided JQL query.
36 pub fn new(start_at: i64, max_results: i32, count: i32, total_count: i64) -> IssuesJqlMetaDataBean {
37 IssuesJqlMetaDataBean {
38 start_at,
39 max_results,
40 count,
41 total_count,
42 validation_warnings: None,
43 }
44 }
45}
46