srs_client/http_api/
common.rs1use derive_more::{Display, Error};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug)]
5pub struct Kbps {
6 pub recv_30s: i64,
7 pub send_30s: i64,
8}
9
10#[derive(Serialize, Deserialize, Debug)]
11pub struct Hls {
12 pub enabled: bool,
13 pub fragment: Option<f64>,
14}
15
16#[derive(Serialize, Deserialize, Debug)]
17pub struct Publish {
18 pub active: bool,
19 pub cid: Option<String>,
20}
21
22#[allow(clippy::struct_field_names)]
23#[derive(Serialize, Deserialize, Debug)]
24pub struct Version {
25 major: i64,
26 minor: i64,
27 revision: i64,
28 version: String,
29}