orvanta-api 3.0.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * 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
    }
}