Skip to main content

tongbal_api/live/
types.rs

1use serde::{Deserialize, Serialize};
2use url::Url;
3
4use crate::types::{CategoryType, ChannelId};
5
6#[derive(Debug, Deserialize, Serialize)]
7#[serde(rename_all = "camelCase")]
8pub struct Live {
9    pub live_id: u64,
10    pub live_title: String,
11    pub live_thumbnail_image_url: Option<Url>,
12    pub concurrent_user_count: u64,
13    pub open_date: String,
14    pub adult: bool,
15    pub tags: Vec<String>,
16    pub category_type: CategoryType,
17    pub live_category: String,
18    pub live_category_value: String,
19    pub channel_id: ChannelId,
20    pub channel_name: String,
21    pub channel_image_url: Option<Url>,
22}