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

/// 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,
        }
    }
}