enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * enbbox API
 *
 * Notification infrastructure API — open-source alternative to Novu/Courier
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ActionType : Action step types (non-channel workflow steps).
/// Action step types (non-channel workflow steps).
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ActionType {
    #[serde(rename = "trigger")]
    Trigger,
    #[serde(rename = "digest")]
    Digest,
    #[serde(rename = "delay")]
    Delay,
    #[serde(rename = "throttle")]
    Throttle,
    #[serde(rename = "custom")]
    Custom,

}

impl std::fmt::Display for ActionType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Trigger => write!(f, "trigger"),
            Self::Digest => write!(f, "digest"),
            Self::Delay => write!(f, "delay"),
            Self::Throttle => write!(f, "throttle"),
            Self::Custom => write!(f, "custom"),
        }
    }
}

impl Default for ActionType {
    fn default() -> ActionType {
        Self::Trigger
    }
}