orvanta-api 6.5.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: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// NewBpmnFormBinding : Create/update payload. On update `form_key` must equal the stored value -- the key is not editable, because deployed models reference it by name and repointing it in place would change what all of them render.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewBpmnFormBinding {
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "form_key")]
    pub form_key: String,
    #[serde(rename = "kind")]
    pub kind: models::FormBindingKind,
    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
}

impl NewBpmnFormBinding {
    /// Create/update payload. On update `form_key` must equal the stored value -- the key is not editable, because deployed models reference it by name and repointing it in place would change what all of them render.
    pub fn new(path: String, form_key: String, kind: models::FormBindingKind) -> NewBpmnFormBinding {
        NewBpmnFormBinding {
            path,
            form_key,
            kind,
            reason: None,
            summary: None,
        }
    }
}