From 2c087e7e50af011fe81bc5af724765de23c4c30d Mon Sep 17 00:00:00 2001 From: belst Date: Sun, 19 Dec 2021 19:05:21 +0100 Subject: [PATCH] Fix protocal capitalization --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 13bea14..7b4cad8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,13 +39,18 @@ enum Direction { } #[derive(Debug, Serialize, Deserialize)] -#[serde(rename_all = "lowercase")] enum Protocol { + #[serde(rename = "WebRTC")] WebRTC, + #[serde(rename = "RTMP")] Rtmp, + #[serde(rename = "SRT")] Srt, + #[serde(rename = "HLS")] Hls, + #[serde(rename = "DASH")] Dash, + #[serde(rename = "LLDASH")] LLDash, }