jira_api_v2/models/
deprecated_workflow.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/// DeprecatedWorkflow : Details about a workflow.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeprecatedWorkflow {
17    /// The name of the workflow.
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// The description of the workflow.
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// The datetime the workflow was last modified.
24    #[serde(rename = "lastModifiedDate", skip_serializing_if = "Option::is_none")]
25    pub last_modified_date: Option<String>,
26    /// This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
27    #[serde(rename = "lastModifiedUser", skip_serializing_if = "Option::is_none")]
28    pub last_modified_user: Option<String>,
29    /// The account ID of the user that last modified the workflow.
30    #[serde(rename = "lastModifiedUserAccountId", skip_serializing_if = "Option::is_none")]
31    pub last_modified_user_account_id: Option<String>,
32    /// The number of steps included in the workflow.
33    #[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
34    pub steps: Option<i32>,
35    /// The scope where this workflow applies
36    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
37    pub scope: Option<models::Scope>,
38    #[serde(rename = "default", skip_serializing_if = "Option::is_none")]
39    pub default: Option<bool>,
40}
41
42impl DeprecatedWorkflow {
43    /// Details about a workflow.
44    pub fn new() -> DeprecatedWorkflow {
45        DeprecatedWorkflow {
46            name: None,
47            description: None,
48            last_modified_date: None,
49            last_modified_user: None,
50            last_modified_user_account_id: None,
51            steps: None,
52            scope: None,
53            default: None,
54        }
55    }
56}
57