[][src]Function spotify_genres::get_genres_for_playlist

pub fn get_genres_for_playlist(
    client: &Spotify,
    playlist: &str
) -> Result<Vec<(String, u64)>, Box<dyn Error>>

Calculates a histogram of the genres in the playlist with id playlist. Returns a vector of pairs (genre_name: String, amount: u64). Needs a Spotify client.