jira_api_v2/models/create_update_role_request_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 CreateUpdateRoleRequestBean {
16 /// The name of the project role. Must be unique. Cannot begin or end with whitespace. The maximum length is 255 characters. Required when creating a project role. Optional when partially updating a project role.
17 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18 pub name: Option<String>,
19 /// A description of the project role. Required when fully updating a project role. Optional when creating or partially updating a project role.
20 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21 pub description: Option<String>,
22}
23
24impl CreateUpdateRoleRequestBean {
25 pub fn new() -> CreateUpdateRoleRequestBean {
26 CreateUpdateRoleRequestBean {
27 name: None,
28 description: None,
29 }
30 }
31}
32