jira_api_v2/models/
search_results.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/// SearchResults : The result of a JQL search.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SearchResults {
17    /// Expand options that include additional search result details in the response.
18    #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
19    pub expand: Option<String>,
20    /// The index of the first item returned on the page.
21    #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
22    pub start_at: Option<i32>,
23    /// The maximum number of results that could be on the page.
24    #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
25    pub max_results: Option<i32>,
26    /// The number of results on the page.
27    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
28    pub total: Option<i32>,
29    /// The list of issues found by the search.
30    #[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
31    pub issues: Option<Vec<models::IssueBean>>,
32    /// Any warnings related to the JQL query.
33    #[serde(rename = "warningMessages", skip_serializing_if = "Option::is_none")]
34    pub warning_messages: Option<Vec<String>>,
35    /// The ID and name of each field in the search results.
36    #[serde(rename = "names", skip_serializing_if = "Option::is_none")]
37    pub names: Option<std::collections::HashMap<String, String>>,
38    /// The schema describing the field types in the search results.
39    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
40    pub schema: Option<std::collections::HashMap<String, models::JsonTypeBean>>,
41}
42
43impl SearchResults {
44    /// The result of a JQL search.
45    pub fn new() -> SearchResults {
46        SearchResults {
47            expand: None,
48            start_at: None,
49            max_results: None,
50            total: None,
51            issues: None,
52            warning_messages: None,
53            names: None,
54            schema: None,
55        }
56    }
57}
58