1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* 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,
}
}
}