Struct librespot_metadata::Track [−][src]
pub struct Track { pub id: SpotifyId, pub name: String, pub duration: i32, pub album: SpotifyId, pub artists: Vec<SpotifyId>, pub files: HashMap<FileFormat, FileId>, pub alternatives: Vec<SpotifyId>, pub available: bool, }
Fields
id: SpotifyId
name: String
duration: i32
album: SpotifyId
artists: Vec<SpotifyId>
files: HashMap<FileFormat, FileId>
alternatives: Vec<SpotifyId>
available: bool
Trait Implementations
impl Metadata for Track
[src]
impl Metadata for Track
[src]type Message = Track
fn request_url(id: SpotifyId) -> String
[src]
fn parse(msg: &Self::Message, session: &Session) -> Self
[src]
#[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]
#[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,
Auto Trait Implementations
impl RefUnwindSafe for Track
impl RefUnwindSafe for Track
impl UnwindSafe for Track
impl UnwindSafe for Track