[][src]Struct deezer::DeezerClient

pub struct DeezerClient { /* fields omitted */ }

Entrypoint to interact with all deezer apis

Implementations

impl DeezerClient[src]

pub fn new() -> Self[src]

Create a new unauthenticated client instance

pub async fn album<'_>(&'_ self, id: u64) -> Result<Option<Album>, DeezerError>[src]

Returns the Album with the given id.

Deezer Api Documentation

pub async fn artist<'_>(
    &'_ self,
    id: u64
) -> Result<Option<Artist>, DeezerError>
[src]

Returns the Artist with the given id.

Deezer Api Documentation

pub async fn comment<'_>(
    &'_ self,
    id: u64
) -> Result<Option<Comment>, DeezerError>
[src]

Returns the Comment with the given id.

Deezer Api Documentation

pub async fn editorial<'_>(
    &'_ self,
    id: u64
) -> Result<Option<Editorial>, DeezerError>
[src]

Returns the Editorial with the given id.

Deezer Api Documentation

pub async fn editorials<'_>(&'_ self) -> Result<Vec<Editorial>, DeezerError>[src]

Returns a List of all Editorials.

Deezer Api Documentation

pub async fn genre<'_>(&'_ self, id: u64) -> Result<Option<Genre>, DeezerError>[src]

Returns the Genre with the given id.

Deezer Api Documentation

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

Returns a List of all Genres.

Deezer Api Documentation

pub async fn playlist<'_>(
    &'_ self,
    id: u64
) -> Result<Option<Playlist>, DeezerError>
[src]

Returns the Playlist with the given id.

Deezer Api Documentation

pub async fn radio<'_>(&'_ self, id: u64) -> Result<Option<Radio>, DeezerError>[src]

Returns the Radio with the given id.

Deezer Api Documentation

pub async fn radios<'_>(&'_ self) -> Result<Vec<Radio>, DeezerError>[src]

Returns a List of all Radios.

Deezer Api Documentation

pub async fn track<'_>(&'_ self, id: u64) -> Result<Option<Track>, DeezerError>[src]

Returns the Track with the given id.

Deezer Api Documentation

pub async fn user<'_>(&'_ self, id: u64) -> Result<Option<User>, DeezerError>[src]

Returns the User with the given id.

Deezer Api Documentation

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

Returns the information about the API in the current country

Deezer Api Documentation

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

Returns charts of a specified genre

Deezer Api Documentation

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

Returns the user's options

Deezer Api Documentation

Trait Implementations

impl Clone for DeezerClient[src]

impl Debug for DeezerClient[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> 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.