pub type AsyncImplicitGrantUserClient = ImplicitGrantUserClient<AsyncClient>;Available on (crate features
async or sync) and crate feature async only.Expand description
Type alias for an asynchronous implicit grant user client. See ImplicitGrantUserClient.
Aliased Type§
pub struct AsyncImplicitGrantUserClient { /* private fields */ }Trait Implementations§
Source§impl ScopedClient for AsyncImplicitGrantUserClient
impl ScopedClient for AsyncImplicitGrantUserClient
Source§fn playback_state(&self) -> RequestBuilder<Self, Option<PlaybackState>>
fn playback_state(&self) -> RequestBuilder<Self, Option<PlaybackState>>
Get information about the user’s current playback state, including track or episode, progress, and active
device. Read more
Source§fn currently_playing_item(
&self,
) -> RequestBuilder<Self, Option<CurrentlyPlayingItem>>
fn currently_playing_item( &self, ) -> RequestBuilder<Self, Option<CurrentlyPlayingItem>>
Get the item currently being played on the user’s Spotify account. Read more
Source§fn devices(&self) -> RequestBuilder<Self, DevicesResponse, (), Vec<Device>>
fn devices(&self) -> RequestBuilder<Self, DevicesResponse, (), Vec<Device>>
Get information about the user’s available devices. Read more
Source§fn play_items<'a, I, P>(&'a self, items: I) -> PlayItemsRequestBuilder<Self>
fn play_items<'a, I, P>(&'a self, items: I) -> PlayItemsRequestBuilder<Self>
Start playing a collection of playable items in order; tracks or episodes. Read more
Source§fn play_context<'a>(
&'a self,
context: PlayableContext<'a>,
) -> PlayContextRequestBuilder<Self>
fn play_context<'a>( &'a self, context: PlayableContext<'a>, ) -> PlayContextRequestBuilder<Self>
Start playing a context; album, artist, playlist or show. Read more
Source§fn resume(&self) -> PlayerControlRequestBuilder<Self>
fn resume(&self) -> PlayerControlRequestBuilder<Self>
Resume current playback. Read more
Source§fn pause(&self) -> PlayerControlRequestBuilder<Self>
fn pause(&self) -> PlayerControlRequestBuilder<Self>
Pause current playback. Read more
Source§fn repeat_state(
&self,
repeat_state: RepeatState,
) -> PlayerControlRequestBuilder<Self>
fn repeat_state( &self, repeat_state: RepeatState, ) -> PlayerControlRequestBuilder<Self>
Set the repeat state for the current playback. Read more
Source§fn shuffle(&self, shuffle: bool) -> PlayerControlRequestBuilder<Self>
fn shuffle(&self, shuffle: bool) -> PlayerControlRequestBuilder<Self>
Set the shuffle mode for the current playback. Read more
Source§fn volume<U>(&self, volume_percent: U) -> PlayerControlRequestBuilder<Self>
fn volume<U>(&self, volume_percent: U) -> PlayerControlRequestBuilder<Self>
Set the volume for the current playback.
volume_percent is an integer between 0 and 100 inclusive. Read moreSource§fn next(&self) -> PlayerControlRequestBuilder<Self>
fn next(&self) -> PlayerControlRequestBuilder<Self>
Skip to the next track in the user’s queue. Read more
Source§fn previous(&self) -> PlayerControlRequestBuilder<Self>
fn previous(&self) -> PlayerControlRequestBuilder<Self>
Skip to the next track in the user’s queue. Read more
Source§fn seek<U>(&self, position: U) -> PlayerControlRequestBuilder<Self>
fn seek<U>(&self, position: U) -> PlayerControlRequestBuilder<Self>
Seeks to the given position in the user’s currently playing track.
position is the position in milliseconds to
seek to. Passing in a position that is greater than the length of the track will cause the player to start
playing the next song. Read moreSource§fn add_to_queue<'a>(
&'a self,
item: PlayableItem<'a>,
) -> PlayerControlRequestBuilder<Self>
fn add_to_queue<'a>( &'a self, item: PlayableItem<'a>, ) -> PlayerControlRequestBuilder<Self>
Add a playable item to the end of the current playback queue. Read more
Source§fn current_user_profile(&self) -> RequestBuilder<Self, User>
fn current_user_profile(&self) -> RequestBuilder<Self, User>
Get detailed profile information about the current user. Read more
Source§impl UnscopedClient for AsyncImplicitGrantUserClient
impl UnscopedClient for AsyncImplicitGrantUserClient
Source§fn track<'a>(
&'a self,
track: Id<'a, TrackId>,
) -> CatalogItemRequestBuilder<Self, FullTrack>
fn track<'a>( &'a self, track: Id<'a, TrackId>, ) -> CatalogItemRequestBuilder<Self, FullTrack>
Get Spotify catalog information for a single track identified by its unique Spotify ID. Read more
Source§fn tracks<'a, I>(
&'a self,
tracks: I,
) -> CatalogItemRequestBuilder<Self, TracksResponse, Vec<FullTrack>>
fn tracks<'a, I>( &'a self, tracks: I, ) -> CatalogItemRequestBuilder<Self, TracksResponse, Vec<FullTrack>>
Get Spotify catalog information for multiple tracks based on their Spotify IDs. Read more
Source§fn search<S>(&self, query: S) -> SearchBuilder<Self>
fn search<S>(&self, query: S) -> SearchBuilder<Self>
Get Spotify catalog information about albums, artists, playlists, tracks, shows or episodes that match a keyword
string. Read more
Source§fn user_profile<'a>(
&'a self,
user_id: Id<'a, UserId>,
) -> RequestBuilder<Self, PublicUser>
fn user_profile<'a>( &'a self, user_id: Id<'a, UserId>, ) -> RequestBuilder<Self, PublicUser>
Get public information about a Spotify user.