pub struct SimplifiedTrackObject {Show 17 fields
pub artists: Vec<ArtistObject>,
pub available_markets: Vec<String>,
pub disc_number: usize,
pub duration_ms: usize,
pub explicit: bool,
pub external_urls: ExternalUrlObject,
pub href: String,
pub id: String,
pub is_local: bool,
pub is_playable: bool,
pub linked_from: LinkedFrom,
pub name: String,
pub preview_url: String,
pub restrictions: TrackRestrictionObject,
pub track_number: usize,
pub _type: String,
pub uri: String,
}
Expand description
Fields§
§artists: Vec<ArtistObject>
The artists who performed the track. Each artist object includes a link in href
to more detailed information about the artist.
available_markets: Vec<String>
A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
disc_number: usize
The disc number (usually 1
unless the album consists of more than one disc).
duration_ms: usize
The track length in milliseconds.
explicit: bool
Whether or not the track has explicit lyrics (true
= yes it does; false
= no it does not OR unknown).
external_urls: ExternalUrlObject
Known external URLs for this track.
href: String
A link to the Web API endpoint providing full details of the track.
id: String
The Spotify ID for the track.
is_local: bool
Whether or not the track is from a local file.
is_playable: bool
Part of the response when Track Relinking is applied. If true
, the track is playable in the given market. Otherwise false
.
linked_from: LinkedFrom
Part of the response when Track Relinking is applied, and the requested track has been replaced with different track. The track in the linked_from
object contains information about the originally requested track.
name: String
The name of the track.
preview_url: String
A link to a 30 second preview (MP3 format) of the track. Can be null
restrictions: TrackRestrictionObject
Included in the response when a content restriction is applied. See Restriction Object for more details.
track_number: usize
The number of the track. If an album has several discs, the track number is the number on the specified disc.
_type: String
The object type: “track”.
uri: String
The Spotify URI for the track.
Trait Implementations§
Source§impl Clone for SimplifiedTrackObject
impl Clone for SimplifiedTrackObject
Source§fn clone(&self) -> SimplifiedTrackObject
fn clone(&self) -> SimplifiedTrackObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SimplifiedTrackObject
impl Debug for SimplifiedTrackObject
Source§impl<'de> Deserialize<'de> for SimplifiedTrackObject
impl<'de> Deserialize<'de> for SimplifiedTrackObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SimplifiedTrackObject
impl PartialEq for SimplifiedTrackObject
Source§impl Serialize for SimplifiedTrackObject
impl Serialize for SimplifiedTrackObject
impl Eq for SimplifiedTrackObject
impl StructuralPartialEq for SimplifiedTrackObject
Auto Trait Implementations§
impl Freeze for SimplifiedTrackObject
impl RefUnwindSafe for SimplifiedTrackObject
impl Send for SimplifiedTrackObject
impl Sync for SimplifiedTrackObject
impl Unpin for SimplifiedTrackObject
impl UnwindSafe for SimplifiedTrackObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key
and return true
if they are equal.