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