Skip to main content

windmill_api/models/
native_service_name.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.687.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 NativeServiceName {
17    #[serde(rename = "nextcloud")]
18    Nextcloud,
19    #[serde(rename = "google")]
20    Google,
21    #[serde(rename = "github")]
22    Github,
23
24}
25
26impl std::fmt::Display for NativeServiceName {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Nextcloud => write!(f, "nextcloud"),
30            Self::Google => write!(f, "google"),
31            Self::Github => write!(f, "github"),
32        }
33    }
34}
35
36impl Default for NativeServiceName {
37    fn default() -> NativeServiceName {
38        Self::Nextcloud
39    }
40}
41