orvanta-api 3.0.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.0.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// 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. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchBpmnNode {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "script_path", skip_serializing_if = "Option::is_none")]
    pub script_path: Option<String>,
    #[serde(rename = "script_hash", skip_serializing_if = "Option::is_none")]
    pub script_hash: Option<String>,
    #[serde(rename = "decision_ref", skip_serializing_if = "Option::is_none")]
    pub decision_ref: Option<String>,
}

impl 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. 
    pub fn new(id: String) -> SearchBpmnNode {
        SearchBpmnNode {
            id,
            name: None,
            script_path: None,
            script_hash: None,
            decision_ref: None,
        }
    }
}