aboutsummaryrefslogtreecommitdiff
path: root/sdp/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-22 22:15:44 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-22 22:15:44 +0100
commitd07dcedf8f9601fda14f79ebfbcf858d3794c16c (patch)
tree8a1d71d9a8bc1791323dd4cf800bf169573eb7bc /sdp/src/lib.rs
parent622ed285b029dfa3b65cc3f13b51c1e0b83262b9 (diff)
downloadsip-rs-d07dcedf8f9601fda14f79ebfbcf858d3794c16c.tar
sip-rs-d07dcedf8f9601fda14f79ebfbcf858d3794c16c.tar.bz2
sip-rs-d07dcedf8f9601fda14f79ebfbcf858d3794c16c.tar.zst
progress on rtcp
Diffstat (limited to 'sdp/src/lib.rs')
-rw-r--r--sdp/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdp/src/lib.rs b/sdp/src/lib.rs
index 15b4ce2..dc5623d 100644
--- a/sdp/src/lib.rs
+++ b/sdp/src/lib.rs
@@ -1,6 +1,7 @@
use anyhow::{anyhow, bail};
use std::{fmt::Display, str::FromStr};
+#[derive(Debug, Default)]
pub struct SessionDescription {
pub version: String,
pub originator: String,
@@ -18,11 +19,13 @@ pub struct SessionDescription {
pub media_descriptions: Vec<MediaDescription>,
}
+#[derive(Debug)]
pub struct TimeDescription {
pub time: String,
pub repeat_times: Vec<String>,
}
+#[derive(Debug, Default)]
pub struct MediaDescription {
pub name: String,
pub title: Option<String>,