[−][src]Struct deezer::models::Album
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
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]
pub fn get_api_url(id: u64) -> String
[src]
#[must_use]pub fn get<'async_trait>(
id: u64
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DeezerError>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
[src]
id: u64
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DeezerError>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
impl<'de> Deserialize<'de> for Album
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,