pub struct LocalTrack { /* private fields */ }Expand description
A local track. Contains only the information common to every track.
Trait Implementations§
Source§impl Clone for LocalTrack
impl Clone for LocalTrack
Source§fn clone(&self) -> LocalTrack
fn clone(&self) -> LocalTrack
Returns a duplicate 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 LocalTrack
impl Debug for LocalTrack
Source§impl<'de> Deserialize<'de> for LocalTrack
impl<'de> Deserialize<'de> for LocalTrack
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LocalTrack> for Track
impl From<LocalTrack> for Track
Source§fn from(local: LocalTrack) -> Self
fn from(local: LocalTrack) -> Self
Converts to this type from the input type.
Source§impl From<Track> for LocalTrack
impl From<Track> for LocalTrack
Source§impl PartialEq<FullTrack> for LocalTrack
impl PartialEq<FullTrack> for LocalTrack
Source§impl PartialEq<LocalTrack> for FullTrack
impl PartialEq<LocalTrack> for FullTrack
Source§impl PartialEq<LocalTrack> for PartialTrack
impl PartialEq<LocalTrack> for PartialTrack
Source§impl PartialEq<PartialTrack> for LocalTrack
impl PartialEq<PartialTrack> for LocalTrack
Source§impl PartialEq for LocalTrack
impl PartialEq for LocalTrack
Source§impl Serialize for LocalTrack
impl Serialize for LocalTrack
impl Eq for LocalTrack
impl StructuralPartialEq for LocalTrack
Auto Trait Implementations§
impl Freeze for LocalTrack
impl RefUnwindSafe for LocalTrack
impl Send for LocalTrack
impl Sync for LocalTrack
impl Unpin for LocalTrack
impl UnwindSafe for LocalTrack
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommonTrackInformation for Twhere
T: CommonFields + Sealed,
impl<T> CommonTrackInformation for Twhere
T: CommonFields + Sealed,
Source§fn artists(&self) -> &[PartialArtist]
fn artists(&self) -> &[PartialArtist]
The artists of the track.
Source§fn track_number(&self) -> u32
fn track_number(&self) -> u32
The track’s number in its corresponding disc.
Source§fn disc_number(&self) -> u32
fn disc_number(&self) -> u32
The track’s disc’s number.
Source§fn preview_url(&self) -> Option<&str>
fn preview_url(&self) -> Option<&str>
An URL to a 30 second preview of the track.
Source§fn external_urls(&self) -> &ExternalUrls
fn external_urls(&self) -> &ExternalUrls
The external URLs for the track.
Source§fn available_markets(&self) -> &HashSet<CountryCode>
fn available_markets(&self) -> &HashSet<CountryCode>
The countries the track is available in.
Source§fn is_playable(&self) -> Option<bool>
fn is_playable(&self) -> Option<bool>
Whether or not the track is playable.
Source§fn linked_from(&self) -> Option<&LinkedTrack>
fn linked_from(&self) -> Option<&LinkedTrack>
When track relinking is
applied, the original track this track is linked from.
Source§fn restrictions(&self) -> &Restrictions
fn restrictions(&self) -> &Restrictions
The restrictions on the track.