Compare commits
2 Commits
d4d51c64e9
...
87614c2a10
Author | SHA1 | Date | |
---|---|---|---|
87614c2a10 | |||
0d3769dcc3 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1036,7 +1036,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "soundcloud"
|
name = "soundcloud"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hyper-util",
|
"hyper-util",
|
||||||
"regex",
|
"regex",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "soundcloud"
|
name = "soundcloud"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A small rust crate for fetching data from soundcloud without developer account"
|
description = "A small rust crate for fetching data from soundcloud without developer account"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize, Clone)]
|
||||||
pub struct CloudPlaylists {
|
pub struct CloudPlaylists {
|
||||||
pub collection: Vec<CloudPlaylist>
|
pub collection: Vec<CloudPlaylist>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize, Clone)]
|
||||||
pub struct CloudPlaylist {
|
pub struct CloudPlaylist {
|
||||||
pub artwork_url: Option<String>,
|
pub artwork_url: Option<String>,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
@ -16,7 +16,7 @@ pub struct CloudPlaylist {
|
|||||||
pub tracks: Vec<CloudTrack>
|
pub tracks: Vec<CloudTrack>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize, Clone)]
|
||||||
pub struct CloudTrack {
|
pub struct CloudTrack {
|
||||||
pub artwork_url: Option<String>,
|
pub artwork_url: Option<String>,
|
||||||
pub created_at: Option<String>,
|
pub created_at: Option<String>,
|
||||||
@ -30,12 +30,12 @@ pub struct CloudTrack {
|
|||||||
pub media: Option<CloudTranscodings>
|
pub media: Option<CloudTranscodings>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize, Clone)]
|
||||||
pub struct CloudTranscodings {
|
pub struct CloudTranscodings {
|
||||||
pub transcodings: Vec<CloudTranscoding>
|
pub transcodings: Vec<CloudTranscoding>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize)]
|
#[derive(Debug, serde::Deserialize, Clone)]
|
||||||
pub struct CloudTranscoding {
|
pub struct CloudTranscoding {
|
||||||
pub duration: u32,
|
pub duration: u32,
|
||||||
pub preset: String,
|
pub preset: String,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user