1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* 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,
}
}
}