summaryrefslogtreecommitdiff
path: root/src/playlist.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-10 17:31:38 +0200
committerHampusM <hampus@hampusmat.com>2022-11-26 15:54:01 +0100
commit5e5dab62af76a5302970e56126cd15bcd7219b98 (patch)
tree9f3b6ed81d72e3e29f4b43812121717496cced57 /src/playlist.rs
parent4b2228d758d0962dd181b8af93cdfcb8e6a78c6e (diff)
feat: make data structs clonableHEADmaster
Diffstat (limited to 'src/playlist.rs')
-rw-r--r--src/playlist.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/playlist.rs b/src/playlist.rs
index b918282..b547eec 100644
--- a/src/playlist.rs
+++ b/src/playlist.rs
@@ -4,7 +4,7 @@ use serde::Deserialize;
use crate::creator::Creator;
/// A playlist.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct Playlist
{
/// The playlist's Deezer id.
@@ -70,7 +70,7 @@ pub struct Playlist
}
/// A track in a playlist.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct PlaylistTrack
{
/// The track's Deezer id
@@ -118,7 +118,7 @@ pub struct PlaylistTrack
}
/// The artist of a playlist track.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct PlaylistTrackArtist
{
/// Artist id.
@@ -132,7 +132,7 @@ pub struct PlaylistTrackArtist
}
/// The album of a playlist track.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct PlaylistTrackAlbum
{
/// Album id.
@@ -158,7 +158,7 @@ pub struct PlaylistTrackAlbum
}
/// Tracks in a playlist.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct PlaylistTracks
{
/// Tracks.