[][src]Struct deezer::models::album::AlbumGenre

pub struct AlbumGenre {
    pub id: u64,
    pub name: String,
    pub picture: String,
}

Subset of Genre.

Use get_full() for the full Genre.

Fields

id: u64

The Genre's id

name: String

The Genre's name

picture: String

The url of the genre picture

Implementations

impl AlbumGenre[src]

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

Returns the corresponding Genre.

Panics

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

This should never happen as AlbumGenre references an existing Genre.

Trait Implementations

impl Clone for AlbumGenre[src]

impl Debug for AlbumGenre[src]

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

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