[][src]Struct deezer::models::Radio

pub struct Radio {
    pub id: u64,
    pub title: String,
    pub description: Option<String>,
    pub share_link: Option<String>,
    pub picture: String,
    pub picture_small: String,
    pub picture_medium: String,
    pub picture_big: String,
    pub picture_xl: String,
    pub track_list: String,
}

Contains all the information provided for a Radio.

Examples

You can query a radio by id via the DeezerObject::get() method:

let radio = Radio::get(6).await?.unwrap();

Or you can use DeezerClient::radio():

let deezer = DeezerClient::new();
let radio = deezer.radio(6).await?.unwrap();

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

let radios = Radio::get_all().await?;

Or DeezerClient::radios():

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

Fields

id: u64

The radio deezer ID

title: String

The radio title

description: Option<String>

The radio description

None when listing all radios

share_link: Option<String>

The share link of the radio on Deezer

None when listing all radios

picture: String

The url of the radio picture

picture_small: String

The url of the radio picture in size small

picture_medium: String

The url of the radio picture in size medium

picture_big: String

The url of the radio picture in size big

picture_xl: String

The url of the radio picture in size xl

track_list: String

API Link to the tracklist of this radio

Trait Implementations

impl Debug for Radio[src]

impl DeezerEnumerable for Radio[src]

impl DeezerObject for Radio[src]

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

impl Serialize for Radio[src]

Auto Trait Implementations

impl RefUnwindSafe for Radio

impl Send for Radio

impl Sync for Radio

impl Unpin for Radio

impl UnwindSafe for Radio

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, 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.