From 83e1ed9129855ff2c4055afe8ba170660ca9b7c2 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 1 May 2020 16:32:08 +0200 Subject: [PATCH] Update serde attrs in call::candidates --- src/call/candidates.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/call/candidates.rs b/src/call/candidates.rs index c14afb30..cb275658 100644 --- a/src/call/candidates.rs +++ b/src/call/candidates.rs @@ -26,15 +26,14 @@ ruma_event! { /// An ICE (Interactive Connectivity Establishment) candidate. #[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] +#[serde(rename_all = "camelCase")] pub struct Candidate { /// The SDP "a" line of the candidate. pub candidate: String, /// The SDP media type this candidate is intended for. - #[serde(rename = "sdpMid")] pub sdp_mid: String, /// The index of the SDP "m" line this candidate is intended for. - #[serde(rename = "sdpMLineIndex")] pub sdp_m_line_index: UInt, }