[][src]Struct deezer::models::Editorial

pub struct Editorial {
    pub id: u64,
    pub name: String,
    pub picture: String,
    pub picture_small: String,
    pub picture_medium: String,
    pub picture_big: String,
    pub picture_xl: String,
}

Contains all the information provided for an Editorial.

Examples

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

let editorial = Editorial::get(0).await?.unwrap();

Or you can use DeezerClient::editorial():

let deezer = DeezerClient::new();
let editorial = deezer.editorial(0).await?.unwrap();

To fetch all editorials use DeezerEnumerable::get_all():

let editorials = Editorial::get_all().await?;

Or DeezerClient::editorials():

let deezer = DeezerClient::new();
let editorials = deezer.editorials().await?;

Fields

id: u64

The editorial's Deezer id

name: String

The editorial's name

picture: String

The url of the editorial picture

picture_small: String

The url of the editorial picture in size small

picture_medium: String

The url of the editorial picture in size medium

picture_big: String

The url of the editorial picture in size big

picture_xl: String

The url of the editorial picture in size xl

Trait Implementations

impl Clone for Editorial[src]

impl Debug for Editorial[src]

impl DeezerEnumerable for Editorial[src]

impl DeezerObject for Editorial[src]

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

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