orvanta-api 3.1.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.1.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// DelegateOccurrence : One place a delegate key is referenced from.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DelegateOccurrence {
    /// The `bpmn_flow.path` the reference was read from.
    #[serde(rename = "flow_path")]
    pub flow_path: String,
    /// The `serviceTask` element id -- what an editor should highlight.
    #[serde(rename = "element_id")]
    pub element_id: String,
    /// True when the reference comes from a `draft_only` definition (an imported-but-not-yet-deployable estate) rather than a deployed one.
    #[serde(rename = "draft_only")]
    pub draft_only: bool,
}

impl DelegateOccurrence {
    /// One place a delegate key is referenced from.
    pub fn new(flow_path: String, element_id: String, draft_only: bool) -> DelegateOccurrence {
        DelegateOccurrence {
            flow_path,
            element_id,
            draft_only,
        }
    }
}