/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// WebhookRequestType : The type of webhook request (define possible values here)
/// The type of webhook request (define possible values here)
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum WebhookRequestType {
    #[serde(rename = "async")]
    Async,
    #[serde(rename = "sync")]
    Sync,

}

impl std::fmt::Display for WebhookRequestType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Async => write!(f, "async"),
            Self::Sync => write!(f, "sync"),
        }
    }
}

impl Default for WebhookRequestType {
    fn default() -> WebhookRequestType {
        Self::Async
    }
}

