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

pub struct ChartAlbum {
    pub id: u64,
    pub title: String,
    pub cover: String,
    pub cover_small: String,
    pub cover_medium: String,
    pub cover_big: String,
    pub cover_xl: String,
    pub record_type: String,
    pub has_explicit_lyrics: bool,
    pub position: u64,
    pub artist: ChartAlbumArtist,
}

Subset of Album.

Use get_full() for the full Album.

Fields

id: u64

The Deezer album id

title: String

The album title

cover: String

The url of the album's cover.

cover_small: String

The url of the album's cover in size small.

cover_medium: String

The url of the album's cover in size medium.

cover_big: String

The url of the album's cover in size big.

cover_xl: String

The url of the album's cover in size xl.

record_type: String

The record type of the album (EP / ALBUM / etc..)

has_explicit_lyrics: bool

Whether the album contains explicit lyrics

position: u64

The position of the album in the charts

artist: ChartAlbumArtist

Returns an ChartAlbumArtist object of the artist this album belongs to

Implementations

impl ChartAlbum[src]

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

Returns the corresponding Album.

Panics

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

This should never happen as ChartAlbum references an existing Album.

Trait Implementations

impl Clone for ChartAlbum[src]

impl Debug for ChartAlbum[src]

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

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