Update serde attrs in call::candidates

This commit is contained in:
Jonas Platte 2020-05-01 16:32:08 +02:00
parent d619185a72
commit 83e1ed9129
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -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,
}