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
/*
* 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,
}
}
}