[][src]Struct deezer::models::playlist::Playlist

pub struct Playlist {
    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>,
}

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: u64

The playlist's Deezer id

title: String

The playlist's title

description: String

The playlist description

duration_in_seconds: u64

The playlist's duration in seconds

is_public: bool

If the playlist is public or not

is_loved_track: bool

If the playlist is the love tracks playlist

is_collaborative: bool

If the playlist is collaborative or not

rating: Option<u64>

The playlist's rate

nb_tracks: u64

Number of tracks in the playlist

unseen_track_count: Option<u64>

Number of tracks not seen

fans: u64

The number of playlist's fans

link: String

The url of the playlist on Deezer

share_link: String

The share link of the playlist on Deezer

picture: String

The url of the playlist's cover

picture_small: String

The url of the playlist's cover in size small

picture_medium: String

The url of the playlist's cover in size medium

picture_big: String

The url of the playlist's cover in size big

picture_xl: String

The url of the playlist's cover in size xl

checksum: String

The checksum for the track list

creator: PlaylistUser

User object containing : id, name

tracks: DeezerArray<PlaylistTrack>

Vector of Track object

Trait Implementations

impl Clone for Playlist[src]

impl Debug for Playlist[src]

impl DeezerObject for Playlist[src]

impl<'de> Deserialize<'de> for Playlist[src]

impl Serialize for Playlist[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.