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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 5.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CmmnCasePage : One left-navigation entry that comes from a `casePageTask` plan item. `executable` is always `false` and is a field rather than an assumption: `casePageTask` is outside the parser's GA allowlist and `orvanta_cmmn::admit` refuses a case that uses one, so listing it is how the refusal names something concrete instead of leaving a blank menu.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnCasePage {
#[serde(rename = "plan_item_id")]
pub plan_item_id: String,
#[serde(rename = "definition_id")]
pub definition_id: String,
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub name: Option<Option<String>>,
#[serde(rename = "parent_stage")]
pub parent_stage: String,
#[serde(rename = "executable")]
pub executable: bool,
}
impl CmmnCasePage {
/// One left-navigation entry that comes from a `casePageTask` plan item. `executable` is always `false` and is a field rather than an assumption: `casePageTask` is outside the parser's GA allowlist and `orvanta_cmmn::admit` refuses a case that uses one, so listing it is how the refusal names something concrete instead of leaving a blank menu.
pub fn new(plan_item_id: String, definition_id: String, parent_stage: String, executable: bool) -> CmmnCasePage {
CmmnCasePage {
plan_item_id,
definition_id,
name: None,
parent_stage,
executable,
}
}
}