[−][src]Struct rstidal::client::Tidal
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]
&'_ self,
url: &'_ str,
params: &'_ mut HashMap<String, String>
) -> ClientResult<String>
pub async fn post<'_, '_, '_, '_, '_>(
&'_ self,
url: &'_ str,
payload: &'_ HashMap<&'_ str, &'_ str>,
etag: Option<String>
) -> ClientResult<String>
[src]
&'_ self,
url: &'_ str,
payload: &'_ HashMap<&'_ str, &'_ str>,
etag: Option<String>
) -> ClientResult<String>
pub async fn put<'_, '_, '_, '_, '_>(
&'_ self,
url: &'_ str,
payload: &'_ HashMap<&'_ str, &'_ str>,
etag: String
) -> ClientResult<String>
[src]
&'_ self,
url: &'_ str,
payload: &'_ HashMap<&'_ str, &'_ str>,
etag: String
) -> ClientResult<String>
pub async fn search<'_, '_>(
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<TidalSearch>
[src]
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<TidalSearch>
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]
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Artist>>
pub async fn album<'_, '_>(&'_ self, id: &'_ str) -> ClientResult<Album>
[src]
pub async fn artist_albums<'_, '_>(
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Album>>
[src]
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Album>>
pub async fn search_album<'_, '_>(
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Album>>
[src]
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Album>>
pub async fn album_tracks<'_, '_>(
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Track>>
[src]
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Track>>
pub async fn search_track<'_, '_>(
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Track>>
[src]
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Track>>
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]
&'_ self,
term: &'_ str,
limit: Option<u16>
) -> ClientResult<Vec<Playlist>>
pub async fn user_playlists<'_>(&'_ self) -> ClientResult<Vec<Playlist>>
[src]
pub async fn playlist_tracks<'_, '_>(
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Track>>
[src]
&'_ self,
id: &'_ str
) -> ClientResult<Vec<Track>>
pub async fn playlist_add_tracks<'_, '_>(
&'_ self,
id: &'_ str,
tracks: Vec<Track>,
add_dupes: bool
) -> ClientResult<Playlist>
[src]
&'_ self,
id: &'_ str,
tracks: Vec<Track>,
add_dupes: bool
) -> ClientResult<Playlist>
pub async fn create_playlist<'_, '_, '_>(
&'_ self,
title: &'_ str,
description: &'_ str
) -> ClientResult<Playlist>
[src]
&'_ self,
title: &'_ str,
description: &'_ str
) -> ClientResult<Playlist>
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,