windmill_api/models/
authentication_method.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.505.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AuthenticationMethod {
17    #[serde(rename = "none")]
18    None,
19    #[serde(rename = "windmill")]
20    Windmill,
21    #[serde(rename = "api_key")]
22    ApiKey,
23    #[serde(rename = "basic_http")]
24    BasicHttp,
25    #[serde(rename = "custom_script")]
26    CustomScript,
27    #[serde(rename = "signature")]
28    Signature,
29
30}
31
32impl std::fmt::Display for AuthenticationMethod {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::None => write!(f, "none"),
36            Self::Windmill => write!(f, "windmill"),
37            Self::ApiKey => write!(f, "api_key"),
38            Self::BasicHttp => write!(f, "basic_http"),
39            Self::CustomScript => write!(f, "custom_script"),
40            Self::Signature => write!(f, "signature"),
41        }
42    }
43}
44
45impl Default for AuthenticationMethod {
46    fn default() -> AuthenticationMethod {
47        Self::None
48    }
49}
50