pub struct Playlist {Show 21 fields
pub id: u64,
pub title: String,
pub description: String,
pub duration_in_seconds: u64,
pub is_public: bool,
pub is_loved_track: bool,
pub is_collaborative: bool,
pub rating: Option<u64>,
pub nb_tracks: u64,
pub unseen_track_count: Option<u64>,
pub fans: u64,
pub link: String,
pub share_link: String,
pub picture: String,
pub picture_small: String,
pub picture_medium: String,
pub picture_big: String,
pub picture_xl: String,
pub checksum: String,
pub creator: PlaylistUser,
pub tracks: DeezerArray<PlaylistTrack>,
}Expand description
Contains all the information provided for a Playlist.
§Examples
You can query a playlist by id via the DeezerObject::get() method:
let playlist = Playlist::get(908622995).await?.unwrap();Or you can use DeezerClient::playlist():
let deezer = DeezerClient::new();
let album = deezer.playlist(908622995).await?.unwrap();
Fields§
§id: u64The playlist’s Deezer id
title: StringThe playlist’s title
description: StringThe playlist description
duration_in_seconds: u64The playlist’s duration in seconds
is_public: boolIf the playlist is public or not
is_loved_track: boolIf the playlist is the love tracks playlist
is_collaborative: boolIf the playlist is collaborative or not
rating: Option<u64>The playlist’s rate
nb_tracks: u64Number of tracks in the playlist
unseen_track_count: Option<u64>Number of tracks not seen
fans: u64The number of playlist’s fans
link: StringThe url of the playlist on Deezer
The share link of the playlist on Deezer
picture: StringThe url of the playlist’s cover
picture_small: StringThe url of the playlist’s cover in size small
picture_medium: StringThe url of the playlist’s cover in size medium
picture_big: StringThe url of the playlist’s cover in size big
picture_xl: StringThe url of the playlist’s cover in size xl
checksum: StringThe checksum for the track list
creator: PlaylistUserUser object containing : id, name
tracks: DeezerArray<PlaylistTrack>Vector of Track object