[][src]Struct deezer::models::ChartArtist

pub struct ChartArtist {
    pub id: u64,
    pub name: String,
    pub link: String,
    pub picture: String,
    pub picture_small: String,
    pub picture_medium: String,
    pub picture_big: String,
    pub picture_xl: String,
    pub has_radio: bool,
    pub position: u64,
}

Subset of Artist.

Use get_full() for the full Artist.

Fields

id: u64

The artist's Deezer id

name: String

The artist's name

link: String

The url of the artist on Deezer

picture: String

The url of the artist picture.

picture_small: String

The url of the artist picture in size small

picture_medium: String

The url of the artist picture in size medium

picture_big: String

The url of the artist picture in size big

picture_xl: String

The url of the artist picture in size xl

has_radio: bool

True if the artist has a smartradio

position: u64

The position of the artist in the charts

Implementations

impl ChartArtist[src]

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

Returns the full Artist.

Panics

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

This should never happen as ChartArtist references an existing Artist.

Trait Implementations

impl Clone for ChartArtist[src]

impl Debug for ChartArtist[src]

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

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