jira-api-v2 1.0.1

Jira Cloud platform REST API
Documentation
/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JiraExpressionEvalContextBean {
    /// The issue that is available under the `issue` variable when evaluating the expression.
    #[serde(rename = "issue", skip_serializing_if = "Option::is_none")]
    pub issue: Option<Box<models::IdOrKeyBean>>,
    /// The collection of issues that is available under the `issues` variable when evaluating the expression.
    #[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
    pub issues: Option<Box<models::JexpIssues>>,
    /// The project that is available under the `project` variable when evaluating the expression.
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<Box<models::IdOrKeyBean>>,
    /// The ID of the sprint that is available under the `sprint` variable when evaluating the expression.
    #[serde(rename = "sprint", skip_serializing_if = "Option::is_none")]
    pub sprint: Option<i64>,
    /// The ID of the board that is available under the `board` variable when evaluating the expression.
    #[serde(rename = "board", skip_serializing_if = "Option::is_none")]
    pub board: Option<i64>,
    /// The ID of the service desk that is available under the `serviceDesk` variable when evaluating the expression.
    #[serde(rename = "serviceDesk", skip_serializing_if = "Option::is_none")]
    pub service_desk: Option<i64>,
    /// The ID of the customer request that is available under the `customerRequest` variable when evaluating the expression. This is the same as the ID of the underlying Jira issue, but the customer request context variable will have a different type.
    #[serde(rename = "customerRequest", skip_serializing_if = "Option::is_none")]
    pub customer_request: Option<i64>,
}

impl JiraExpressionEvalContextBean {
    pub fn new() -> JiraExpressionEvalContextBean {
        JiraExpressionEvalContextBean {
            issue: None,
            issues: None,
            project: None,
            sprint: None,
            board: None,
            service_desk: None,
            customer_request: None,
        }
    }
}