Endpoint

Enum Endpoint 

Source
pub enum Endpoint<'a> {
Show 70 variants PlayerState, PlayerCurrentlyPlaying, PlayerPlay, PlayerPause, PlayerNext, PlayerPrevious, PlayerQueue, PlayerQueueAdd { uri: &'a str, }, PlayerDevices, PlayerRecentlyPlayed, PlayerSeek { position_ms: u64, }, PlayerVolume { volume_percent: u8, }, PlayerShuffle { state: bool, }, PlayerRepeat { state: &'a str, }, Playlist { id: &'a str, }, PlaylistTracks { id: &'a str, }, PlaylistItems { id: &'a str, limit: u8, offset: u32, }, PlaylistFollowers { id: &'a str, }, PlaylistCoverImage { id: &'a str, }, CurrentUserPlaylists { limit: u8, offset: u32, }, UserPlaylists { user_id: &'a str, }, CategoryPlaylists { category_id: &'a str, limit: u8, offset: u32, }, SavedTracks { limit: u8, offset: u32, }, SavedTracksIds { ids: &'a str, }, SavedTracksContains { ids: &'a str, }, SavedAlbums { limit: u8, offset: u32, }, SavedAlbumsIds { ids: &'a str, }, SavedAlbumsContains { ids: &'a str, }, Track { id: &'a str, }, Tracks { ids: &'a str, }, Album { id: &'a str, }, Albums { ids: &'a str, }, AlbumTracks { id: &'a str, limit: u8, offset: u32, }, NewReleases { limit: u8, offset: u32, }, Artist { id: &'a str, }, Artists { ids: &'a str, }, ArtistTopTracks { id: &'a str, market: &'a str, }, ArtistAlbums { id: &'a str, limit: u8, offset: u32, }, ArtistRelatedArtists { id: &'a str, }, CurrentUser, UserProfile { user_id: &'a str, }, UserTopItems { item_type: &'a str, time_range: &'a str, limit: u8, offset: u32, }, FollowedArtists { limit: u8, }, FollowArtistsOrUsers { entity_type: &'a str, ids: &'a str, }, FollowingContains { entity_type: &'a str, ids: &'a str, }, FollowPlaylist { playlist_id: &'a str, }, FollowPlaylistContains { playlist_id: &'a str, ids: &'a str, }, Category { id: &'a str, }, Categories { limit: u8, offset: u32, }, Markets, Search { query: &'a str, types: &'a str, limit: u8, market: Option<&'a str>, }, Show { id: &'a str, }, Shows { ids: &'a str, }, ShowEpisodes { id: &'a str, limit: u8, offset: u32, }, SavedShows { limit: u8, offset: u32, }, SavedShowsIds { ids: &'a str, }, SavedShowsContains { ids: &'a str, }, Episode { id: &'a str, }, Episodes { ids: &'a str, }, SavedEpisodes { limit: u8, offset: u32, }, SavedEpisodesIds { ids: &'a str, }, SavedEpisodesContains { ids: &'a str, }, Audiobook { id: &'a str, }, Audiobooks { ids: &'a str, }, AudiobookChapters { id: &'a str, limit: u8, offset: u32, }, SavedAudiobooks { limit: u8, offset: u32, }, SavedAudiobooksIds { ids: &'a str, }, SavedAudiobooksContains { ids: &'a str, }, Chapter { id: &'a str, }, Chapters { ids: &'a str, },
}
Expand description

Spotify API endpoint paths

Variants§

§

PlayerState

§

PlayerCurrentlyPlaying

§

PlayerPlay

§

PlayerPause

§

PlayerNext

§

PlayerPrevious

§

PlayerQueue

§

PlayerQueueAdd

Fields

§uri: &'a str
§

PlayerDevices

§

PlayerRecentlyPlayed

§

PlayerSeek

Fields

§position_ms: u64
§

PlayerVolume

Fields

§volume_percent: u8
§

PlayerShuffle

Fields

§state: bool
§

PlayerRepeat

Fields

§state: &'a str
§

Playlist

Fields

§id: &'a str
§

PlaylistTracks

Fields

§id: &'a str
§

PlaylistItems

Fields

§id: &'a str
§limit: u8
§offset: u32
§

PlaylistFollowers

Fields

§id: &'a str
§

PlaylistCoverImage

Fields

§id: &'a str
§

CurrentUserPlaylists

Fields

§limit: u8
§offset: u32
§

UserPlaylists

Fields

§user_id: &'a str
§

CategoryPlaylists

Fields

§category_id: &'a str
§limit: u8
§offset: u32
§

SavedTracks

Fields

§limit: u8
§offset: u32
§

SavedTracksIds

Fields

§ids: &'a str
§

SavedTracksContains

Fields

§ids: &'a str
§

SavedAlbums

Fields

§limit: u8
§offset: u32
§

SavedAlbumsIds

Fields

§ids: &'a str
§

SavedAlbumsContains

Fields

§ids: &'a str
§

Track

Fields

§id: &'a str
§

Tracks

Fields

§ids: &'a str
§

Album

Fields

§id: &'a str
§

Albums

Fields

§ids: &'a str
§

AlbumTracks

Fields

§id: &'a str
§limit: u8
§offset: u32
§

NewReleases

Fields

§limit: u8
§offset: u32
§

Artist

Fields

§id: &'a str
§

Artists

Fields

§ids: &'a str
§

ArtistTopTracks

Fields

§id: &'a str
§market: &'a str
§

ArtistAlbums

Fields

§id: &'a str
§limit: u8
§offset: u32
§

ArtistRelatedArtists

Fields

§id: &'a str
§

CurrentUser

§

UserProfile

Fields

§user_id: &'a str
§

UserTopItems

Fields

§item_type: &'a str
§time_range: &'a str
§limit: u8
§offset: u32
§

FollowedArtists

Fields

§limit: u8
§

FollowArtistsOrUsers

Fields

§entity_type: &'a str
§ids: &'a str
§

FollowingContains

Fields

§entity_type: &'a str
§ids: &'a str
§

FollowPlaylist

Fields

§playlist_id: &'a str
§

FollowPlaylistContains

Fields

§playlist_id: &'a str
§ids: &'a str
§

Category

Fields

§id: &'a str
§

Categories

Fields

§limit: u8
§offset: u32
§

Markets

§

Search

Fields

§query: &'a str
§types: &'a str
§limit: u8
§market: Option<&'a str>
§

Show

Fields

§id: &'a str
§

Shows

Fields

§ids: &'a str
§

ShowEpisodes

Fields

§id: &'a str
§limit: u8
§offset: u32
§

SavedShows

Fields

§limit: u8
§offset: u32
§

SavedShowsIds

Fields

§ids: &'a str
§

SavedShowsContains

Fields

§ids: &'a str
§

Episode

Fields

§id: &'a str
§

Episodes

Fields

§ids: &'a str
§

SavedEpisodes

Fields

§limit: u8
§offset: u32
§

SavedEpisodesIds

Fields

§ids: &'a str
§

SavedEpisodesContains

Fields

§ids: &'a str
§

Audiobook

Fields

§id: &'a str
§

Audiobooks

Fields

§ids: &'a str
§

AudiobookChapters

Fields

§id: &'a str
§limit: u8
§offset: u32
§

SavedAudiobooks

Fields

§limit: u8
§offset: u32
§

SavedAudiobooksIds

Fields

§ids: &'a str
§

SavedAudiobooksContains

Fields

§ids: &'a str
§

Chapter

Fields

§id: &'a str
§

Chapters

Fields

§ids: &'a str

Implementations§

Source§

impl<'a> Endpoint<'a>

Source

pub fn path(&self) -> String

Get the path string for this endpoint

Auto Trait Implementations§

§

impl<'a> Freeze for Endpoint<'a>

§

impl<'a> RefUnwindSafe for Endpoint<'a>

§

impl<'a> Send for Endpoint<'a>

§

impl<'a> Sync for Endpoint<'a>

§

impl<'a> Unpin for Endpoint<'a>

§

impl<'a> UnwindSafe for Endpoint<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more