Skip to content

Commit

Permalink
Fix protocal capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
belst committed Dec 19, 2021
1 parent 9d8a616 commit 2c087e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 2c087e7

Please sign in to comment.