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
/*
* 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};
/// CmmnRefusal : One deploy-time refusal from `orvanta_cmmn::admit` — a construct the engine does not genuinely execute. Not a warning: the deploy is rejected. The 400 body is an array of these, always complete.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnRefusal {
/// Stable machine code, matchable by a client.
#[serde(rename = "code")]
pub code: String,
/// The element the refusal is about, when the variant names one.
#[serde(rename = "element_id", skip_serializing_if = "Option::is_none")]
pub element_id: Option<String>,
/// The human-readable reason.
#[serde(rename = "message")]
pub message: String,
}
impl CmmnRefusal {
/// One deploy-time refusal from `orvanta_cmmn::admit` — a construct the engine does not genuinely execute. Not a warning: the deploy is rejected. The 400 body is an array of these, always complete.
pub fn new(code: String, message: String) -> CmmnRefusal {
CmmnRefusal {
code,
element_id: None,
message,
}
}
}