[][src]Trait deezer::models::DeezerObject

pub trait DeezerObject: DeserializeOwned {
    pub fn get_api_url(id: u64) -> String;

#[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
, { ... } }

A by id queryable api object of the deezer api

Required methods

pub fn get_api_url(id: u64) -> String[src]

Get a relative api url for the given id

Loading content...

Provided methods

#[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]

Fetch an api object with the given id

Loading content...

Implementors

impl DeezerObject for Album[src]

impl DeezerObject for Artist[src]

impl DeezerObject for Comment[src]

impl DeezerObject for Editorial[src]

impl DeezerObject for Genre[src]

impl DeezerObject for Playlist[src]

impl DeezerObject for Radio[src]

impl DeezerObject for Track[src]

impl DeezerObject for User[src]

Loading content...