jira_api_v2/models/
project_role_details.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/// ProjectRoleDetails : Details about a project role.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProjectRoleDetails {
17    /// The URL the project role details.
18    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
19    pub param_self: Option<String>,
20    /// The name of the project role.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The ID of the project role.
24    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25    pub id: Option<i64>,
26    /// The description of the project role.
27    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
28    pub description: Option<String>,
29    /// Whether this role is the admin role for the project.
30    #[serde(rename = "admin", skip_serializing_if = "Option::is_none")]
31    pub admin: Option<bool>,
32    /// The scope of the role. Indicated for roles associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).
33    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
34    pub scope: Option<models::Scope>,
35    /// Whether the roles are configurable for this project.
36    #[serde(rename = "roleConfigurable", skip_serializing_if = "Option::is_none")]
37    pub role_configurable: Option<bool>,
38    /// The translated name of the project role.
39    #[serde(rename = "translatedName", skip_serializing_if = "Option::is_none")]
40    pub translated_name: Option<String>,
41    /// Whether this role is the default role for the project.
42    #[serde(rename = "default", skip_serializing_if = "Option::is_none")]
43    pub default: Option<bool>,
44}
45
46impl ProjectRoleDetails {
47    /// Details about a project role.
48    pub fn new() -> ProjectRoleDetails {
49        ProjectRoleDetails {
50            param_self: None,
51            name: None,
52            id: None,
53            description: None,
54            admin: None,
55            scope: None,
56            role_configurable: None,
57            translated_name: None,
58            default: None,
59        }
60    }
61}
62