Struct spotify::status::SimpleTrack
source · pub struct SimpleTrack {
pub name: String,
pub album: String,
pub artist: String,
}
Expand description
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§
source§impl Clone for SimpleTrack
impl Clone for SimpleTrack
source§fn clone(&self) -> SimpleTrack
fn clone(&self) -> SimpleTrack
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SimpleTrack
impl Debug for SimpleTrack
source§impl Display for SimpleTrack
impl Display for SimpleTrack
Implements fmt::Display
for SimpleTrack
.
source§impl<'a> From<&'a SpotifyStatus> for SimpleTrack
impl<'a> From<&'a SpotifyStatus> for SimpleTrack
Implements From<SpotifyStatus>
for SimpleTrack
.
source§fn from(status: &'a SpotifyStatus) -> SimpleTrack
fn from(status: &'a SpotifyStatus) -> SimpleTrack
Converts to this type from the input type.
source§impl<'a> From<&'a Track> for SimpleTrack
impl<'a> From<&'a Track> for SimpleTrack
Implements From<Track>
for SimpleTrack
.
source§fn from(track: &'a Track) -> SimpleTrack
fn from(track: &'a Track) -> SimpleTrack
Converts to this type from the input type.
source§impl PartialEq for SimpleTrack
impl PartialEq for SimpleTrack
source§fn eq(&self, other: &SimpleTrack) -> bool
fn eq(&self, other: &SimpleTrack) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SimpleTrack
impl StructuralEq for SimpleTrack
impl StructuralPartialEq for SimpleTrack
Auto Trait Implementations§
impl RefUnwindSafe for SimpleTrack
impl Send for SimpleTrack
impl Sync for SimpleTrack
impl Unpin for SimpleTrack
impl UnwindSafe for SimpleTrack
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.