orvanta-api 1.7.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.7.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DmnDecisionVersion {
    #[serde(rename = "id")]
    pub id: i32,
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    #[serde(rename = "path")]
    pub path: String,
    /// The DMN 1.3 XML at this version
    #[serde(rename = "value", deserialize_with = "Option::deserialize")]
    pub value: Option<String>,
    #[serde(rename = "created_by")]
    pub created_by: String,
    #[serde(rename = "created_at")]
    pub created_at: String,
}

impl DmnDecisionVersion {
    pub fn new(id: i32, workspace_id: String, path: String, value: Option<String>, created_by: String, created_at: String) -> DmnDecisionVersion {
        DmnDecisionVersion {
            id,
            workspace_id,
            path,
            value,
            created_by,
            created_at,
        }
    }
}