Trait librespot_metadata::Metadata[][src]

pub trait Metadata: Send + Sized + 'static {
    type Message: Message;
    fn request_url(id: SpotifyId) -> String;
fn parse(msg: &Self::Message, session: &Session) -> Self; #[must_use] fn get<'life0, 'async_trait>(
        session: &'life0 Session,
        id: SpotifyId
    ) -> Pin<Box<dyn Future<Output = Result<Self, MercuryError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Associated Types

Loading content...

Required methods

fn request_url(id: SpotifyId) -> String[src]

fn parse(msg: &Self::Message, session: &Session) -> Self[src]

Loading content...

Provided methods

#[must_use]
fn get<'life0, 'async_trait>(
    session: &'life0 Session,
    id: SpotifyId
) -> Pin<Box<dyn Future<Output = Result<Self, MercuryError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl Metadata for Album[src]

type Message = Album

impl Metadata for Artist[src]

type Message = Artist

impl Metadata for Episode[src]

type Message = Episode

impl Metadata for Playlist[src]

impl Metadata for Show[src]

type Message = Show

impl Metadata for Track[src]

type Message = Track

Loading content...