[][src]Struct deezer::models::ChartTrackAlbum

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

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.

Implementations

impl ChartTrackAlbum[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 ChartTrackAlbum references an existing Album.

Trait Implementations

impl Clone for ChartTrackAlbum[src]

impl Debug for ChartTrackAlbum[src]

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

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