1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

/// DataChannelParameters describes the configuration of the DataChannel.
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
pub struct DataChannelParameters {
    pub label: String,
    pub protocol: String,
    pub ordered: bool,
    pub max_packet_life_time: u16,
    pub max_retransmits: u16,
    pub negotiated: Option<u16>,
}