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};

/// BpmnFormBinding : A foreign `formKey` mapped to the recorded decision that the declared fields are correct. `form_key` is opaque and compared byte-for-byte; it is never interpreted as a path or a URL. `path` -- not the key -- is the ACL anchor that RLS and ownership checks are evaluated against.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnFormBinding {
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "form_key")]
    pub form_key: String,
    #[serde(rename = "kind")]
    pub kind: models::FormBindingKind,
    /// required.
    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "extra_perms")]
    pub extra_perms: std::collections::HashMap<String, bool>,
    #[serde(rename = "edited_by")]
    pub edited_by: String,
    #[serde(rename = "edited_at")]
    pub edited_at: String,
}

impl BpmnFormBinding {
    /// A foreign `formKey` mapped to the recorded decision that the declared fields are correct. `form_key` is opaque and compared byte-for-byte; it is never interpreted as a path or a URL. `path` -- not the key -- is the ACL anchor that RLS and ownership checks are evaluated against.
    pub fn new(path: String, form_key: String, kind: models::FormBindingKind, summary: String, extra_perms: std::collections::HashMap<String, bool>, edited_by: String, edited_at: String) -> BpmnFormBinding {
        BpmnFormBinding {
            path,
            form_key,
            kind,
            reason: None,
            summary,
            extra_perms,
            edited_by,
            edited_at,
        }
    }
}