jira_api_v2/models/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/// IssueCreateMetadata : The wrapper for the issue creation metadata for a list of projects.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssueCreateMetadata {
17 /// Expand options that include additional project details in the response.
18 #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
19 pub expand: Option<String>,
20 /// List of projects and their issue creation metadata.
21 #[serde(rename = "projects", skip_serializing_if = "Option::is_none")]
22 pub projects: Option<Vec<models::ProjectIssueCreateMetadata>>,
23}
24
25impl IssueCreateMetadata {
26 /// The wrapper for the issue creation metadata for a list of projects.
27 pub fn new() -> IssueCreateMetadata {
28 IssueCreateMetadata {
29 expand: None,
30 projects: None,
31 }
32 }
33}
34