pub struct MetadataClient { /* private fields */ }Expand description
Fetches metadata through the Authenticator.
Implementations§
Source§impl MetadataClient
impl MetadataClient
pub fn new(auth: Arc<Authenticator>) -> Self
Sourcepub async fn get_track(&self, id: TrackId) -> Result<Track, MetadataError>
pub async fn get_track(&self, id: TrackId) -> Result<Track, MetadataError>
GET /tracks/{id} (AC17).
Sourcepub async fn get_album_tracks(
&self,
album: u64,
) -> Result<Vec<Track>, MetadataError>
pub async fn get_album_tracks( &self, album: u64, ) -> Result<Vec<Track>, MetadataError>
Every track of an album, in album order (AC17).
Sourcepub async fn get_playlist_tracks(
&self,
uuid: &str,
) -> Result<Vec<Track>, MetadataError>
pub async fn get_playlist_tracks( &self, uuid: &str, ) -> Result<Vec<Track>, MetadataError>
Every track of a playlist, in playlist order. Items that are not tracks (videos) are left out (AC17).
Sourcepub async fn get_suggestions(
&self,
seed: TrackId,
) -> Result<Vec<Track>, MetadataError>
pub async fn get_suggestions( &self, seed: TrackId, ) -> Result<Vec<Track>, MetadataError>
Tidal’s suggestions for seed, in order, the seed included (the
radio starts with it): one request. An unknown seed has none (AC27).
Trait Implementations§
Source§impl Clone for MetadataClient
impl Clone for MetadataClient
Auto Trait Implementations§
impl !RefUnwindSafe for MetadataClient
impl !UnwindSafe for MetadataClient
impl Forget for MetadataClient
impl Freeze for MetadataClient
impl Send for MetadataClient
impl Sync for MetadataClient
impl Unpin for MetadataClient
impl UnsafeUnpin for MetadataClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more