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 DmnDecisionWithDraft {
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description")]
    pub description: String,
    /// The DMN 1.3 XML
    #[serde(rename = "value")]
    pub value: String,
    #[serde(rename = "extra_perms")]
    pub extra_perms: std::collections::HashMap<String, bool>,
    #[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
    pub draft_only: Option<bool>,
    #[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
    pub draft: Option<serde_json::Value>,
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
}

impl DmnDecisionWithDraft {
    pub fn new(path: String, summary: String, description: String, value: String, extra_perms: std::collections::HashMap<String, bool>) -> DmnDecisionWithDraft {
        DmnDecisionWithDraft {
            path,
            summary,
            description,
            value,
            extra_perms,
            draft_only: None,
            draft: None,
            labels: None,
        }
    }
}