[][src]Struct rstidal::client::Tidal

pub struct Tidal { /* fields omitted */ }

Implementations

impl Tidal[src]

#[must_use]pub fn new(credentials: TidalCredentials) -> Self[src]

pub fn user_id(&self) -> u32[src]

pub async fn etag<'_, '_>(&'_ self, url: &'_ str) -> ClientResult<String>[src]

pub async fn get<'_, '_, '_>(
    &'_ self,
    url: &'_ str,
    params: &'_ mut HashMap<String, String>
) -> ClientResult<String>
[src]

pub async fn post<'_, '_, '_, '_, '_>(
    &'_ self,
    url: &'_ str,
    payload: &'_ HashMap<&'_ str, &'_ str>,
    etag: Option<String>
) -> ClientResult<String>
[src]

pub async fn put<'_, '_, '_, '_, '_>(
    &'_ self,
    url: &'_ str,
    payload: &'_ HashMap<&'_ str, &'_ str>,
    etag: String
) -> ClientResult<String>
[src]

pub async fn search<'_, '_>(
    &'_ self,
    term: &'_ str,
    limit: Option<u16>
) -> ClientResult<TidalSearch>
[src]

pub async fn artist<'_, '_>(&'_ self, id: &'_ str) -> ClientResult<Artist>[src]

pub async fn search_artist<'_, '_>(
    &'_ self,
    term: &'_ str,
    limit: Option<u16>
) -> ClientResult<Vec<Artist>>
[src]

pub async fn album<'_, '_>(&'_ self, id: &'_ str) -> ClientResult<Album>[src]

pub async fn artist_albums<'_, '_>(
    &'_ self,
    id: &'_ str
) -> ClientResult<Vec<Album>>
[src]

pub async fn search_album<'_, '_>(
    &'_ self,
    term: &'_ str,
    limit: Option<u16>
) -> ClientResult<Vec<Album>>
[src]

pub async fn album_tracks<'_, '_>(
    &'_ self,
    id: &'_ str
) -> ClientResult<Vec<Track>>
[src]

pub async fn search_track<'_, '_>(
    &'_ self,
    term: &'_ str,
    limit: Option<u16>
) -> ClientResult<Vec<Track>>
[src]

pub async fn playlist<'_, '_>(&'_ self, id: &'_ str) -> ClientResult<Playlist>[src]

pub async fn search_playlist<'_, '_>(
    &'_ self,
    term: &'_ str,
    limit: Option<u16>
) -> ClientResult<Vec<Playlist>>
[src]

pub async fn user_playlists<'_>(&'_ self) -> ClientResult<Vec<Playlist>>[src]

pub async fn playlist_tracks<'_, '_>(
    &'_ self,
    id: &'_ str
) -> ClientResult<Vec<Track>>
[src]

pub async fn playlist_add_tracks<'_, '_>(
    &'_ self,
    id: &'_ str,
    tracks: Vec<Track>,
    add_dupes: bool
) -> ClientResult<Playlist>
[src]

pub async fn create_playlist<'_, '_, '_>(
    &'_ self,
    title: &'_ str,
    description: &'_ str
) -> ClientResult<Playlist>
[src]

pub fn convert_result<'a, T: Deserialize<'a>>(input: &'a str) -> ClientResult<T>[src]

impl Tidal[src]

pub const fn albums(&self) -> Albums<'_>[src]

pub const fn artists(&self) -> Artists<'_>[src]

pub const fn playlists(&self) -> Playlists<'_>[src]

pub const fn searches(&self) -> Search<'_>[src]

pub const fn tracks(&self) -> Tracks<'_>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Tidal

impl Send for Tidal

impl Sync for Tidal

impl Unpin for Tidal

impl !UnwindSafe for Tidal

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