From a6732847bebbcb6e59a1b8a44a965fe7092af6e9 Mon Sep 17 00:00:00 2001 From: "alterwain@protonmail.com" Date: Sat, 22 Feb 2025 17:58:11 +0300 Subject: [PATCH] 0.1.9 --- Cargo.toml | 2 +- src/sobjects.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e512271..13799a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "soundcloud" -version = "0.1.8" +version = "0.1.9" edition = "2021" description = "A small rust crate for fetching data from soundcloud without developer account" authors = ["alterwain"] diff --git a/src/sobjects.rs b/src/sobjects.rs index 87adf8d..e6264a6 100644 --- a/src/sobjects.rs +++ b/src/sobjects.rs @@ -3,7 +3,7 @@ pub struct CloudPlaylists { pub collection: Vec, } -#[derive(Debug, serde::Deserialize, Clone)] +#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)] pub struct CloudPlaylist { pub artwork_url: Option, pub description: String, @@ -16,7 +16,7 @@ pub struct CloudPlaylist { pub tracks: Vec, } -#[derive(Debug, serde::Deserialize, Clone)] +#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)] pub struct CloudTrack { pub artwork_url: Option, pub created_at: Option, @@ -31,18 +31,18 @@ pub struct CloudTrack { pub media: Option, } -#[derive(Debug, serde::Deserialize, Clone)] +#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)] pub struct CloudArtist { pub username: Option, pub permalink: String, } -#[derive(Debug, serde::Deserialize, Clone)] +#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)] pub struct CloudTranscodings { pub transcodings: Vec, } -#[derive(Debug, serde::Deserialize, Clone)] +#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)] pub struct CloudTranscoding { pub duration: u32, pub preset: String,