jira_v3_openapi/models/
security_scheme_with_projects.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-4f9780d932de14e7c3dec0c9382f8855050fda22
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SecuritySchemeWithProjects : Details about an issue security scheme.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SecuritySchemeWithProjects {
17    /// The default level ID of the issue security scheme.
18    #[serde(rename = "defaultLevel", skip_serializing_if = "Option::is_none")]
19    pub default_level: Option<i64>,
20    /// The description of the issue security scheme.
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// The ID of the issue security scheme.
24    #[serde(rename = "id")]
25    pub id: i64,
26    /// The name of the issue security scheme.
27    #[serde(rename = "name")]
28    pub name: String,
29    /// The list of project IDs associated with the issue security scheme.
30    #[serde(rename = "projectIds", skip_serializing_if = "Option::is_none")]
31    pub project_ids: Option<Vec<i64>>,
32    /// The URL of the issue security scheme.
33    #[serde(rename = "self")]
34    pub param_self: String,
35}
36
37impl SecuritySchemeWithProjects {
38    /// Details about an issue security scheme.
39    pub fn new(id: i64, name: String, param_self: String) -> SecuritySchemeWithProjects {
40        SecuritySchemeWithProjects {
41            default_level: None,
42            description: None,
43            id,
44            name,
45            project_ids: None,
46            param_self,
47        }
48    }
49}
50