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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// DelegateBindingKind : `script` runs the bound script as an ordinary child job. `noop` completes the element immediately, writes `results.<element_id> = null` and records the skip in the job trace — it grants nothing, which makes it the safest row kind, and its `reason` is mandatory. `fail` is a deploy error naming the element: \"we looked and decided not yet\", a different state from unbound (\"nobody looked\"), and the difference is carried entirely by `reason`.
/// `script` runs the bound script as an ordinary child job. `noop` completes the element immediately, writes `results.<element_id> = null` and records the skip in the job trace — it grants nothing, which makes it the safest row kind, and its `reason` is mandatory. `fail` is a deploy error naming the element: \"we looked and decided not yet\", a different state from unbound (\"nobody looked\"), and the difference is carried entirely by `reason`.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DelegateBindingKind {
#[serde(rename = "script")]
Script,
#[serde(rename = "noop")]
Noop,
#[serde(rename = "fail")]
Fail,
}
impl std::fmt::Display for DelegateBindingKind {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Script => write!(f, "script"),
Self::Noop => write!(f, "noop"),
Self::Fail => write!(f, "fail"),
}
}
}
impl Default for DelegateBindingKind {
fn default() -> DelegateBindingKind {
Self::Script
}
}