spotify_cli/domain/
playlist.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct Playlist {
6 pub id: String,
7 pub name: String,
8 pub owner: Option<String>,
9 #[serde(default)]
10 pub collaborative: bool,
11 #[serde(default)]
12 pub public: Option<bool>,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize)]
17pub struct PlaylistDetail {
18 pub id: String,
19 pub name: String,
20 pub uri: String,
21 pub owner: Option<String>,
22 pub tracks_total: Option<u32>,
23 #[serde(default)]
24 pub collaborative: bool,
25 #[serde(default)]
26 pub public: Option<bool>,
27}