jira_api_v2/models/
issue_matches_for_jql.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/// IssueMatchesForJql : A list of the issues matched to a JQL query or details of errors encountered during matching.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssueMatchesForJql {
17    /// A list of issue IDs.
18    #[serde(rename = "matchedIssues")]
19    pub matched_issues: Vec<i64>,
20    /// A list of errors.
21    #[serde(rename = "errors")]
22    pub errors: Vec<String>,
23}
24
25impl IssueMatchesForJql {
26    /// A list of the issues matched to a JQL query or details of errors encountered during matching.
27    pub fn new(matched_issues: Vec<i64>, errors: Vec<String>) -> IssueMatchesForJql {
28        IssueMatchesForJql {
29            matched_issues,
30            errors,
31        }
32    }
33}
34