jira_api_v2/models/
project_identifiers.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/// ProjectIdentifiers : Identifiers for a project.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProjectIdentifiers {
17    /// The URL of the created project.
18    #[serde(rename = "self")]
19    pub param_self: String,
20    /// The ID of the created project.
21    #[serde(rename = "id")]
22    pub id: i64,
23    /// The key of the created project.
24    #[serde(rename = "key")]
25    pub key: String,
26}
27
28impl ProjectIdentifiers {
29    /// Identifiers for a project.
30    pub fn new(param_self: String, id: i64, key: String) -> ProjectIdentifiers {
31        ProjectIdentifiers {
32            param_self,
33            id,
34            key,
35        }
36    }
37}
38