Skip to main content

orvanta_api/models/
dmn_decision_version.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: 1.6.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DmnDecisionVersion {
16    #[serde(rename = "id")]
17    pub id: i32,
18    #[serde(rename = "workspace_id")]
19    pub workspace_id: String,
20    #[serde(rename = "path")]
21    pub path: String,
22    /// The DMN 1.3 XML at this version
23    #[serde(rename = "value", deserialize_with = "Option::deserialize")]
24    pub value: Option<String>,
25    #[serde(rename = "created_by")]
26    pub created_by: String,
27    #[serde(rename = "created_at")]
28    pub created_at: String,
29}
30
31impl DmnDecisionVersion {
32    pub fn new(id: i32, workspace_id: String, path: String, value: Option<String>, created_by: String, created_at: String) -> DmnDecisionVersion {
33        DmnDecisionVersion {
34            id,
35            workspace_id,
36            path,
37            value,
38            created_by,
39            created_at,
40        }
41    }
42}
43