/*
* 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};
/// CmmnDeployResult : What a successful create/update returns.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnDeployResult {
#[serde(rename = "path")]
pub path: String,
/// The `<case id>` the deployed document declares. Absent for a `draft_only` save, which is never parsed and so has none.
#[serde(rename = "case_id", skip_serializing_if = "Option::is_none")]
pub case_id: Option<String>,
}
impl CmmnDeployResult {
/// What a successful create/update returns.
pub fn new(path: String) -> CmmnDeployResult {
CmmnDeployResult {
path,
case_id: None,
}
}
}