summaryrefslogtreecommitdiff
path: root/src/user.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/user.rs
parent4b2228d758d0962dd181b8af93cdfcb8e6a78c6e (diff)
feat: make data structs clonableHEADmaster
Diffstat (limited to 'src/user.rs')
-rw-r--r--src/user.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user.rs b/src/user.rs
index ee22f5a..d4f57f9 100644
--- a/src/user.rs
+++ b/src/user.rs
@@ -13,7 +13,7 @@ use serde::Deserialize;
use crate::creator::Creator;
/// A Deezer user.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct User
{
/// The user's Deezer ID
@@ -87,7 +87,7 @@ pub struct User
}
/// A user's playlist.
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub struct UserPlaylist
{
/// The playlist's Deezer id
@@ -146,7 +146,7 @@ pub struct UserPlaylist
pub creator: Creator,
}
-#[derive(Debug, Deserialize)]
+#[derive(Debug, Deserialize, Clone)]
pub(crate) struct UserPlaylists
{
pub data: Vec<UserPlaylist>,