authentik_client/models/
protocol_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.4
7 * Contact: hello@goauthentik.io
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 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}