[][src]Struct deezer::models::Album

pub struct Album {
    pub id: u64,
    pub title: String,
    pub upc: String,
    pub link: String,
    pub share_link: String,
    pub cover: String,
    pub cover_small: String,
    pub cover_medium: String,
    pub cover_big: String,
    pub cover_xl: String,
    pub genre_id: Option<i32>,
    pub genres: DeezerArray<AlbumGenre>,
    pub label: String,
    pub nb_tracks: u64,
    pub duration_in_seconds: u64,
    pub fans: u64,
    pub rating: u64,
    pub release_date: String,
    pub record_type: String,
    pub available: bool,
    pub alternative_album: Option<Box<Album>>,
    pub has_explicit_lyrics: bool,
    pub contributors: Vec<ContributorArtist>,
    pub artist: AlbumArtist,
    pub tracks: DeezerArray<AlbumTrack>,
    // some fields omitted
}

Contains all the information provided for an Album.

Examples

You can query an album by id via the DeezerObject::get() method:

let album = Album::get(302127).await?.unwrap();

Or you can use DeezerClient::album():

let deezer = DeezerClient::new();

let album = deezer.album(302127).await?.unwrap();

Fields

id: u64

The Deezer album id

title: String

The album title

upc: String

The album UPC

link: String

The url of the album on Deezer

share_link: String

The share link of the album on Deezer

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.

genre_id: Option<i32>

The album's first genre id (You should use the genre list instead).

genres: DeezerArray<AlbumGenre>

List of genre object

label: String

The album's label name

nb_tracks: u64

Number of tracks in the album

duration_in_seconds: u64

The album's duration in seconds

fans: u64

The number of album's Fans

rating: u64

The album's rate

release_date: String

The album's release date

record_type: String

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

available: bool

Whether it's available right now

alternative_album: Option<Box<Album>>

Return an alternative album object if the current album is not available

has_explicit_lyrics: bool

Whether the album contains explicit lyrics

contributors: Vec<ContributorArtist>

Return a list of contributors on the album

artist: AlbumArtist

Returns an AlbumArtist object of the artist this album belongs to

tracks: DeezerArray<AlbumTrack>

list of Track objects that belong to this album

Trait Implementations

impl Clone for Album[src]

impl Debug for Album[src]

impl DeezerObject for Album[src]

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

impl Serialize for Album[src]

Auto Trait Implementations

impl RefUnwindSafe for Album

impl Send for Album

impl Sync for Album

impl Unpin for Album

impl UnwindSafe for Album

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.