/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// 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.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnDeployResult {
#[serde(rename = "path")]
pub path: String,
#[serde(rename = "warnings")]
pub warnings: Vec<models::BpmnValidationIssue>,
}
impl 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.
pub fn new(path: String, warnings: Vec<models::BpmnValidationIssue>) -> BpmnDeployResult {
BpmnDeployResult {
path,
warnings,
}
}
}