use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum NativeServiceName {
#[serde(rename = "nextcloud")]
Nextcloud,
#[serde(rename = "google")]
Google,
}
impl std::fmt::Display for NativeServiceName {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Nextcloud => write!(f, "nextcloud"),
Self::Google => write!(f, "google"),
}
}
}
impl Default for NativeServiceName {
fn default() -> NativeServiceName {
Self::Nextcloud
}
}