jira2/models/
custom_field_context_project_mapping.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
11/// CustomFieldContextProjectMapping : Details of a context to project association.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CustomFieldContextProjectMapping {
17    /// The ID of the context.
18    #[serde(rename = "contextId")]
19    pub context_id: String,
20    /// The ID of the project.
21    #[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
22    pub project_id: Option<String>,
23    /// Whether context is global.
24    #[serde(rename = "isGlobalContext", skip_serializing_if = "Option::is_none")]
25    pub is_global_context: Option<bool>,
26}
27
28impl CustomFieldContextProjectMapping {
29    /// Details of a context to project association.
30    pub fn new(context_id: String) -> CustomFieldContextProjectMapping {
31        CustomFieldContextProjectMapping {
32            context_id,
33            project_id: None,
34            is_global_context: None,
35        }
36    }
37}
38
39