jira_api_v2/models/
group.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Group {
16    /// The name of group.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// The URL for these group details.
20    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
21    pub param_self: Option<String>,
22    /// A paginated list of the users that are members of the group. A maximum of 50 users is returned in the list, to access additional users append `[start-index:end-index]` to the expand request. For example, to access the next 50 users, use`?expand=users[51:100]`.
23    #[serde(rename = "users", skip_serializing_if = "Option::is_none")]
24    pub users: Option<Box<models::PagedListUserDetailsApplicationUser>>,
25    /// Expand options that include additional group details in the response.
26    #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
27    pub expand: Option<String>,
28}
29
30impl Group {
31    pub fn new() -> Group {
32        Group {
33            name: None,
34            param_self: None,
35            users: None,
36            expand: None,
37        }
38    }
39}
40