jira_api_v2/models/
found_groups.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/// FoundGroups : The list of groups found in a search, including header text (Showing X of Y matching groups) and total of matched groups.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FoundGroups {
17    /// Header text indicating the number of groups in the response and the total number of groups found in the search.
18    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
19    pub header: Option<String>,
20    /// The total number of groups found in the search.
21    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
22    pub total: Option<i32>,
23    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
24    pub groups: Option<Vec<models::FoundGroup>>,
25}
26
27impl FoundGroups {
28    /// The list of groups found in a search, including header text (Showing X of Y matching groups) and total of matched groups.
29    pub fn new() -> FoundGroups {
30        FoundGroups {
31            header: None,
32            total: None,
33            groups: None,
34        }
35    }
36}
37