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};

/// CmmnCaseOverview : The stage rail and the case-page list for one deployed case-model version (#1501), exactly as `orvanta_cmmn::stage_overview` and `orvanta_cmmn::case_pages` derive them.  Nothing here is re-derived by the client. That is the point: the rules have 968 corpus documents and a namespace-resolution layer behind them, and a second implementation of them was what #1501 removed. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnCaseOverview {
    /// the `cmmn_case_model_version.id` this was derived from, echoed back so a caller can prove the rail matches the version its case pinned
    #[serde(rename = "version_id")]
    pub version_id: i64,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "case_id")]
    pub case_id: String,
    #[serde(rename = "case_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub case_name: Option<Option<String>>,
    /// the root of every `parent_stage` chain
    #[serde(rename = "case_plan_model_id")]
    pub case_plan_model_id: String,
    #[serde(rename = "stages")]
    pub stages: Vec<models::CmmnStageOverviewEntry>,
    #[serde(rename = "case_pages")]
    pub case_pages: Vec<models::CmmnCasePage>,
}

impl CmmnCaseOverview {
    /// The stage rail and the case-page list for one deployed case-model version (#1501), exactly as `orvanta_cmmn::stage_overview` and `orvanta_cmmn::case_pages` derive them.  Nothing here is re-derived by the client. That is the point: the rules have 968 corpus documents and a namespace-resolution layer behind them, and a second implementation of them was what #1501 removed. 
    pub fn new(version_id: i64, path: String, case_id: String, case_plan_model_id: String, stages: Vec<models::CmmnStageOverviewEntry>, case_pages: Vec<models::CmmnCasePage>) -> CmmnCaseOverview {
        CmmnCaseOverview {
            version_id,
            path,
            case_id,
            case_name: None,
            case_plan_model_id,
            stages,
            case_pages,
        }
    }
}