use super::RTCStats;
use crate::data_channel::RTCDataChannelState;
use sctp::StreamId;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RTCDataChannelStats {
#[serde(flatten)]
pub stats: RTCStats,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub data_channel_identifier: Option<StreamId>,
pub label: String,
pub protocol: String,
pub state: RTCDataChannelState,
pub messages_sent: u32,
pub bytes_sent: u64,
pub messages_received: u32,
pub bytes_received: u64,
}