jira_api_v2/models/
actor_input_bean.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 ActorInputBean {
16    /// The account IDs of the users to add as default actors. This parameter accepts a comma-separated list. For example, `\"user\":[\"5b10a2844c20165700ede21g\", \"5b109f2e9729b51b54dc274d\"]`.
17    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
18    pub user: Option<Vec<String>>,
19    /// The name of the group to add as a default actor. This parameter accepts a comma-separated list. For example, `\"group\":[\"project-admin\", \"jira-developers\"]`.
20    #[serde(rename = "group", skip_serializing_if = "Option::is_none")]
21    pub group: Option<Vec<String>>,
22}
23
24impl ActorInputBean {
25    pub fn new() -> ActorInputBean {
26        ActorInputBean {
27            user: None,
28            group: None,
29        }
30    }
31}
32