jira2/models/
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
11/// Context : A context.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct Context {
17    /// The ID of the context.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The name of the context.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The scope of the context.
24    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
25    pub scope: Option<crate::models::Scope>,
26}
27
28impl Context {
29    /// A context.
30    pub fn new() -> Context {
31        Context {
32            id: None,
33            name: None,
34            scope: None,
35        }
36    }
37}
38
39