srs_client/http_api/
client.rs1use super::common::Kbps;
2use derive_more::{Display, Error};
3use serde::{Deserialize, Serialize};
4
5#[derive(Serialize, Deserialize, Debug)]
6pub struct Client {
7 pub id: String,
8 pub vhost: String,
9 pub stream: String,
10 pub ip: String,
11 #[serde(rename = "pageUrl")]
12 pub page_url: String,
13 #[serde(rename = "swfUrl")]
14 pub swf_url: String,
15 #[serde(rename = "tcUrl")]
16 pub tc_url: String,
17 pub url: String,
18 pub name: String,
19 #[serde(rename = "type")]
20 pub r#type: String,
21 pub publish: bool,
22 pub alive: f64,
23 pub send_bytes: i64,
24 pub recv_bytes: i64,
25 pub kbps: Kbps,
26}