pub struct TrackObject {Show 20 fields
pub album: SimplifiedAlbumObject,
pub artists: Vec<ArtistObject>,
pub available_markets: Vec<String>,
pub disc_number: usize,
pub duration_ms: usize,
pub explicit: bool,
pub external_ids: ExternalIdObject,
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 popularity: usize,
pub preview_url: String,
pub restrictions: TrackRestrictionObject,
pub track_number: usize,
pub _type: String,
pub uri: String,
}Expand description
Fields§
§album: SimplifiedAlbumObjectThe album on which the track appears. The album object includes a link in href to full information about the album.
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: usizeThe disc number (usually 1 unless the album consists of more than one disc).
duration_ms: usizeThe track length in milliseconds.
explicit: boolWhether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).
external_ids: ExternalIdObjectKnown external IDs for the track.
external_urls: ExternalUrlObjectKnown external URLs for this track.
href: StringA link to the Web API endpoint providing full details of the track.
id: StringThe Spotify ID for the track.
is_local: boolWhether or not the track is from a local file.
is_playable: boolPart of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false.
linked_from: LinkedFromPart 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: StringThe name of the track.
popularity: usizeThe popularity of the track. The value will be between 0 and 100, with 100 being the most popular. The popularity of a track is a value between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are. Generally speaking, songs that are being played a lot now will have a higher popularity than songs that were played a lot in the past. Duplicate tracks (e.g. the same track from a single and an album) are rated independently. Artist and album popularity is derived mathematically from track popularity. Note that the popularity value may lag actual popularity by a few days: the value is not updated in real time.
preview_url: StringA link to a 30 second preview (MP3 format) of the track. Can be null
restrictions: TrackRestrictionObjectIncluded in the response when a content restriction is applied. See Restriction Object for more details.
track_number: usizeThe number of the track. If an album has several discs, the track number is the number on the specified disc.
_type: StringThe object type: “track”.
uri: StringThe Spotify URI for the track.
Trait Implementations§
Source§impl Clone for TrackObject
impl Clone for TrackObject
Source§fn clone(&self) -> TrackObject
fn clone(&self) -> TrackObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackObject
impl Debug for TrackObject
Source§impl<'de> Deserialize<'de> for TrackObject
impl<'de> Deserialize<'de> for TrackObject
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 TrackObject
impl PartialEq for TrackObject
Source§impl Serialize for TrackObject
impl Serialize for TrackObject
impl Eq for TrackObject
impl StructuralPartialEq for TrackObject
Auto Trait Implementations§
impl Freeze for TrackObject
impl RefUnwindSafe for TrackObject
impl Send for TrackObject
impl Sync for TrackObject
impl Unpin for TrackObject
impl UnwindSafe for TrackObject
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.