Struct spotify::status::SimpleTrack
[−]
[src]
pub struct SimpleTrack { pub name: String, pub album: String, pub artist: String, }
A simple track.
Provides an abstraction over the more
complicated and quite messy Track
struct.
Fields
name: String
The track name.
album: String
The album name.
artist: String
The artist name.
Trait Implementations
impl Debug for SimpleTrack
[src]
impl Clone for SimpleTrack
[src]
fn clone(&self) -> SimpleTrack
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SimpleTrack
[src]
fn eq(&self, __arg_0: &SimpleTrack) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SimpleTrack) -> bool
This method tests for !=
.
impl<'a> From<&'a Track> for SimpleTrack
[src]
Implements From<Track>
for SimpleTrack
.
fn from(track: &'a Track) -> SimpleTrack
Performs the conversion.
impl<'a> From<&'a SpotifyStatus> for SimpleTrack
[src]
Implements From<SpotifyStatus>
for SimpleTrack
.
fn from(status: &'a SpotifyStatus) -> SimpleTrack
Performs the conversion.
impl Display for SimpleTrack
[src]
Implements fmt::Display
for SimpleTrack
.