[−][src]Struct deezer::DeezerClient
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.
pub async fn artist<'_>(
&'_ self,
id: u64
) -> Result<Option<Artist>, DeezerError>
[src]
&'_ self,
id: u64
) -> Result<Option<Artist>, DeezerError>
Returns the Artist
with the given id.
pub async fn comment<'_>(
&'_ self,
id: u64
) -> Result<Option<Comment>, DeezerError>
[src]
&'_ self,
id: u64
) -> Result<Option<Comment>, DeezerError>
Returns the Comment
with the given id.
pub async fn editorial<'_>(
&'_ self,
id: u64
) -> Result<Option<Editorial>, DeezerError>
[src]
&'_ self,
id: u64
) -> Result<Option<Editorial>, DeezerError>
Returns the Editorial
with the given id.
pub async fn editorials<'_>(&'_ self) -> Result<Vec<Editorial>, DeezerError>
[src]
Returns a List of all Editorial
s.
pub async fn genre<'_>(&'_ self, id: u64) -> Result<Option<Genre>, DeezerError>
[src]
Returns the Genre
with the given id.
pub async fn genres<'_>(&'_ self) -> Result<Vec<Genre>, DeezerError>
[src]
Returns a List of all Genre
s.
pub async fn playlist<'_>(
&'_ self,
id: u64
) -> Result<Option<Playlist>, DeezerError>
[src]
&'_ self,
id: u64
) -> Result<Option<Playlist>, DeezerError>
Returns the Playlist
with the given id.
pub async fn radio<'_>(&'_ self, id: u64) -> Result<Option<Radio>, DeezerError>
[src]
Returns the Radio
with the given id.
pub async fn radios<'_>(&'_ self) -> Result<Vec<Radio>, DeezerError>
[src]
Returns a List of all Radio
s.
pub async fn track<'_>(&'_ self, id: u64) -> Result<Option<Track>, DeezerError>
[src]
Returns the Track
with the given id.
pub async fn user<'_>(&'_ self, id: u64) -> Result<Option<User>, DeezerError>
[src]
Returns the User
with the given id.
pub async fn api_info<'_>(&'_ self) -> Result<Infos, DeezerError>
[src]
Returns the information about the API in the current country
pub async fn charts<'_>(&'_ self) -> Result<Chart, DeezerError>
[src]
Returns charts of a specified genre
pub async fn user_options<'_>(&'_ self) -> Result<Options, DeezerError>
[src]
Returns the user's options
Trait Implementations
impl Clone for DeezerClient
[src]
pub fn clone(&self) -> DeezerClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeezerClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DeezerClient
impl Send for DeezerClient
impl Sync for DeezerClient
impl Unpin for DeezerClient
impl !UnwindSafe for DeezerClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,