jira_api_v2/models/
custom_field_context.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/// CustomFieldContext : The details of a custom field context.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldContext {
17    /// The ID of the context.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// The name of the context.
21    #[serde(rename = "name")]
22    pub name: String,
23    /// The description of the context.
24    #[serde(rename = "description")]
25    pub description: String,
26    /// Whether the context is global.
27    #[serde(rename = "isGlobalContext")]
28    pub is_global_context: bool,
29    /// Whether the context apply to all issue types.
30    #[serde(rename = "isAnyIssueType")]
31    pub is_any_issue_type: bool,
32}
33
34impl CustomFieldContext {
35    /// The details of a custom field context.
36    pub fn new(id: String, name: String, description: String, is_global_context: bool, is_any_issue_type: bool) -> CustomFieldContext {
37        CustomFieldContext {
38            id,
39            name,
40            description,
41            is_global_context,
42            is_any_issue_type,
43        }
44    }
45}
46