soundcloud-rs 0.2.0

A simple Rust client for the SoundCloud API
Documentation
use serde::Deserialize;

use crate::response::{PagingCollection, Playlist, Track, User};

pub type SearchResultsResponse = PagingCollection<SearchResult>;
pub type SearchAllResponse = PagingCollection<SearchAllResult>;

#[derive(Debug, Deserialize, Default)]
pub struct SearchResult {
    pub output: Option<String>,
    pub query: Option<String>,
}

#[derive(Debug, Deserialize)]
#[serde(tag = "kind", rename_all = "lowercase")]
pub enum SearchAllResult {
    Track(Track),
    User(User),
    Playlist(Playlist),
}