Struct rspotify_model::track::SimplifiedTrack[][src]

pub struct SimplifiedTrack {
Show 15 fields pub artists: Vec<SimplifiedArtist>, pub available_markets: Option<Vec<String>>, pub disc_number: i32, pub duration: Duration, pub explicit: bool, pub external_urls: HashMap<String, String>, pub href: Option<String>, pub id: Option<TrackId>, pub is_local: bool, pub is_playable: Option<bool>, pub linked_from: Option<TrackLink>, pub restrictions: Option<Restriction>, pub name: String, pub preview_url: Option<String>, pub track_number: u32,
}
Expand description

Simplified track object.

is_playable, linked_from and restrictions will only be present when relinking is applied.

Reference

Fields

artists: Vec<SimplifiedArtist>available_markets: Option<Vec<String>>disc_number: i32duration: Durationexplicit: boolexternal_urls: HashMap<String, String>href: Option<String>id: Option<TrackId>is_local: boolis_playable: Option<bool>linked_from: Option<TrackLink>restrictions: Option<Restriction>name: Stringpreview_url: Option<String>track_number: u32

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.