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; fn get(
        session: &Session,
        id: SpotifyId
    ) -> Box<dyn Future<Item = Self, Error = MercuryError>> { ... } }

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

fn get(
    session: &Session,
    id: SpotifyId
) -> Box<dyn Future<Item = Self, Error = MercuryError>>
[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...