[][src]Module aspotify::model

The Spotify Object Model, in deserializable Rust structures.

Structs

Actions

Actions that are disallowed in the current context.

Album

An album object.

AlbumSimplified

A simplified album object.

Artist

An artist object.

ArtistSimplified

A simplified artist object.

ArtistsAlbum

A simplified album object from the context of an artist.

AudioAnalysis

Audio analysis of a track.

AudioFeatures

Information and features of a track.

AuthenticationError

An error caused by one of the Web API endpoints relating to authentication.

Category

A category of music, for example "Mood", "Top Lists", "Workout", et cetera.

Context

The context of the current playing track.

Copyright

The copyright information for a resource.

CurrentPlayback

Information about a user's current playback state.

CurrentlyPlaying

Information about the currently playing track.

Cursor

Object that contains the next CursorPage.

CursorPage

A page of items, using a cursor to find the next page.

Device

A device object.

Error

A regular error object returns by endpoints of the API.

FeaturedPlaylists

A list of featured playlists, and a message.

Followers

Information about the followers of an item. Currently only contains the number of followers.

Image

An image with a URL and an optional width and height.

Page

A page of items.

PlayHistory

When and how a track was played.

PlayerError

An error returned by the player. It is an extension of Error, with an additional reason.

Playlist

A playlist object.

PlaylistSimplified

A simplified playlist object.

PlaylistTrack

A track inside a playlist.

RecommendationSeed

How the recommendation was chosen.

Recommendations

Recommended tracks for the user.

Restrictions

Restrictions applied to a track due to markets.

SavedAlbum

Information about an album that has been saved.

SavedTrack

Information about a track that has been saved.

SearchResults

The results of a search.

Section

A section of a track.

Segment

A segment in a track.

TimeInterval

A time interval in a track.

Track

A track object.

TrackLink

A link to a track.

TrackSimplified

A simplified track object.

Tracks

The number of tracks an object contains.

TwoWayCursor

Object that contains the next and previous CursorPage.

TwoWayCursorPage

A page of items, using a cursor to move backwards and forwards.

UserPrivate

A user object only accessible to the user themselves; does not work with Client Credentials flow.

UserPublic

A user object that is accessible to everyone.

UserSimplified

A user object that contains less fields than UserPubic and is not documented anywhere, but is returned by some endpoints.

Enums

AlbumGroup

When getting all an artist's albums, if the artist didn't release the album but instead appeared on it, this is set to AppearsOn.

AlbumType

The type of album.

DatePrecision

How precise a date measurement is.

DeviceType

A type of device.

Disallow

An action that is currently not able to be performed.

EndpointError

An HTTP error or an error from the endpoint.

ItemType

A type of item in the Spotify model.

Mode

The mode of a track (major or minor).

PlayerErrorReason

A reason for an PlayerError.

RepeatState

Repeating the track, the context or not at all.

SeedType

The context from which the recommendation was chosen; artist, track or genre.

Subscription

The subscription level; premium or free.

TrackType

The type of track.

Traits

SpotifyError

An error caused by a Spotify endpoint.