summaryrefslogtreecommitdiff
path: root/src/creator.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-06 21:40:01 +0200
committerHampusM <hampus@hampusmat.com>2022-09-06 21:40:01 +0200
commitb44463d533ba9b789e3423d670e2ddcc32c1112c (patch)
tree68f377f86ffbc99efcd88bc4fa1549784af6cf5d /src/creator.rs
parentd7929e7e9fee879a28871c2195620869db291441 (diff)
feat: add getting user & playlists
Diffstat (limited to 'src/creator.rs')
-rw-r--r--src/creator.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/creator.rs b/src/creator.rs
new file mode 100644
index 0000000..81e3797
--- /dev/null
+++ b/src/creator.rs
@@ -0,0 +1,13 @@
+//! Creator.
+use serde::Deserialize;
+
+/// A user that created another object.
+#[derive(Debug, Deserialize)]
+pub struct Creator
+{
+ /// User ID.
+ pub id: u64,
+
+ /// User name.
+ pub name: String,
+}