Skip to main content

orvanta_api/models/
bpmn_form_binding.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: 6.2.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 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.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnFormBinding {
17    #[serde(rename = "path")]
18    pub path: String,
19    #[serde(rename = "form_key")]
20    pub form_key: String,
21    #[serde(rename = "kind")]
22    pub kind: models::FormBindingKind,
23    /// required.
24    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
25    pub reason: Option<String>,
26    #[serde(rename = "summary")]
27    pub summary: String,
28    #[serde(rename = "extra_perms")]
29    pub extra_perms: std::collections::HashMap<String, bool>,
30    #[serde(rename = "edited_by")]
31    pub edited_by: String,
32    #[serde(rename = "edited_at")]
33    pub edited_at: String,
34}
35
36impl BpmnFormBinding {
37    /// 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.
38    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 {
39        BpmnFormBinding {
40            path,
41            form_key,
42            kind,
43            reason: None,
44            summary,
45            extra_perms,
46            edited_by,
47            edited_at,
48        }
49    }
50}
51