jira_api_v2/models/
user_list.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/// UserList : A paginated list of users sharing the filter. This includes users that are members of the groups or can browse the projects that the filter is shared with.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserList {
17    /// The number of items on the page.
18    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
19    pub size: Option<i32>,
20    /// The list of items.
21    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
22    pub items: Option<Vec<models::User>>,
23    /// The maximum number of results that could be on the page.
24    #[serde(rename = "max-results", skip_serializing_if = "Option::is_none")]
25    pub max_results: Option<i32>,
26    /// The index of the first item returned on the page.
27    #[serde(rename = "start-index", skip_serializing_if = "Option::is_none")]
28    pub start_index: Option<i32>,
29    /// The index of the last item returned on the page.
30    #[serde(rename = "end-index", skip_serializing_if = "Option::is_none")]
31    pub end_index: Option<i32>,
32}
33
34impl UserList {
35    /// A paginated list of users sharing the filter. This includes users that are members of the groups or can browse the projects that the filter is shared with.
36    pub fn new() -> UserList {
37        UserList {
38            size: None,
39            items: None,
40            max_results: None,
41            start_index: None,
42            end_index: None,
43        }
44    }
45}
46