windmill-api 1.681.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.681.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthenticationMethod {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "windmill")]
    Windmill,
    #[serde(rename = "api_key")]
    ApiKey,
    #[serde(rename = "basic_http")]
    BasicHttp,
    #[serde(rename = "custom_script")]
    CustomScript,
    #[serde(rename = "signature")]
    Signature,

}

impl std::fmt::Display for AuthenticationMethod {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::None => write!(f, "none"),
            Self::Windmill => write!(f, "windmill"),
            Self::ApiKey => write!(f, "api_key"),
            Self::BasicHttp => write!(f, "basic_http"),
            Self::CustomScript => write!(f, "custom_script"),
            Self::Signature => write!(f, "signature"),
        }
    }
}

impl Default for AuthenticationMethod {
    fn default() -> AuthenticationMethod {
        Self::None
    }
}