Skip to main content

orvanta_api/models/
bpmn_deploy_result.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnDeployResult : The result of a successful BPMN deploy. `warnings` is empty on a clean deploy; a non-empty list does **not** mean the deploy failed.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnDeployResult {
17    #[serde(rename = "path")]
18    pub path: String,
19    #[serde(rename = "warnings")]
20    pub warnings: Vec<models::BpmnValidationIssue>,
21}
22
23impl BpmnDeployResult {
24    /// The result of a successful BPMN deploy. `warnings` is empty on a clean deploy; a non-empty list does **not** mean the deploy failed.
25    pub fn new(path: String, warnings: Vec<models::BpmnValidationIssue>) -> BpmnDeployResult {
26        BpmnDeployResult {
27            path,
28            warnings,
29        }
30    }
31}
32