Skip to main content

orvanta_api/models/
search_bpmn_node.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: 3.0.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SearchBpmnNode : One projected element (or the process itself) from a BPMN document's search projection (#659) — id/name plus, on a scriptTask/serviceTask or businessRuleTask, its script or decision binding. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SearchBpmnNode {
17    #[serde(rename = "id")]
18    pub id: String,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "script_path", skip_serializing_if = "Option::is_none")]
22    pub script_path: Option<String>,
23    #[serde(rename = "script_hash", skip_serializing_if = "Option::is_none")]
24    pub script_hash: Option<String>,
25    #[serde(rename = "decision_ref", skip_serializing_if = "Option::is_none")]
26    pub decision_ref: Option<String>,
27}
28
29impl SearchBpmnNode {
30    /// One projected element (or the process itself) from a BPMN document's search projection (#659) — id/name plus, on a scriptTask/serviceTask or businessRuleTask, its script or decision binding. 
31    pub fn new(id: String) -> SearchBpmnNode {
32        SearchBpmnNode {
33            id,
34            name: None,
35            script_path: None,
36            script_hash: None,
37            decision_ref: None,
38        }
39    }
40}
41