pub enum SpotifyScope {
Show 18 variants
UserReadRecentlyPlayed,
UserTopRead,
UserLibraryModify,
UserLibraryRead,
PlaylistReadPrivate,
PlaylistModifyPublic,
PlaylistModifyPrivate,
PlaylistReadCollaborative,
UserReadEmail,
UserReadBirthDate,
UserReadPrivate,
UserReadPlaybackState,
UserModifyPlaybackState,
UserReadCurrentlyPlaying,
AppRemoteControl,
Streaming,
UserFollowRead,
UserFollowModify,
}
Expand description
Spotify Scopes for the API. This enum implements FromStr and ToString / Display through strum.
All the Spotify API scopes can be found here.
§Example
// Convert string into scope.
let scope = SpotifyScope::from_str("streaming").unwrap();
// It can also convert the scope back into a string.
let scope = scope.to_string();
Variants§
UserReadRecentlyPlayed
UserTopRead
UserLibraryModify
UserLibraryRead
PlaylistReadPrivate
PlaylistModifyPublic
PlaylistModifyPrivate
PlaylistReadCollaborative
UserReadEmail
UserReadBirthDate
UserReadPrivate
UserReadPlaybackState
UserModifyPlaybackState
UserReadCurrentlyPlaying
AppRemoteControl
Streaming
UserFollowRead
UserFollowModify
Trait Implementations§
Source§impl Clone for SpotifyScope
impl Clone for SpotifyScope
Source§fn clone(&self) -> SpotifyScope
fn clone(&self) -> SpotifyScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpotifyScope
impl Debug for SpotifyScope
Source§impl<'de> Deserialize<'de> for SpotifyScope
impl<'de> Deserialize<'de> for SpotifyScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SpotifyScope
impl Display for SpotifyScope
Source§impl FromStr for SpotifyScope
impl FromStr for SpotifyScope
Source§impl PartialEq for SpotifyScope
impl PartialEq for SpotifyScope
Source§impl Serialize for SpotifyScope
impl Serialize for SpotifyScope
impl StructuralPartialEq for SpotifyScope
Auto Trait Implementations§
impl Freeze for SpotifyScope
impl RefUnwindSafe for SpotifyScope
impl Send for SpotifyScope
impl Sync for SpotifyScope
impl Unpin for SpotifyScope
impl UnwindSafe for SpotifyScope
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
Mutably borrows from an owned value. Read more