/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// FormatHandlerType : Format handler type enum.  Indicates whether the handler is compiled-in (core) or loaded from WASM.
/// Format handler type enum.  Indicates whether the handler is compiled-in (core) or loaded from WASM.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FormatHandlerType {
    #[serde(rename = "Core")]
    Core,
    #[serde(rename = "Wasm")]
    Wasm,

}

impl std::fmt::Display for FormatHandlerType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Core => write!(f, "Core"),
            Self::Wasm => write!(f, "Wasm"),
        }
    }
}

impl Default for FormatHandlerType {
    fn default() -> FormatHandlerType {
        Self::Core
    }
}

