jira_api_v2/models/
found_users_and_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/// FoundUsersAndGroups : List of users and groups found in a search.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FoundUsersAndGroups {
17    #[serde(rename = "users", skip_serializing_if = "Option::is_none")]
18    pub users: Option<Box<models::FoundUsers>>,
19    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
20    pub groups: Option<Box<models::FoundGroups>>,
21}
22
23impl FoundUsersAndGroups {
24    /// List of users and groups found in a search.
25    pub fn new() -> FoundUsersAndGroups {
26        FoundUsersAndGroups {
27            users: None,
28            groups: None,
29        }
30    }
31}
32