Skip to main content

hang/catalog/
stats.rs

1use serde::{Deserialize, Serialize};
2
3/// The publisher's media snapshot track in this broadcast.
4#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
5#[non_exhaustive]
6pub struct Stats {
7	/// The name of the publisher snapshot track.
8	pub track: String,
9}
10
11impl Stats {
12	/// Name the publisher snapshot track.
13	pub fn new(track: impl Into<String>) -> Self {
14		Self { track: track.into() }
15	}
16}