orvanta_api/models/delegate_key_kind.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: 3.0.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DelegateKeyKind : Which BPMN dialect attribute the delegate key was read from. Part of the lookup key, not decoration: in Flowable, `flowable:class=\"foo\"` and `flowable:delegateExpression=\"${foo}\"` are different constructs, and letting a binding for one satisfy a reference to the other would be a silent semantic mix.
15/// Which BPMN dialect attribute the delegate key was read from. Part of the lookup key, not decoration: in Flowable, `flowable:class=\"foo\"` and `flowable:delegateExpression=\"${foo}\"` are different constructs, and letting a binding for one satisfy a reference to the other would be a silent semantic mix.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum DelegateKeyKind {
18 #[serde(rename = "class")]
19 Class,
20 #[serde(rename = "bean")]
21 Bean,
22 #[serde(rename = "expression")]
23 Expression,
24
25}
26
27impl std::fmt::Display for DelegateKeyKind {
28 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29 match self {
30 Self::Class => write!(f, "class"),
31 Self::Bean => write!(f, "bean"),
32 Self::Expression => write!(f, "expression"),
33 }
34 }
35}
36
37impl Default for DelegateKeyKind {
38 fn default() -> DelegateKeyKind {
39 Self::Class
40 }
41}
42