Skip to main content

orvanta_api/models/
bpmn_flow.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BpmnFlow {
16    #[serde(rename = "workspace_id")]
17    pub workspace_id: String,
18    #[serde(rename = "path")]
19    pub path: String,
20    #[serde(rename = "summary")]
21    pub summary: String,
22    #[serde(rename = "description")]
23    pub description: String,
24    #[serde(rename = "bpmn_xml")]
25    pub bpmn_xml: String,
26    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
27    pub schema: Option<serde_json::Value>,
28    #[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
29    pub draft_only: Option<bool>,
30    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
31    pub labels: Option<Vec<String>>,
32    #[serde(rename = "archived")]
33    pub archived: bool,
34    #[serde(rename = "edited_by")]
35    pub edited_by: String,
36    #[serde(rename = "edited_at")]
37    pub edited_at: String,
38    #[serde(rename = "extra_perms")]
39    pub extra_perms: std::collections::HashMap<String, bool>,
40    #[serde(rename = "version_id", skip_serializing_if = "Option::is_none")]
41    pub version_id: Option<i32>,
42}
43
44impl BpmnFlow {
45    pub fn new(workspace_id: String, path: String, summary: String, description: String, bpmn_xml: String, archived: bool, edited_by: String, edited_at: String, extra_perms: std::collections::HashMap<String, bool>) -> BpmnFlow {
46        BpmnFlow {
47            workspace_id,
48            path,
49            summary,
50            description,
51            bpmn_xml,
52            schema: None,
53            draft_only: None,
54            labels: None,
55            archived,
56            edited_by,
57            edited_at,
58            extra_perms,
59            version_id: None,
60        }
61    }
62}
63