[][src]Struct deezer::models::chart::ChartPlaylist

pub struct ChartPlaylist {
    pub id: u64,
    pub title: String,
    pub is_public: bool,
    pub link: String,
    pub picture: String,
    pub picture_small: String,
    pub picture_medium: String,
    pub picture_big: String,
    pub picture_xl: String,
    pub position: u64,
    pub user: PlaylistUser,
}

Subset of Playlist.

Use get_full() for the full Playlist.

Fields

id: u64

The playlist's Deezer id

title: String

The playlist's title

is_public: bool

If the playlist is public or not

link: String

The url 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

position: u64

The position of the playlist in the charts

user: PlaylistUser

User object

Implementations

impl ChartPlaylist[src]

pub async fn get_full<'_>(&'_ self) -> Result<Playlist, DeezerError>[src]

Returns the full Playlist.

Panics

Can panic when the playlist api returns 404 - Not Found.

This should never happen as ChartPlaylist references an existing Playlist.

Trait Implementations

impl Clone for ChartPlaylist[src]

impl Debug for ChartPlaylist[src]

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

impl Serialize for ChartPlaylist[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.