pub enum Scope {
Show 19 variants
UgcImageUpload,
UserModifyPlaybackState,
UserReadPlaybackState,
UserReadCurrentlyPlaying,
UserFollowModify,
UserFollowRead,
UserReadRecentlyPlayed,
UserReadPlaybackPosition,
UserTopRead,
PlaylistReadCollaborative,
PlaylistModifyPublic,
PlaylistReadPrivate,
PlaylistModifyPrivate,
AppRemoteControl,
Streaming,
UserReadEmail,
UserReadPrivate,
UserLibraryModify,
UserLibraryRead,
}Expand description
An OAuth authorization scope.
Authorization scopes are granted to the application by the user and restrict which endpoints are available to the
application. All scoped endpoints require certain scopes to be granted. You
choose which scopes to request in the scopes-functions of either the
AuthorizationCodeUserClientBuilder
or the ImplicitGrantUserClientBuilder.
Variants§
UgcImageUpload
Write access to user-provided images.
UserModifyPlaybackState
Write access to a user’s playback state.
UserReadPlaybackState
Read access to a user’s player state.
UserReadCurrentlyPlaying
Read access to a user’s currently playing content.
UserFollowModify
Write/delete access to the list of artists and other users that the user follows.
UserFollowRead
Read access to the list of artists and other users that the user follows.
UserReadRecentlyPlayed
Read access to a user’s recently played tracks.
UserReadPlaybackPosition
Read access to a user’s playback position in a content.
UserTopRead
Read access to a user’s top artists and tracks.
PlaylistReadCollaborative
Include collaborative playlists when requesting a user’s playlists.
PlaylistModifyPublic
Write access to a user’s public playlists.
PlaylistReadPrivate
Read access to user’s private playlists.
PlaylistModifyPrivate
Write access to a user’s private playlists.
AppRemoteControl
Remote control playback of Spotify. This scope is currently available to Spotify iOS and Android SDKs.
Streaming
Control playback of a Spotify track. This scope is currently available to the Web Playback SDK. The user must have a Spotify Premium account.
UserReadEmail
Read access to user’s email address.
UserReadPrivate
Read access to user’s subscription details (type of user account).
UserLibraryModify
Write/delete access to a user’s “Your Music” library.
UserLibraryRead
Read access to a user’s library.
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.