jira_api_v2/models/
project_issue_create_metadata.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/// ProjectIssueCreateMetadata : Details of the issue creation metadata for a project.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProjectIssueCreateMetadata {
17    /// Expand options that include additional project issue create metadata details in the response.
18    #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
19    pub expand: Option<String>,
20    /// The URL of the project.
21    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
22    pub param_self: Option<String>,
23    /// The ID of the project.
24    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25    pub id: Option<String>,
26    /// The key of the project.
27    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
28    pub key: Option<String>,
29    /// The name of the project.
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32    /// List of the project's avatars, returning the avatar size and associated URL.
33    #[serde(rename = "avatarUrls", skip_serializing_if = "Option::is_none")]
34    pub avatar_urls: Option<Box<models::AvatarUrlsBean>>,
35    /// List of the issue types supported by the project.
36    #[serde(rename = "issuetypes", skip_serializing_if = "Option::is_none")]
37    pub issuetypes: Option<Vec<models::IssueTypeIssueCreateMetadata>>,
38}
39
40impl ProjectIssueCreateMetadata {
41    /// Details of the issue creation metadata for a project.
42    pub fn new() -> ProjectIssueCreateMetadata {
43        ProjectIssueCreateMetadata {
44            expand: None,
45            param_self: None,
46            id: None,
47            key: None,
48            name: None,
49            avatar_urls: None,
50            issuetypes: None,
51        }
52    }
53}
54