nautobot_openapi/models/
virtual_server_protocol_choices.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum VirtualServerProtocolChoices {
14 #[serde(rename = "tcp")]
15 Tcp,
16 #[serde(rename = "udp")]
17 Udp,
18 #[serde(rename = "icmp")]
19 Icmp,
20 #[serde(rename = "sctp")]
21 Sctp,
22 #[serde(rename = "http")]
23 Http,
24 #[serde(rename = "https")]
25 Https,
26 #[serde(rename = "http2")]
27 Http2,
28 #[serde(rename = "grpc")]
29 Grpc,
30 #[serde(rename = "quic")]
31 Quic,
32 #[serde(rename = "dns")]
33 Dns,
34 #[serde(rename = "any")]
35 Any,
36}
37
38impl ToString for VirtualServerProtocolChoices {
39 fn to_string(&self) -> String {
40 match self {
41 Self::Tcp => String::from("tcp"),
42 Self::Udp => String::from("udp"),
43 Self::Icmp => String::from("icmp"),
44 Self::Sctp => String::from("sctp"),
45 Self::Http => String::from("http"),
46 Self::Https => String::from("https"),
47 Self::Http2 => String::from("http2"),
48 Self::Grpc => String::from("grpc"),
49 Self::Quic => String::from("quic"),
50 Self::Dns => String::from("dns"),
51 Self::Any => String::from("any"),
52 }
53 }
54}
55
56impl Default for VirtualServerProtocolChoices {
57 fn default() -> VirtualServerProtocolChoices {
58 Self::Tcp
59 }
60}