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

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

/// StartCmmnCase : start variables for a case instance, and an optional business key
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StartCmmnCase {
    /// Start variables, seeded as the case's variables --- Flowable's `startCaseInstanceByKey(key, variables)`. Shape them after the case model's own variable names.
    #[serde(rename = "case_input", skip_serializing_if = "Option::is_none")]
    pub case_input: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// Optional #199 business key. When present *and* `CaseManagement` is available, the instance is linked to a `cmnd_case` record and a `cmnd_case_application` ledger row is appended. Silently ignored when it is not --- an unentitled caller must not be able to detect the feature from this endpoint's behaviour.
    #[serde(rename = "business_key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub business_key: Option<Option<String>>,
}

impl StartCmmnCase {
    /// start variables for a case instance, and an optional business key
    pub fn new() -> StartCmmnCase {
        StartCmmnCase {
            case_input: None,
            business_key: None,
        }
    }
}