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<'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,
{ ... }
}