jira_api_v2/models/
actors_map.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 ActorsMap {
16    /// The user account ID of the user to add.
17    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
18    pub user: Option<Vec<String>>,
19    /// The name of the group to add.
20    #[serde(rename = "group", skip_serializing_if = "Option::is_none")]
21    pub group: Option<Vec<String>>,
22}
23
24impl ActorsMap {
25    pub fn new() -> ActorsMap {
26        ActorsMap {
27            user: None,
28            group: None,
29        }
30    }
31}
32