authentik_client/models/
protocol_enum.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ProtocolEnum {
17 #[serde(rename = "rdp")]
18 Rdp,
19 #[serde(rename = "vnc")]
20 Vnc,
21 #[serde(rename = "ssh")]
22 Ssh,
23}
24
25impl std::fmt::Display for ProtocolEnum {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Rdp => write!(f, "rdp"),
29 Self::Vnc => write!(f, "vnc"),
30 Self::Ssh => write!(f, "ssh"),
31 }
32 }
33}
34
35impl Default for ProtocolEnum {
36 fn default() -> ProtocolEnum {
37 Self::Rdp
38 }
39}