windmill_api/models/
native_service_name.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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