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
22}
23
24impl std::fmt::Display for NativeServiceName {
25 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26 match self {
27 Self::Nextcloud => write!(f, "nextcloud"),
28 Self::Google => write!(f, "google"),
29 }
30 }
31}
32
33impl Default for NativeServiceName {
34 fn default() -> NativeServiceName {
35 Self::Nextcloud
36 }
37}
38