src/global/common/exposed/universal/playlists.rs
30 lines · 821 bytes
1use crate::global::common::{hidden::*, CommonImage};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug, Clone)]
5pub struct Playlist {
6 pub title: String,
7 #[serde(rename = "playlistId")]
8 pub id: String,
9 #[serde(rename = "playlistThumbnail")]
10 pub thumbnail: String,
11
12 pub author: String,
13 #[serde(rename = "authorId")]
14 pub author_id: String,
15 #[serde(rename = "authorThumbnails")]
16 pub author_thumbnails: Vec<CommonImage>,
17 pub description: String,
18 #[serde(rename = "descriptionHtml")]
19 pub description_html: String,
20
21 #[serde(rename = "videoCount")]
22 pub video_count: u32,
23 #[serde(rename = "viewCount")]
24 pub views: u64,
25 pub updated: u64,
26 #[serde(rename = "isListed")]
27 pub listed: bool,
28
29 pub videos: Vec<PlaylistItem>,
30}